@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 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/**"] }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "sourceType": "module",
4
4
  "name": "@akanjs/cli",
5
- "version": "0.9.49",
5
+ "version": "0.9.50",
6
6
  "bin": {
7
7
  "akan": "esm/index.js"
8
8
  },