@techninja/clearstack 0.4.10 → 0.4.11
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/lib/spec-config.js +1 -0
- package/lib/watch.js +1 -1
- package/package.json +1 -1
package/lib/spec-config.js
CHANGED
|
@@ -44,6 +44,7 @@ export function loadConfig(projectDir) {
|
|
|
44
44
|
docsExt: (env.SPEC_DOCS_EXTENSIONS || '.md').split(','),
|
|
45
45
|
testPattern: env.SPEC_TEST_PATTERN || '.test.js',
|
|
46
46
|
ignore: (env.SPEC_IGNORE_DIRS || 'node_modules,src/vendor,.git,.configs').split(','),
|
|
47
|
+
watchDirs: env.SPEC_WATCH_DIRS ? env.SPEC_WATCH_DIRS.split(',').map((d) => d.trim()) : null,
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
50
|
|
package/lib/watch.js
CHANGED
|
@@ -28,7 +28,7 @@ export async function startWatch(projectDir) {
|
|
|
28
28
|
const specRows = checks.map(toRow);
|
|
29
29
|
const checksForExt = makeExtMap(checks);
|
|
30
30
|
|
|
31
|
-
const watchDirs = ['src', 'scripts', 'docs'].filter((d) => existsSync(resolve(projectDir, d)));
|
|
31
|
+
const watchDirs = (cfg.watchDirs ?? ['src', 'scripts', 'docs']).filter((d) => existsSync(resolve(projectDir, d)));
|
|
32
32
|
|
|
33
33
|
const serverCmd = detectServerCmd(projectDir, cfg);
|
|
34
34
|
const serverRow = serverCmd
|
package/package.json
CHANGED