diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-10-14 15:35:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-14 19:35:52 +0000 |
| commit | c5449d71da2d623e866d733b6db180a6f94ff7c6 (patch) | |
| tree | 91f27329054b33b7524618cb57a484faa74ba82e /tests/specs/add/alias | |
| parent | f3530c858f873b0f4561a52fa92ddd1d099612b3 (diff) | |
fix(install): support installing npm package with alias (#26246)
Just tried this out today and it wasn't properly implemented in
https://github.com/denoland/deno/pull/24156
Diffstat (limited to 'tests/specs/add/alias')
| -rw-r--r-- | tests/specs/add/alias/__test__.jsonc | 13 | ||||
| -rw-r--r-- | tests/specs/add/alias/package.json | 4 | ||||
| -rw-r--r-- | tests/specs/add/alias/package.json.out | 5 |
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/specs/add/alias/__test__.jsonc b/tests/specs/add/alias/__test__.jsonc new file mode 100644 index 000000000..8a16ad3b4 --- /dev/null +++ b/tests/specs/add/alias/__test__.jsonc @@ -0,0 +1,13 @@ +{ + "tempDir": true, + "steps": [{ + "args": "install my-alias@npm:@denotest/add", + "output": "[WILDCARD]" + }, { + "args": [ + "eval", + "console.log(Deno.readTextFileSync('package.json').trim())" + ], + "output": "package.json.out" + }] +} diff --git a/tests/specs/add/alias/package.json b/tests/specs/add/alias/package.json new file mode 100644 index 000000000..9664f260a --- /dev/null +++ b/tests/specs/add/alias/package.json @@ -0,0 +1,4 @@ +{ + "dependencies": { + } +} diff --git a/tests/specs/add/alias/package.json.out b/tests/specs/add/alias/package.json.out new file mode 100644 index 000000000..b6326e8bf --- /dev/null +++ b/tests/specs/add/alias/package.json.out @@ -0,0 +1,5 @@ +{ + "dependencies": { + "my-alias": "npm:@denotest/add@^1.0.0" + } +} |
