1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/cli
Bartek Iwańczuk acd01eb2b4
feat: Add a hint on error about 'Relative import path ... not prefixed with ...' (#25430)
Running a file like:
```
import "@std/dotenv/load";
```
Without a mapping in `imports` field of `deno.json` or `dependencies` of
`package.json`
will now error out with a hint:
```
error: Relative import path "@std/dotenv/load" not prefixed with / or ./ or ../
  hint: Try running `deno add @std/dotenv/load`
    at [WILDCARD]bare_specifier_without_import/main.ts:1:8

```

Closes https://github.com/denoland/deno/issues/24699

---------

Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2024-09-05 08:25:56 +02:00
..
args feat(install): deno install with entrypoint (#25411) 2024-09-04 13:06:16 -07:00
bench BREAKING(io): remove Deno.read[Sync]() (#25409) 2024-09-04 09:34:40 +00:00
cache fix: delete old Deno 1.x headers file when loading cache (#25283) 2024-08-28 23:47:15 +00:00
js refactor(cli/js): align error messages (#25406) 2024-09-04 09:19:55 +02:00
lsp BREAKING(config): make supported compilerOptions an allow list (#25432) 2024-09-04 17:39:30 +02:00
napi chore: forward v1.46.3 release commit to main (#25425) 2024-09-04 17:16:24 +00:00
npm fix(byonm): resolve npm deps of jsr deps (#25399) 2024-09-04 14:00:44 +00:00
ops fix: adapt to new jupyter runtime API and include session IDs (#24762) 2024-07-27 10:39:08 +02:00
schemas chore: update config-file.v1.json (#25163) 2024-08-22 19:49:22 +00:00
standalone fix(byonm): resolve npm deps of jsr deps (#25399) 2024-09-04 14:00:44 +00:00
tools feat(install): deno install with entrypoint (#25411) 2024-09-04 13:06:16 -07:00
tsc BREAKING(fs): remove Deno.FsWatcher.prototype.rid (#25444) 2024-09-05 16:23:28 +10:00
util fix(cli): Map error kind to PermissionDenied when symlinking fails due to permissions (#25398) 2024-09-03 14:42:35 -07:00
auth_tokens.rs fix: trim space around DENO_AUTH_TOKENS (#25147) 2024-08-22 15:14:50 +02:00
build.rs feat: upgrade deno_core (#25042) 2024-08-19 14:51:16 +00:00
Cargo.toml BREAKING(config): make supported compilerOptions an allow list (#25432) 2024-09-04 17:39:30 +02:00
cdp.rs chore: upgrade to rust 1.79 (#24207) 2024-06-14 17:10:57 +05:30
clippy.toml refactor(lsp): changes for lsp_types 0.97.0 (#25169) 2024-08-24 01:21:21 +01:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
emit.rs feat: deprecate import assertions (#25281) 2024-08-29 01:06:09 +00:00
entitlements.plist chore: start codesigning mac release builds (#21303) 2023-11-23 15:30:26 -07:00
errors.rs fix(compile): support workspace members importing other members (#24909) 2024-08-07 07:43:05 +00:00
factory.rs BREAKING(config): make supported compilerOptions an allow list (#25432) 2024-09-04 17:39:30 +02:00
file_fetcher.rs perf(cache): single cache file for remote modules (#24983) 2024-08-26 23:59:17 +00:00
graph_container.rs feat: glob and directory support for deno check and deno cache cli arg paths (#25001) 2024-08-20 18:38:06 +00:00
graph_util.rs feat: Add a hint on error about 'Relative import path ... not prefixed with ...' (#25430) 2024-09-05 08:25:56 +02:00
http_util.rs refactor: version module exports a single const struct (#25014) 2024-08-15 23:47:16 +02:00
integration_tests_runner.rs chore: continue tests/ re-org (#22396) 2024-02-12 17:13:14 -07:00
js.rs chore: rename __runtime_js_source to hmr (#24442) 2024-07-05 17:47:53 +05:30
jsr.rs feat(lsp): workspace jsr resolution (#24121) 2024-06-10 17:03:17 +01:00
main.rs feat(install): deno install with entrypoint (#25411) 2024-09-04 13:06:16 -07:00
mainrt.rs fix(cli): update permission prompt message for compiled binaries (#24081) 2024-08-20 01:20:06 +00:00
module_loader.rs fix(byonm): resolve npm deps of jsr deps (#25399) 2024-09-04 14:00:44 +00:00
node.rs refactor: decouple node resolution from deno_core (#24724) 2024-07-25 19:08:14 -04:00
README.md docs(cli): do not need gen doc for cli (#17260) 2023-01-04 13:19:58 +01:00
resolver.rs fix(byonm): resolve npm deps of jsr deps (#25399) 2024-09-04 14:00:44 +00:00
shared.rs chore: Rust 1.80.1 (#25089) 2024-08-18 22:24:56 -04:00
task_runner.rs fix: lock down allow-run permissions more (#25370) 2024-09-04 14:51:24 +02:00
version.rs build: Allow building 'rc' release from source (#25227) 2024-08-28 14:31:25 +00:00
worker.rs chore: remove some dead code around DENO_FUTURE env var (#25418) 2024-09-04 10:49:31 +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.