Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
build: disable NODE_OPTIONS
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jesec committed May 3, 2022
1 parent 4a92784 commit 7f3403b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down

0 comments on commit 7f3403b

Please sign in to comment.