Files
Dylan Conway 351e47355a add default trustedDependencies and run lifecycle scripts during installation (#7132)
* [install] allow parallel execution of `postinstall` scripts

- fixes spurious exit code 42 from `spawn()`

* postinstall to a pipe

* feat(install): include top 500 packages as defaults for postinstall

* windows newline handling*

*i did not test it

* stuff

* cool

* a

* fix merge

* set `has_trusted_dependencies`

* fix a bunch of tests

* fix merge

* remove `PackageManager`

* remove commented code

* change to function

* Update lockfile.zig

* run scripts if added to `trustedDependencies` after install

* packages without `resolved` properties

* node-gyp scripts

* node-gyp script in the root

* another test

* git deps run prepare scripts

* fix merge

* run lifecycle scripts during installation

* Update lockfile.zig

* always increment

* 🏗️

* update tests

* tickWIthoutIdle

* const uws

* loop forwards through trees

* single buffer bitset list

* tag.isGit

* windows path separators

* `bun.sys.read` and enable/disable buffering

* fix test and waiter thread

* waiter thread and tests

* Update bun-install-registry.test.ts

* workspace exclude `preprepare` and `postprepare`

* Create esbuild.test.ts

* make sure length is the same

* remove deferred binlinks, add estrella test

* test with another version

* address some comments

* remove .verdaccio-db.json

* ooops

* fix build

* use `pid` to wait

* dont register pid_poll when using waiter thread

* stress test

* free

* fix failing tests

* fix linux crash, snapshot stress test

* oops

* concurrent scripts

* activate as soon as possible

* test

* delete stress test packages

* remove unused packages

* comment stress test and maybe fix segfault

* delete snapshot

* fix assertion

* use cpu_count * 2 for default concurrent scripts

* gear emoji

* add --concurrent-scripts to docs

* more docs

---------

Co-authored-by: alexlamsl <alexlamsl@gmail.com>
Co-authored-by: dave caruso <me@paperdave.net>
Co-authored-by: Dylan Conway <33744874+MilesWright7@users.noreply.github.com>
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2023-12-11 22:08:25 -08:00

46 lines
1.2 KiB
JSON

{
"name": "all-lifecycle-scripts",
"versions": {
"1.0.0": {
"name": "all-lifecycle-scripts",
"version": "1.0.0",
"scripts": {
"preinstall": "bun preinstall.js",
"install": "bun install.js",
"postinstall": "bun postinstall.js",
"preprepare": "bun preprepare.js",
"prepare": "bun prepare.js",
"postprepare": "bun postprepare.js"
},
"_id": "all-lifecycle-scripts@1.0.0",
"_nodeVersion": "20.8.0",
"_npmVersion": "10.1.0",
"dist": {
"integrity": "sha512-hgU56juWYnFOQ3byQuydEgugxd+iWvaWfaoGvly4k/AxehC3dhM6IhXoDc3K7b/n1mP/II8hGIjI+LmxXFNMlw==",
"shasum": "91cd0bd6a450b21db0078b9118c54bc0a27fccb7",
"tarball": "http://localhost:4873/all-lifecycle-scripts/-/all-lifecycle-scripts-1.0.0.tgz"
},
"contributors": []
}
},
"time": {
"modified": "2023-11-10T00:45:59.599Z",
"created": "2023-11-10T00:45:59.599Z",
"1.0.0": "2023-11-10T00:45:59.599Z"
},
"users": {},
"dist-tags": {
"latest": "1.0.0"
},
"_uplinks": {},
"_distfiles": {},
"_attachments": {
"all-lifecycle-scripts-1.0.0.tgz": {
"shasum": "91cd0bd6a450b21db0078b9118c54bc0a27fccb7",
"version": "1.0.0"
}
},
"_rev": "",
"_id": "all-lifecycle-scripts",
"readme": "ERROR: No README data found!"
}