diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2023-12-14 16:09:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-14 15:09:05 +0000 |
| commit | ac04787c30b67ba9c7fb800eae8361ba419e7f4e (patch) | |
| tree | 0260d7b5ac0c94c1ec1220813c16ef9318be102e /cli/tests/testdata/npm/registry/@denotest | |
| parent | 19d52b9a55a6d5a67f27cbcc6cbe9c6c15865d63 (diff) | |
fix(node): support resolving a package.json import to a builtin node module (#21576)
Closes https://github.com/denoland/deno/issues/21501
Diffstat (limited to 'cli/tests/testdata/npm/registry/@denotest')
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/imports-package-json/1.0.0/main.js | 6 | ||||
| -rw-r--r-- | cli/tests/testdata/npm/registry/@denotest/imports-package-json/1.0.0/package.json | 7 |
2 files changed, 12 insertions, 1 deletions
diff --git a/cli/tests/testdata/npm/registry/@denotest/imports-package-json/1.0.0/main.js b/cli/tests/testdata/npm/registry/@denotest/imports-package-json/1.0.0/main.js index 46625479e..9e7c247b7 100644 --- a/cli/tests/testdata/npm/registry/@denotest/imports-package-json/1.0.0/main.js +++ b/cli/tests/testdata/npm/registry/@denotest/imports-package-json/1.0.0/main.js @@ -1,7 +1,13 @@ import hi from "#hi"; import bye from "./sub_path/main.js"; +import fs from "#fs"; +import path from "#path"; +import fs2 from "#fs2"; export default { hi, bye, + fs, + path, + fs2, }; diff --git a/cli/tests/testdata/npm/registry/@denotest/imports-package-json/1.0.0/package.json b/cli/tests/testdata/npm/registry/@denotest/imports-package-json/1.0.0/package.json index a4fbc8889..2c294e680 100644 --- a/cli/tests/testdata/npm/registry/@denotest/imports-package-json/1.0.0/package.json +++ b/cli/tests/testdata/npm/registry/@denotest/imports-package-json/1.0.0/package.json @@ -11,6 +11,11 @@ "./sub-path-import-not-defined": "./sub_path/import_not_defined.js" }, "imports": { - "#hi": "./hi.js" + "#hi": "./hi.js", + "#fs": "fs", + "#path": "node:path", + "#fs2": { + "node": "fs" + } } } |
