1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/tests/specs/npm/workspace_basic/__test__.jsonc
David Sherret f4b9d85862
fix(workspace): support resolving bare specifiers to npm pkgs within a workspace (#24611)
This makes bare specifiers for npm packages work when inside a
workspace, which emulates the same behaviour as when there's a
node_modules directory. The bare specifier can be overwritten by
specifying an import map entry or package.json dependency entry.

* https://github.com/denoland/deno_config/pull/88

Closes #24605
2024-07-17 09:13:22 -04:00

39 lines
1 KiB
Text

{
"tempDir": true,
"tests": {
"global_cache": {
"args": "run --node-modules-dir=false b/main.ts",
"output": "b/main_global_cache.out"
},
"global_cache_bare_specifier_not_in_pkg": {
"args": "run --node-modules-dir=false main.ts",
"output": "main.out"
},
"node_modules_dir": {
"args": "run --node-modules-dir=true b/main.ts",
"output": "b/main_node_modules_dir.out"
},
"byonm": {
"envs": {
"DENO_FUTURE": "1"
},
"steps": [{
"args": "install",
"output": "[WILDCARD]"
}, {
"args": "run b/main.ts",
"output": "b/main_byonm.out"
}]
},
"exports_sub_path_not_exists": {
"args": "run b/exports-sub-path-not-exists.ts",
"output": "b/exports-sub-path-not-exists.out",
"exitCode": 1
},
"no_exports_sub_path_not_exists": {
"args": "run b/no-exports-sub-path-not-exists.ts",
"output": "b/no-exports-sub-path-not-exists.out",
"exitCode": 1
}
}
}