mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 01:59:06 -05:00
f4b9d85862
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
39 lines
1 KiB
Text
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
|
|
}
|
|
}
|
|
}
|