1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/cli/tests
Bartek Iwańczuk 2b31634d61
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>
2023-11-17 11:30:53 +09:00
..
integration feat(unstable): Workspaces support (#20410) 2023-11-17 11:30:53 +09:00
node_compat fix(ext/node): Re-enable alloc max size test (#21059) 2023-11-17 11:28:33 +09:00
testdata feat(unstable): Workspaces support (#20410) 2023-11-17 11:30:53 +09:00
unit feat(ext/cron) modify Deno.cron API to make handler arg last (#21225) 2023-11-17 11:30:43 +09:00
unit_node fix(ext/node): add APIs perf_hook.performance (#21192) 2023-11-17 11:30:03 +09:00
integration_tests.rs tests: move integration tests to a single module (#17380) 2023-01-13 02:59:13 +01:00