-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve warnings for deprecations and lifecycle script for npm …
…packages (#25694) This commit improves warning messages for deprecated npm packages and packages that rely on lifecycle script.
- Loading branch information
1 parent
fd86026
commit 5b14c71
Showing
6 changed files
with
83 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ Add npm:@denotest/[email protected] | |
Download http://localhost:4260/@denotest/deprecated-package | ||
Download http://localhost:4260/@denotest/deprecated-package/1.0.0.tgz | ||
Initialize @denotest/[email protected] | ||
Warning @denotest/[email protected] is deprecated: Deprecated version | ||
Warning Following packages are deprecated: | ||
┗─ npm:@denotest/[email protected] (Deprecated version) |
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 |
---|---|---|
|
@@ -6,7 +6,9 @@ Download http://localhost:4260/@denotest/bin/1.0.0.tgz | |
Initialize @denotest/[email protected] | ||
Initialize @denotest/[email protected] | ||
[UNORDERED_END] | ||
Warning Packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed. | ||
This may cause the packages to not work correctly. To run them, use the `--allow-scripts` flag with `deno cache` or `deno install` | ||
(e.g. `deno cache --allow-scripts=pkg1,pkg2 <entrypoint>` or `deno install --allow-scripts=pkg1,pkg2`): | ||
npm:@denotest/[email protected] | ||
Warning Following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed: | ||
┠─ npm:@denotest/[email protected] | ||
┃ | ||
┠─ This may cause the packages to not work correctly. | ||
┗─ To run lifecycle scripts, use the `--allow-scripts` flag with `deno install`: | ||
deno install --allow-scripts=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 |
---|---|---|
|
@@ -6,7 +6,9 @@ Download http://localhost:4260/@denotest/bin/1.0.0.tgz | |
Initialize @denotest/[email protected] | ||
Initialize @denotest/[email protected] | ||
[UNORDERED_END] | ||
Warning Packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed. | ||
This may cause the packages to not work correctly. To run them, use the `--allow-scripts` flag with `deno cache` or `deno install` | ||
(e.g. `deno cache --allow-scripts=pkg1,pkg2 <entrypoint>` or `deno install --allow-scripts=pkg1,pkg2`): | ||
npm:@denotest/[email protected] | ||
Warning Following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed: | ||
┠─ npm:@denotest/[email protected] | ||
┃ | ||
┠─ This may cause the packages to not work correctly. | ||
┗─ To run lifecycle scripts, use the `--allow-scripts` flag with `deno install`: | ||
deno install --allow-scripts=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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
Download http://localhost:4260/@denotest/node-addon | ||
Download http://localhost:4260/node-gyp | ||
[WILDCARD] | ||
Warning Packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed. | ||
This may cause the packages to not work correctly. To run them, use the `--allow-scripts` flag with `deno cache` or `deno install` | ||
(e.g. `deno cache --allow-scripts=pkg1,pkg2 <entrypoint>` or `deno install --allow-scripts=pkg1,pkg2`): | ||
npm:@denotest/[email protected] | ||
Warning Following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed: | ||
┠─ npm:@denotest/[email protected] | ||
┃ | ||
┠─ This may cause the packages to not work correctly. | ||
┗─ To run lifecycle scripts, use the `--allow-scripts` flag with `deno install`: | ||
deno install --allow-scripts=npm:@denotest/[email protected] | ||
error: Uncaught (in promise) Error: Cannot find module './build/Release/node_addon' | ||
[WILDCARD] |
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 |
---|---|---|
|
@@ -6,9 +6,11 @@ Download http://localhost:4260/@denotest/bin/1.0.0.tgz | |
Initialize @denotest/[email protected] | ||
Initialize @denotest/[email protected] | ||
[UNORDERED_END] | ||
Warning Packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed. | ||
This may cause the packages to not work correctly. To run them, use the `--allow-scripts` flag with `deno cache` or `deno install` | ||
(e.g. `deno cache --allow-scripts=pkg1,pkg2 <entrypoint>` or `deno install --allow-scripts=pkg1,pkg2`): | ||
npm:@denotest/[email protected] | ||
Warning Following packages contained npm lifecycle scripts (preinstall/install/postinstall) that were not executed: | ||
┠─ npm:@denotest/[email protected] | ||
┃ | ||
┠─ This may cause the packages to not work correctly. | ||
┗─ To run lifecycle scripts, use the `--allow-scripts` flag with `deno install`: | ||
deno install --allow-scripts=npm:@denotest/[email protected] | ||
error: Uncaught SyntaxError: The requested module 'npm:@denotest/node-lifecycle-scripts' does not provide an export named 'value' | ||
[WILDCARD] |