Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Commit 520eaa9

Browse files
committed
Use process.cwd() always, instead of process.env.PWD
- `cwd()` is cross-platform.
1 parent 2e7c84c commit 520eaa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ var exec = require('child_process').exec;
2626
var program = require('commander');
2727
var notifier = require('node-notifier');
2828

29-
var pwd = require('process').env.PWD || require('process').cwd();
29+
var pwd = require('process').cwd();
3030
var project = require('path').posix.basename(pwd);
3131
var errorIcon = __dirname + '/error.png';
3232
var defaultWatchFiles = ['phpunit.xml.dist', 'phpcs.xml', 'src/**/*.php', 'test/**/*.php'];

0 commit comments

Comments
 (0)