fix(npm): Arborist reify fails on compiled binary — Bun pre-resolves node-gyp path at build time (#21040)
parent
c08fa5675f
commit
629e866ff0
|
|
@ -209,6 +209,7 @@ for (const item of targets) {
|
|||
conditions: ["browser"],
|
||||
tsconfig: "./tsconfig.json",
|
||||
plugins: [plugin],
|
||||
external: ["node-gyp"],
|
||||
compile: {
|
||||
autoloadBunfig: false,
|
||||
autoloadDotenv: false,
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ export namespace Npm {
|
|||
binLinks: true,
|
||||
progress: false,
|
||||
savePrefix: "",
|
||||
ignoreScripts: true,
|
||||
})
|
||||
const tree = await arborist.loadVirtual().catch(() => {})
|
||||
if (tree) {
|
||||
|
|
@ -106,6 +107,7 @@ export namespace Npm {
|
|||
binLinks: true,
|
||||
progress: false,
|
||||
savePrefix: "",
|
||||
ignoreScripts: true,
|
||||
})
|
||||
await arb.reify().catch(() => {})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue