build: disable NODE_OPTIONS

Production binaries shall NOT take NODE_OPTIONS from end-users.

Only the users (developers who use pkg to package their project) should
have control over the flags via the "bake in" (--options) mechanism.

Bug: vercel/pkg#954, vercel/pkg#989, vercel/pkg#1194, vercel/pkg#1517
This commit is contained in:
Jesse Chan 2022-04-30 23:18:29 -07:00
parent 4a92784a1c
commit 7f3403bd71

View File

@ -55,6 +55,9 @@ function getConfigureArgs(major: number, targetPlatform: string): string[] {
}
}
// production binaries do NOT take NODE_OPTIONS from end-users
args.push('--without-node-options');
// DTrace
args.push('--without-dtrace');