We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4649a2b commit 368b7f3Copy full SHA for 368b7f3
if-changed.js
@@ -3,7 +3,7 @@
3
const child_process = require('child_process');
4
const path = require('path');
5
6
-const currentPath = path.relative(__dirname, process.cwd());
+const currentPath = path.resolve(path.relative(__dirname, process.cwd()));
7
console.log('path: ', currentPath);
8
9
const result = child_process
@@ -16,7 +16,7 @@ if (result) {
16
const dirs = result
17
.split('\n')
18
.filter(file => file)
19
- .map(file => path.dirname(file));
+ .map(file => path.resolve(path.dirname(file)));
20
21
for (const dir of dirs) {
22
if (dir.startsWith(currentPath)) {
0 commit comments