1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 09:10:40 -05:00
denoland-deno/cli
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
..
args feat: Expand 'imports' section of deno.json (#22087) 2024-01-24 23:44:06 +01:00
bench refactor: set removal version for Deno.RequestEvent, Deno.HttpConn and Deno.serveHttp() (#22034) 2024-01-23 03:24:03 +00:00
cache fix(jsr): ensure proper storage of ahead of time module infos (#21918) 2024-01-13 20:56:56 -05:00
js feat: FsFile.sync() and FsFile.syncSync() (#22017) 2024-01-24 01:07:06 +01:00
lsp feat(lsp): include scope uri in "deno/didChangeDenoConfiguration" (#22002) 2024-01-23 06:12:41 +00:00
napi chore: forward v1.39.4 release commit to main (#21933) 2024-01-13 20:32:50 -05:00
npm feat(lockfile): track JSR and npm dependencies in config file (#22004) 2024-01-22 22:31:12 +01:00
ops chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
schemas feat(publish): exclude and include (#22055) 2024-01-24 20:30:08 +00:00
standalone feat(lockfile): track JSR and npm dependencies in config file (#22004) 2024-01-22 22:31:12 +01:00
tests feat: Expand 'imports' section of deno.json (#22087) 2024-01-24 23:44:06 +01:00
tools feat(publish): error on invalid external imports (#22088) 2024-01-24 21:59:18 +00:00
tsc revert: Remove deprecations of file sync APIs (#22085) 2024-01-24 23:38:18 +01:00
util chore: improve unanalyzable dynamic import diagnostic (#22051) 2024-01-24 14:49:33 +01:00
auth_tokens.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
build.rs feat(web): ImageBitmap (#21898) 2024-01-22 12:08:01 +01:00
Cargo.toml feat(publish): exclude and include (#22055) 2024-01-24 20:30:08 +00:00
cdp.rs refactor(tools/repl): reorganize code (#21810) 2024-01-05 16:14:58 +01:00
deno.ico
deno_std.rs chore: forward v1.39.3 to main (#21915) 2024-01-12 19:13:18 +00:00
diagnostics.rs feat(publish): error on invalid external imports (#22088) 2024-01-24 21:59:18 +00:00
emit.rs chore: bump deno_core (#21832) 2024-01-10 09:48:40 +05:30
entitlements.plist chore: start codesigning mac release builds (#21303) 2023-11-23 15:30:26 -07:00
errors.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
factory.rs feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
file_fetcher.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
graph_util.rs feat(lockfile): track JSR and npm dependencies in config file (#22004) 2024-01-22 22:31:12 +01:00
http_util.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
js.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
main.rs feat(cli): improved diagnostics printing (#22049) 2024-01-23 16:37:43 +01:00
module_loader.rs chore: upgrade deno_core to 0.246.0 (#21904) 2024-01-14 18:28:46 -07:00
node.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
README.md docs(cli): do not need gen doc for cli (#17260) 2023-01-04 13:19:58 +01:00
resolver.rs fix(unstable/byonm): support using an import map with byonm (#21786) 2024-01-04 09:20:58 +05:30
version.rs chore: update copyright to 2024 (#21753) 2024-01-01 19:58:21 +00:00
worker.rs feat: Start warning on each use of a deprecated API (#21939) 2024-01-18 23:30:49 +00:00

Deno CLI Crate

crates

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.