Skip to content

Commit

Permalink
Use process.cwd() instead of process.env.PWD
Browse files Browse the repository at this point in the history
process.env.PWD does not exist on Windows.

See, e.g., mrblueblue/gettext-loader#18
  • Loading branch information
nikclayton authored Oct 1, 2019
1 parent bd21c69 commit 2acef4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path');
const fs = require('fs');
const fse = require('fs-extra');

if (process.env.PWD.match(/node_modules/)) {
if (process.cwd().match(/node_modules/)) {
// move sources
fse.removeSync('sass');
fse.moveSync('src/sass','sass');
Expand Down

0 comments on commit 2acef4c

Please sign in to comment.