-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We would resolve the wrong package.json, resulting in an inability to run CJS (or other node-mode) scripts
- Loading branch information
1 parent
29186d7
commit 04f9db5
Showing
10 changed files
with
82 additions
and
20 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
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
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
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
11 changes: 11 additions & 0 deletions
11
tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/package.json
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,11 @@ | ||
{ | ||
"name": "@denotest/lifecycle-scripts-cjs", | ||
"version": "1.0.0", | ||
"scripts": { | ||
"preinstall": "echo preinstall && node preinstall.js", | ||
"install": "echo install && cli-cjs 'hello from install script'" | ||
}, | ||
"dependencies": { | ||
"@denotest/bin": "1.0.0" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
tests/registry/npm/@denotest/lifecycle-scripts-cjs/1.0.0/preinstall.js
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 @@ | ||
const inspect = require('util').inspect; | ||
|
||
inspect({ | ||
"preinstall": "script" | ||
}); |
1 change: 1 addition & 0 deletions
1
tests/registry/npm/@denotest/node-lifecycle-scripts/1.0.0/preinstall.js
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
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
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 @@ | ||
import {} from "npm:@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,9 @@ | ||
Download http://localhost:4260/@denotest/lifecycle-scripts-cjs | ||
Download http://localhost:4260/@denotest/bin | ||
Download http://localhost:4260/@denotest/lifecycle-scripts-cjs/1.0.0.tgz | ||
Download http://localhost:4260/@denotest/bin/1.0.0.tgz | ||
Initialize @denotest/[email protected] | ||
Initialize @denotest/[email protected] | ||
preinstall | ||
install | ||
hello from install script |