|
@@ -49,6 +49,7 @@ Object.keys(jlab.linkedPackages).forEach(function(name) {
|
|
|
var localPath = require.resolve(path.join(name, 'package.json'));
|
|
|
localLinked[name] = path.dirname(localPath);
|
|
|
});
|
|
|
+var ignorePatterns = [/^\.\#/]; // eslint-disable-line
|
|
|
|
|
|
/**
|
|
|
* Sync a local path to a linked package path if they are files and differ.
|
|
@@ -161,6 +162,17 @@ module.exports = [
|
|
|
if (localPath in ignoreCache) {
|
|
|
return ignoreCache[localPath];
|
|
|
}
|
|
|
+
|
|
|
+ // Ignore files with certain patterns
|
|
|
+ var baseName = localPath.replace(/^.*[\\\/]/, ''); // eslint-disable-line
|
|
|
+ if (
|
|
|
+ ignorePatterns.some(function(rexp) {
|
|
|
+ return baseName.match(rexp);
|
|
|
+ })
|
|
|
+ ) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
// Limit the watched files to those in our local linked package dirs.
|
|
|
var ignore = true;
|
|
|
Object.keys(localLinked).some(function(name) {
|