@akanjs/cli 0.9.49 → 0.9.50
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/cjs/index.js +1 -1
- package/esm/index.js +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -640,7 +640,7 @@ var withBase = (appName, config, libs, routes = []) => {
|
|
|
640
640
|
const watchOptions = config2.watchOptions;
|
|
641
641
|
config2.resolve.alias.canvas = false;
|
|
642
642
|
config2.resolve.alias.encoding = false;
|
|
643
|
-
const ignored = watchOptions?.ignored ? typeof watchOptions.ignored === "string" ? [watchOptions.ignored] : watchOptions.ignored : [];
|
|
643
|
+
const ignored = watchOptions?.ignored ? typeof watchOptions.ignored === "string" ? [watchOptions.ignored] : Array.isArray(watchOptions.ignored) ? watchOptions.ignored.filter((ignore) => typeof ignore === "string") : [] : [];
|
|
644
644
|
config2.watchOptions = {
|
|
645
645
|
...config2.watchOptions ?? {},
|
|
646
646
|
...{ ignored: [...ignored, "**/node_modules/**", "**/.git/**", "**/.next/**", "**/dist/**", "**/local/**"] }
|
package/esm/index.js
CHANGED
|
@@ -620,7 +620,7 @@ var withBase = (appName, config, libs, routes = []) => {
|
|
|
620
620
|
const watchOptions = config2.watchOptions;
|
|
621
621
|
config2.resolve.alias.canvas = false;
|
|
622
622
|
config2.resolve.alias.encoding = false;
|
|
623
|
-
const ignored = watchOptions?.ignored ? typeof watchOptions.ignored === "string" ? [watchOptions.ignored] : watchOptions.ignored : [];
|
|
623
|
+
const ignored = watchOptions?.ignored ? typeof watchOptions.ignored === "string" ? [watchOptions.ignored] : Array.isArray(watchOptions.ignored) ? watchOptions.ignored.filter((ignore) => typeof ignore === "string") : [] : [];
|
|
624
624
|
config2.watchOptions = {
|
|
625
625
|
...config2.watchOptions ?? {},
|
|
626
626
|
...{ ignored: [...ignored, "**/node_modules/**", "**/.git/**", "**/.next/**", "**/dist/**", "**/local/**"] }
|