Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pnp): make sure pnp module is the first preloaded module. #6942

Merged
merged 2 commits into from Jan 21, 2019
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -43,6 +43,10 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa
- Properly reports the error codes when the npm registry throws 500's

[#6817](https://github.com/yarnpkg/yarn/pull/6817) - [**Maël Nison**](https://twitter.com/arcanis)

- Changes the location where the `--require ./.pnp.js` flag gets added into `NODE_OPTIONS`: now at the front

[#6942](https://github.com/yarnpkg/yarn/pull/6942) - [**John-David Dalton**](https://twitter.com/jdalton)

## 1.12.3

Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/node.js
Expand Up @@ -23,7 +23,7 @@ export async function run(config: Config, reporter: Reporter, flags: Object, arg

let nodeOptions = process.env.NODE_OPTIONS || '';
if (await fs.exists(pnpPath)) {
nodeOptions += ` --require ${pnpPath}`;
nodeOptions = `--require ${pnpPath} ${nodeOptions}`;
}

try {
Expand Down