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 7c03f5c commit cad0c49Copy full SHA for cad0c49
packages/build-tools/tasks/pattern-lab-tasks.js
@@ -97,12 +97,14 @@ compileWithNoExit.displayName = 'pattern-lab:compile';
97
98
async function watch() {
99
config = config || await getConfig();
100
+ const dirs = await manifest.getAllDirs();
101
+
102
// Used by watches
103
const debouncedCompile = debounce(compileWithNoExit, config.debounceRate);
104
105
const globPattern = `**/*.{${config.watchedExtensions.join(',')}}`;
106
const watchedFiles = [
- ...manifest.getAllDirs(process.cwd()).map(dir => path.join(dir, globPattern)),
107
+ dirs.map(dir => path.join(dir, globPattern)),
108
path.join(plSource, globPattern),
109
path.join(config.dataDir, '*.*'),
110
];
0 commit comments