1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-14 19:37:59 -05:00
denoland-deno/cli/tests/testdata/package_json/basic
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
..
fail_check.check.out
fail_check.ts chore: fix flaky package_json_basic tests (#17940) 2023-02-25 13:56:39 +00:00
lib.bench.out feat(bench): print iter/s in the report (#19994) 2023-08-01 23:55:23 +00:00
lib.bench.ts chore: fix flaky package_json_basic tests (#17940) 2023-02-25 13:56:39 +00:00
lib.test.out fix(npm): show a progress bar when initializing the node_modules folder (#18136) 2023-03-13 18:18:29 +00:00
lib.test.ts chore: fix flaky package_json_basic tests (#17940) 2023-02-25 13:56:39 +00:00
lib.ts chore: fix flaky package_json_basic tests (#17940) 2023-02-25 13:56:39 +00:00
main.cache.out fix(npm): show a progress bar when initializing the node_modules folder (#18136) 2023-03-13 18:18:29 +00:00
main.check.out fix(npm): show a progress bar when initializing the node_modules folder (#18136) 2023-03-13 18:18:29 +00:00
main.info.out feat: Expand 'imports' section of deno.json (#22087) 2024-01-24 23:44:06 +01:00
main.ts chore: fix flaky package_json_basic tests (#17940) 2023-02-25 13:56:39 +00:00
package.json