Skip to content

Commit a1b783f

Browse files
committed
use path.resolve to handle potential absolute paths
1 parent 594104b commit a1b783f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/generate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ncp.limit = 16;
99
var newProjectDir = (function () {
1010

1111
if (process.argv[2]) {
12-
return path.join(process.cwd(), process.argv[2]);
12+
return path.resolve(process.cwd(), process.argv[2]);
1313
}
1414

1515
return process.cwd();

0 commit comments

Comments
 (0)