diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-05-10 20:06:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-10 20:06:59 -0400 |
| commit | 28aa489de9cd4f995ec2fc02e2c9d224e89f4c01 (patch) | |
| tree | b316937a47fe9c8f9f6768bc13b9a686c07cf42f /cli/tests/testdata/npm | |
| parent | 5fd74bfa1c5ed514c3e19fdb2e8590fe251d3ee6 (diff) | |
feat(compile): unstable npm and node specifier support (#19005)
This is the initial support for npm and node specifiers in `deno
compile`. The npm packages are included in the binary and read from it via
a virtual file system. This also supports the `--node-modules-dir` flag,
dependencies specified in a package.json, and npm binary commands (ex.
`deno compile --unstable npm:cowsay`)
Closes #16632
Diffstat (limited to 'cli/tests/testdata/npm')
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.d.mts | 1 | ||||
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.mjs | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.d.mts b/cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.d.mts index fa7814911..29da1e6d7 100644 --- a/cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.d.mts +++ b/cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.d.mts @@ -1,2 +1,3 @@ export declare function setValue(val: number): void; export declare function getValue(): number; +export declare const url: string; diff --git a/cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.mjs b/cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.mjs index 23df4221c..0a44f7585 100644 --- a/cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.mjs +++ b/cli/tests/testdata/npm/registry/@denotest/esm-basic/1.0.0/main.mjs @@ -7,3 +7,5 @@ export function setValue(newValue) { export function getValue() { return value; } + +export const url = import.meta.url; |
