Skip to content

Commit

Permalink
fix(pnp): make sure pnp module is the first preloaded module. (#6942)
Browse files Browse the repository at this point in the history
* fix(pnp): make sure pnp module is the first preloaded module.

* Update CHANGELOG.md
  • Loading branch information
jdalton authored and arcanis committed Jan 21, 2019
1 parent fb03788 commit f257500
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -65,6 +65,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

0 comments on commit f257500

Please sign in to comment.