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 /Cargo.lock | |
| 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 'Cargo.lock')
| -rw-r--r-- | Cargo.lock | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/Cargo.lock b/Cargo.lock index 545b8d697..11775d274 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1061,16 +1061,15 @@ dependencies = [ [[package]] name = "deno_config" -version = "0.5.0" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f4dd27020827a51857fbb47a21d2359f75db031e177821bff4e95368333a5a0" +checksum = "40c6b9137fcc5c6f81d12214fc31cdddf2c64d0667a5458803e081ddd856d5b6" dependencies = [ "anyhow", "indexmap 2.0.2", "jsonc-parser", "log", "percent-encoding", - "pretty_assertions", "serde", "serde_json", "url", @@ -1156,9 +1155,9 @@ dependencies = [ [[package]] name = "deno_doc" -version = "0.73.1" +version = "0.73.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0caa44ce342fb69b449ae750f8bf66dea6730ce7a00cc4449766d47b8626faf9" +checksum = "d2854646e9edfea295844b392ab64b7f4fb7b25b608c82d40a2c2d39655b71db" dependencies = [ "anyhow", "cfg-if", @@ -1179,9 +1178,9 @@ dependencies = [ [[package]] name = "deno_emit" -version = "0.31.3" +version = "0.31.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "193d738bbe06f950a7be3f852f0d940839bba6f4c2cb1d2019eb0d6c727f7b03" +checksum = "f8910a6da498d0eb2a28d9ea613c47291a86377a85b3771dd90d624004814aeb" dependencies = [ "anyhow", "base64 0.13.1", @@ -1246,9 +1245,9 @@ dependencies = [ [[package]] name = "deno_graph" -version = "0.61.0" +version = "0.61.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bd6700dd3cec2a7763760168c952cc632246a1ae0fc52d6f297e2802b994e69" +checksum = "076c0b611c10901456b78c837408b9c40fe0c3602e767307d986f46f0cc56b51" dependencies = [ "anyhow", "async-trait", @@ -2865,11 +2864,10 @@ checksum = "cb56e1aa765b4b4f3aadfab769793b7087bb03a4ea4920644a6d238e2df5b9ed" [[package]] name = "import_map" -version = "0.15.0" +version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "632089ec08bd62e807311104122fb26d5c911ab172e2b9864be154a575979e29" +checksum = "1e5bf51a0adfdc08afcb9e5a1c8f8c804227ec50d493c65e57e6d117d594bd1b" dependencies = [ - "cfg-if", "indexmap 1.9.3", "log", "serde", |
