Sitelet https://github.com/yarnpkg/yarn/pull/7057/files
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa

## Master

- Removes `--scripts-prepend-node-path` as Yarn's default behavior makes this obsolete

[#7057](https://github.com/yarnpkg/yarn/pull/7057/files) - [**Jason Grout**](https://github.com/jasongrout)

- Fixes the advisory link printed by `yarn audit`

[#7091](https://github.com/yarnpkg/yarn/pull/7091) - [**Jakob Krigovsky**](https://github.com/sonicdoe)
Expand Down
5 changes: 0 additions & 5 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export type ConfigOptions = {
nonInteractive?: boolean,
enablePnp?: boolean,
disablePnp?: boolean,
scriptsPrependNodePath?: boolean,
offlineCacheFolder?: string,

enableDefaultRc?: boolean,
Expand Down Expand Up @@ -177,8 +176,6 @@ export default class Config {
plugnplayUnplugged: Array<string>;
plugnplayPurgeUnpluggedPackages: boolean;

scriptsPrependNodePath: boolean;

workspacesEnabled: boolean;
workspacesNohoistEnabled: boolean;

Expand Down Expand Up @@ -484,8 +481,6 @@ export default class Config {
// $FlowFixMe$
this.nonInteractive = !!opts.nonInteractive || isCi || !process.stdout.isTTY;

this.scriptsPrependNodePath = !!opts.scriptsPrependNodePath;

this.requestManager.setOptions({
offline: !!opts.offline && !opts.preferOffline,
captureHar: !!opts.captureHar,
Expand Down
7 changes: 0 additions & 7 deletions src/util/execute-lifecycle-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,6 @@ export async function makeEnv(
const envPath = env[constants.ENV_PATH_KEY];
const pathParts = envPath ? envPath.split(path.delimiter) : [];

// Include the directory that contains node so that we can guarantee that the scripts
// will always run with the exact same Node release than the one use to run Yarn
const execBin = path.dirname(process.execPath);
if (pathParts.indexOf(execBin) === -1) {
pathParts.unshift(execBin);
}

// Include node-gyp version that was bundled with the current Node.js version,
// if available.
pathParts.unshift(path.join(path.dirname(process.execPath), 'node_modules', 'npm', 'bin', 'node-gyp-bin'));
Expand Down