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

43 lines
1.2 KiB
JSON

{
"name": "with-postinstall-b",
"versions": {
"1.0.0": {
"name": "with-postinstall-b",
"version": "1.0.0",
"dependencies": {},
"scripts": {
"postinstall": "node -e \"process.stdout.write(Number(new Date()).toString())\" >> output.json"
},
"gitHead": "ee6e0734e911d48f6ff786aa0f05b9b9926e4815",
"_id": "with-postinstall-b@1.0.0",
"_nodeVersion": "21.1.0",
"_npmVersion": "8.19.4",
"dist": {
"integrity": "sha512-LEgpt3TM2NWMUAN1Z7xEpt7fNhhTU5O7c9W/sgaM/ckYMwE2G1sqeikL4Hmf0l5GvALyFfcGK1tiEoluRWUmiA==",
"shasum": "330e2372dcc4b79f5b2f59619f6a5d3ba54161b8",
"tarball": "http://localhost:4873/with-postinstall-b/-/with-postinstall-b-1.0.0.tgz"
},
"contributors": []
}
},
"time": {
"modified": "2023-11-15T09:39:05.043Z",
"created": "2023-11-15T09:39:05.043Z",
"1.0.0": "2023-11-15T09:39:05.043Z"
},
"users": {},
"dist-tags": {
"latest": "1.0.0"
},
"_uplinks": {},
"_distfiles": {},
"_attachments": {
"with-postinstall-b-1.0.0.tgz": {
"shasum": "330e2372dcc4b79f5b2f59619f6a5d3ba54161b8",
"version": "1.0.0"
}
},
"_rev": "",
"_id": "with-postinstall-b",
"readme": "ERROR: No README data found!"
}