forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(install): duplicate dependencies in
package.json
(denoland#26128)
Fixes denoland#26120
- Loading branch information
1 parent
66929de
commit ccdbeb4
Showing
9 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
tests/specs/install/install_add_dep_existing/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"tempDir": true, | ||
"steps": [ | ||
{ | ||
"args": "install npm:@denotest/esm-basic", | ||
"output": "install.out" | ||
}, | ||
{ | ||
"args": [ | ||
"eval", | ||
"console.log(Deno.readTextFileSync('package.json').trim())" | ||
], | ||
"output": "package.json.out" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Add npm:@denotest/[email protected] | ||
Download http://localhost:4260/@denotest/esm-basic | ||
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz | ||
Initialize @denotest/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"devDependencies": { "@denotest/esm-basic": "^1.0.0" } | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/specs/install/install_add_dep_existing/package.json.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"dependencies": { | ||
"@denotest/esm-basic": "^1.0.0" | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
tests/specs/install/install_add_dev_existing/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"tempDir": true, | ||
"steps": [ | ||
{ | ||
"args": "install --dev npm:@denotest/esm-basic", | ||
"output": "install.out" | ||
}, | ||
{ | ||
"args": [ | ||
"eval", | ||
"console.log(Deno.readTextFileSync('package.json').trim())" | ||
], | ||
"output": "package.json.out" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Add npm:@denotest/[email protected] | ||
Download http://localhost:4260/@denotest/esm-basic | ||
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz | ||
Initialize @denotest/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"dependencies": { "@denotest/esm-basic": "^1.0.0" } | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/specs/install/install_add_dev_existing/package.json.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"devDependencies": { | ||
"@denotest/esm-basic": "^1.0.0" | ||
} | ||
} |