@akanjs/config 0.9.49 → 0.9.51

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.
@@ -101,7 +101,7 @@ const withBase = (appName, config, libs, routes = []) => {
101
101
  const watchOptions = config2.watchOptions;
102
102
  config2.resolve.alias.canvas = false;
103
103
  config2.resolve.alias.encoding = false;
104
- const ignored = watchOptions?.ignored ? typeof watchOptions.ignored === "string" ? [watchOptions.ignored] : watchOptions.ignored : [];
104
+ const ignored = watchOptions?.ignored ? typeof watchOptions.ignored === "string" ? [watchOptions.ignored] : Array.isArray(watchOptions.ignored) ? watchOptions.ignored.filter((ignore) => typeof ignore === "string") : [] : [];
105
105
  config2.watchOptions = {
106
106
  ...config2.watchOptions ?? {},
107
107
  ...{ ignored: [...ignored, "**/node_modules/**", "**/.git/**", "**/.next/**", "**/dist/**", "**/local/**"] }
@@ -67,7 +67,7 @@ const withBase = (appName, config, libs, routes = []) => {
67
67
  const watchOptions = config2.watchOptions;
68
68
  config2.resolve.alias.canvas = false;
69
69
  config2.resolve.alias.encoding = false;
70
- const ignored = watchOptions?.ignored ? typeof watchOptions.ignored === "string" ? [watchOptions.ignored] : watchOptions.ignored : [];
70
+ const ignored = watchOptions?.ignored ? typeof watchOptions.ignored === "string" ? [watchOptions.ignored] : Array.isArray(watchOptions.ignored) ? watchOptions.ignored.filter((ignore) => typeof ignore === "string") : [] : [];
71
71
  config2.watchOptions = {
72
72
  ...config2.watchOptions ?? {},
73
73
  ...{ ignored: [...ignored, "**/node_modules/**", "**/.git/**", "**/.next/**", "**/dist/**", "**/local/**"] }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/config",
3
- "version": "0.9.49",
3
+ "version": "0.9.51",
4
4
  "sourceType": "module",
5
5
  "module": {
6
6
  "access": "public"