Skip to content

Commit 13c9381

Browse files
committed
fix current path eval
1 parent 0fc6e12 commit 13c9381

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

if-changed.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
const child_process = require('child_process');
44
const path = require('path');
55

6-
const currentPath = path.resolve(path.relative(__dirname, process.cwd()));
6+
const currentPath = path.join(
7+
__dirname,
8+
path.relative(__dirname, process.cwd())
9+
);
710
console.log('path: ', currentPath);
811

912
const result = child_process

0 commit comments

Comments
 (0)