diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-11-17 02:28:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-17 01:28:38 +0000 |
| commit | 9534e6e1131542653c4e266f712c4067af2c8ec0 (patch) | |
| tree | 1a74cccdcdb6bb12c10ab3e2a34d93fd8c4ccc55 /cli/Cargo.toml | |
| parent | 544923afdc67e9946453901642746f37f22c8e24 (diff) | |
feat(unstable): Workspaces support (#20410)
This commit adds unstable workspace support. This is extremely
bare-bones and
minimal first-pass at this.
With this change `deno.json` supports specifying `workspaces` key, that
accepts a list of subdirectories. Each workspace can have its own import
map. It's required to specify a `"name"` and `"version"` properties in the
configuration file for the workspace:
```jsonc
// deno.json
{
"workspaces": [
"a",
"b"
},
"imports": {
"express": "npm:express@5"
}
}
```
``` jsonc
// a/deno.json
{
"name": "a",
"version": "1.0.2",
"imports": {
"kleur": "npm:kleur"
}
}
```
```jsonc
// b/deno.json
{
"name": "b",
"version": "0.51.0",
"imports": {
"chalk": "npm:chalk"
}
}
```
`--unstable-workspaces` flag is required to use this feature:
```
$ deno run --unstable-workspaces mod.ts
```
---------
Co-authored-by: David Sherret <dsherret@gmail.com>
Diffstat (limited to 'cli/Cargo.toml')
| -rw-r--r-- | cli/Cargo.toml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index c13e1bf91..37250f328 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -51,11 +51,11 @@ winres.workspace = true [dependencies] deno_ast = { workspace = true, features = ["bundler", "cjs", "codegen", "dep_graph", "module_specifier", "proposal", "react", "sourcemap", "transforms", "typescript", "view", "visit"] } deno_cache_dir = "=0.6.1" -deno_config = "=0.5.0" +deno_config = "=0.6.4" deno_core = { workspace = true, features = ["include_js_files_for_snapshotting"] } -deno_doc = { version = "=0.73.1", features = ["html"] } -deno_emit = "=0.31.3" -deno_graph = "=0.61.0" +deno_doc = { version = "=0.73.2", features = ["html"] } +deno_emit = "=0.31.4" +deno_graph = "=0.61.1" deno_lint = { version = "=0.52.2", features = ["docs"] } deno_lockfile.workspace = true deno_npm = "0.15.2" @@ -95,7 +95,7 @@ glob = "0.3.1" hex.workspace = true http.workspace = true hyper.workspace = true -import_map = "=0.15.0" +import_map = { version = "=0.17.0", features = ["ext"] } indexmap.workspace = true jsonc-parser = { version = "=0.21.1", features = ["serde"] } lazy-regex.workspace = true |
