deno/cli
Bartek Iwańczuk 60688c563e
feat: import.meta.filename and import.meta.dirname (#22061)
This commit adds `import.meta.filename` and `import.meta.dirname` APIs.

These APIs return string representation of filename and containing
dirname.
They are only defined for local modules (modules that have `file:///`
scheme).

Example:

```ts
console.log(import.meta.filename, import.meta.dirname)
```

Unix:
```
$ deno run /dev/my_module.ts
/dev/my_module.ts /dev/
```

Windows:
```
$ deno run C:\dev\my_module.ts
C:\dev\my_module.ts C:\
```
2024-01-23 23:51:07 +01:00
..
args chore: make deno --help more colorful (#21962) 2024-01-23 19:56:50 +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 refactor: use core.ensureFastOps() (#21888) 2024-01-10 15:37:25 -07: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: precompile JSX (#20962) 2023-11-01 20:30:23 +00:00
standalone feat(lockfile): track JSR and npm dependencies in config file (#22004) 2024-01-22 22:31:12 +01:00
tests feat: import.meta.filename and import.meta.dirname (#22061) 2024-01-23 23:51:07 +01:00
tools feat(cli): improved diagnostics printing (#22049) 2024-01-23 16:37:43 +01:00
tsc feat: import.meta.filename and import.meta.dirname (#22061) 2024-01-23 23:51:07 +01:00
util refactor: use parsed source cache when unfurling import map (#22001) 2024-01-23 12:40:23 +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 chore: make deno --help more colorful (#21962) 2024-01-23 19:56:50 +01:00
cdp.rs refactor(tools/repl): reorganize code (#21810) 2024-01-05 16:14:58 +01:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_std.rs chore: forward v1.39.3 to main (#21915) 2024-01-12 19:13:18 +00:00
diagnostics.rs feat(cli): improved diagnostics printing (#22049) 2024-01-23 16:37:43 +01: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.