lack 1.3.7 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/watch.js +2 -2
- package/package.json +1 -1
package/bin/watch.js
CHANGED
|
@@ -6,7 +6,7 @@ const fse = require('fs-extra');
|
|
|
6
6
|
/* eslint-disable no-sync */
|
|
7
7
|
const HOME_DIR_RE = /^[~~]\//;
|
|
8
8
|
const PLUGIN_NAME_RE = /^(?:@[\w-]+\/)?(whistle\.[a-z\d_-]+)$/;
|
|
9
|
-
const REL_RE =
|
|
9
|
+
const REL_RE = /^\.\.[\\/]+/;
|
|
10
10
|
|
|
11
11
|
const getWhistlePath = () => {
|
|
12
12
|
const dir = process.env.WHISTLE_PATH;
|
|
@@ -98,7 +98,7 @@ module.exports = (dirs) => {
|
|
|
98
98
|
const len = paths.length;
|
|
99
99
|
const inWatchList = (filename) => {
|
|
100
100
|
for (let i = 0; i < len; i++) {
|
|
101
|
-
if (REL_RE.test(path.relative(
|
|
101
|
+
if (!REL_RE.test(path.relative(paths[i], filename))) {
|
|
102
102
|
return true;
|
|
103
103
|
}
|
|
104
104
|
}
|