1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 10:07:54 -05:00
denoland-deno/cli/tests/testdata/compile
Bartek Iwańczuk 44f8b05f5b
feat: Expand 'imports' section of deno.json (#22087)
This commit adds automatic expansion of "imports" field in "deno.json"
file.

If "npm:" or "jsr:" imports are encountered we automatically try to add
a "directory" remapping.

Previously users had to specify entries for both `foo` and `foo/` to be
able to import like
`import { symbol1 } from "foo";` and `import { symbol2 } from
"foo/some_file.js"`:
```
{
  "imports": {
    "foo": "npm:@foo/bar",
    "foo/": "npm:/@foo/bar/",
}
```

With this change users can only add entry for `foo`:
```
{
  "imports": {
    "foo": "npm:@foo/bar",
}
```
The entry for `foo/` will be provided automatically.

Similarly if user provides "directory" remapping explicitly, we will not
overwrite it.
2024-01-24 23:44:06 +01:00
..
dynamic_imports chore: Use relative paths for assert imports to avoid test flakes (#19427) 2023-06-08 18:10:37 +00:00
dynamic_imports_tmp_lit feat(compile): support discovering modules for more dynamic arguments (#21381) 2023-12-01 20:12:10 +00:00
node_modules_symlink_outside fix(compile/npm): ignore symlinks to non-existent paths in node_modules directory (#21479) 2023-12-06 16:25:24 -05:00
npm_fs feat: Expand 'imports' section of deno.json (#22087) 2024-01-24 23:44:06 +01:00
vfs_implicit_read_permission fix(compile): implicit read permission to npm vfs (#19281) 2023-05-26 13:33:38 -04:00
workers feat(compile): Add support for web workers in standalone mode (#17657) 2023-03-19 23:32:54 +01:00
args.ts
check_local_by_default.ts
check_local_by_default2.ts
standalone_error.ts
standalone_error_module_with_imports_1.ts
standalone_error_module_with_imports_2.ts
standalone_follow_redirects.ts
standalone_follow_redirects_2.js chore: update std to 0.208.0 (#21318) 2023-12-02 03:20:06 +01:00
standalone_import_datauri.ts
standalone_import_map.json
standalone_import_map.ts
standalone_import_map_config.json fix(compile): ensure import map is used when specified in deno config file (#16990) 2022-12-08 11:50:09 -05:00
standalone_runtime_flags.ts
unstable_features.ts fix(compile): preserve granular unstable features (#21827) 2024-01-06 19:31:09 +05:30