-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(install): continue install if optional postinstall fails (#14783)
- Loading branch information
1 parent
6f60523
commit 247456b
Showing
8 changed files
with
180 additions
and
14 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
Binary file added
BIN
+301 Bytes
test/cli/install/registry/packages/lifecycle-fail/lifecycle-fail-1.1.1.tgz
Binary file not shown.
45 changes: 45 additions & 0 deletions
45
test/cli/install/registry/packages/lifecycle-fail/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,45 @@ | ||
{ | ||
"name": "lifecycle-fail", | ||
"versions": { | ||
"1.1.1": { | ||
"name": "lifecycle-fail", | ||
"version": "1.1.1", | ||
"scripts": { | ||
"preinstall": "bun fail.js", | ||
"postinstall": "bun create.js" | ||
}, | ||
"_id": "[email protected]", | ||
"_integrity": "sha512-tqxnPDUZAsW0sy8JUO3LuzuyS7MkvRjGvnnkvbzv1Oo3sRZHMA2yhWDEQ9Bjo0ozxhU+H6vrW2q8EKDAXwnlQw==", | ||
"_nodeVersion": "22.6.0", | ||
"_npmVersion": "10.8.3", | ||
"integrity": "sha512-tqxnPDUZAsW0sy8JUO3LuzuyS7MkvRjGvnnkvbzv1Oo3sRZHMA2yhWDEQ9Bjo0ozxhU+H6vrW2q8EKDAXwnlQw==", | ||
"shasum": "455d2b86cb654b846325e808804573bf56c5f1a4", | ||
"dist": { | ||
"integrity": "sha512-tqxnPDUZAsW0sy8JUO3LuzuyS7MkvRjGvnnkvbzv1Oo3sRZHMA2yhWDEQ9Bjo0ozxhU+H6vrW2q8EKDAXwnlQw==", | ||
"shasum": "455d2b86cb654b846325e808804573bf56c5f1a4", | ||
"tarball": "http://http://localhost:4873/lifecycle-fail/-/lifecycle-fail-1.1.1.tgz" | ||
}, | ||
"contributors": [] | ||
} | ||
}, | ||
"time": { | ||
"modified": "2024-10-24T03:03:12.460Z", | ||
"created": "2024-10-24T03:03:12.460Z", | ||
"1.1.1": "2024-10-24T03:03:12.460Z" | ||
}, | ||
"users": {}, | ||
"dist-tags": { | ||
"latest": "1.1.1" | ||
}, | ||
"_uplinks": {}, | ||
"_distfiles": {}, | ||
"_attachments": { | ||
"lifecycle-fail-1.1.1.tgz": { | ||
"shasum": "455d2b86cb654b846325e808804573bf56c5f1a4", | ||
"version": "1.1.1" | ||
} | ||
}, | ||
"_rev": "", | ||
"_id": "lifecycle-fail", | ||
"readme": "" | ||
} |
Binary file added
BIN
+182 Bytes
test/cli/install/registry/packages/optional-lifecycle-fail/optional-lifecycle-fail-1.1.1.tgz
Binary file not shown.
44 changes: 44 additions & 0 deletions
44
test/cli/install/registry/packages/optional-lifecycle-fail/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,44 @@ | ||
{ | ||
"name": "optional-lifecycle-fail", | ||
"versions": { | ||
"1.1.1": { | ||
"name": "optional-lifecycle-fail", | ||
"version": "1.1.1", | ||
"optionalDependencies": { | ||
"lifecycle-fail": "1.1.1" | ||
}, | ||
"_id": "[email protected]", | ||
"_integrity": "sha512-1nfxe/RpzOaJm7RVSeIux8UMUvrbVDgCCN9lJ1IlnOzd4B6oy9BoKjM4Ij+d9Cmjy+WvhaDKd6AndadHZw5aRw==", | ||
"_nodeVersion": "22.6.0", | ||
"_npmVersion": "10.8.3", | ||
"integrity": "sha512-1nfxe/RpzOaJm7RVSeIux8UMUvrbVDgCCN9lJ1IlnOzd4B6oy9BoKjM4Ij+d9Cmjy+WvhaDKd6AndadHZw5aRw==", | ||
"shasum": "3b030a54938f24912a19b4a865210fcac6172350", | ||
"dist": { | ||
"integrity": "sha512-1nfxe/RpzOaJm7RVSeIux8UMUvrbVDgCCN9lJ1IlnOzd4B6oy9BoKjM4Ij+d9Cmjy+WvhaDKd6AndadHZw5aRw==", | ||
"shasum": "3b030a54938f24912a19b4a865210fcac6172350", | ||
"tarball": "http://http://localhost:4873/optional-lifecycle-fail/-/optional-lifecycle-fail-1.1.1.tgz" | ||
}, | ||
"contributors": [] | ||
} | ||
}, | ||
"time": { | ||
"modified": "2024-10-24T03:05:13.038Z", | ||
"created": "2024-10-24T03:05:13.038Z", | ||
"1.1.1": "2024-10-24T03:05:13.038Z" | ||
}, | ||
"users": {}, | ||
"dist-tags": { | ||
"latest": "1.1.1" | ||
}, | ||
"_uplinks": {}, | ||
"_distfiles": {}, | ||
"_attachments": { | ||
"optional-lifecycle-fail-1.1.1.tgz": { | ||
"shasum": "3b030a54938f24912a19b4a865210fcac6172350", | ||
"version": "1.1.1" | ||
} | ||
}, | ||
"_rev": "", | ||
"_id": "optional-lifecycle-fail", | ||
"readme": "" | ||
} |