Skip to content

Commit

Permalink
fix: patch-nx-dep-graph for windows
Browse files Browse the repository at this point in the history
on windows process.env.INIT_CWD is undefined, which makes the script fail because path.join expects strings
  • Loading branch information
yakirgot authored and ZachJW34 committed May 10, 2021
1 parent e878d60 commit 52b5a79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/vue/patch-nx-dep-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const path = require('path');
*/
function patchNxDepGraph() {
const filePath = path.join(
process.env.INIT_CWD,
process.env.INIT_CWD || '',
'node_modules/@nrwl/workspace/src/core/project-graph/build-dependencies/typescript-import-locator.js'
);
try {
Expand Down

0 comments on commit 52b5a79

Please sign in to comment.