#How does one disable the default trustedDependencies ?
1 messages · Page 1 of 1 (latest)
Of you add the that to package.json, it should ignore the default list and only your specified ones (I.e. [] for none)
//package.json
"trustedDependencies": []
That does not make sense. Will the following only trust protobuf and none in the default list ?
"trustedDependencies": [
"protobufjs",
]
Like is @bufbuild/buf trusted ? Which is in the default list (https://github.com/oven-sh/bun/blob/main/src/install/default-trusted-dependencies.txt)
So if nothing is added to package.json, then bun trusts all those 367 packages, but if I add one to package.json then none of them are trusted ?
note that package has a useless postinstall
bun only shows the output if its an error
so if u enable it, you are only slowing down install speeds for no use
yeah smth like that, but u rarely use more than a few of them
If nothing is added to package.json, then bun trusts all those 367 packages.
If I add one to my package.json, does bun trust only that one package, or those 367 plus one ?
just the one
but trust in this context, is only for running postinstall scripts, nothing else is being effected
That's ok. I was concerned that the two list may be getting concatenated instead of overriding it.