@akanjs/config 0.0.93 → 0.0.94

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/config",
3
- "version": "0.0.93",
3
+ "version": "0.0.94",
4
4
  "type": "commonjs",
5
5
  "module": {
6
6
  "access": "public"
package/src/nextConfig.js CHANGED
@@ -52,20 +52,20 @@ const composePlugins = (...plugins) => {
52
52
  };
53
53
  };
54
54
  };
55
- const commandType = process.env.AKAN_COMMAND_TYPE?.includes("serve") ? "serve" : process.env.AKAN_COMMAND_TYPE?.includes("build") ? "build" : "deploy";
55
+ const commandType = process.env.AKAN_COMMAND_TYPE?.includes("start") ? "start" : process.env.AKAN_COMMAND_TYPE?.includes("build") ? "build" : "deploy";
56
56
  const withPWA = (0, import_next_pwa.default)({
57
57
  dest: "public",
58
58
  register: true,
59
59
  skipWaiting: true,
60
60
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
61
61
  runtimeCaching: import_cache.default,
62
- disable: commandType === "serve"
62
+ disable: commandType === "start"
63
63
  });
64
64
  const devDomain = process.env.NEXT_PUBLIC_SERVE_DOMAIN ?? "akanjs.com";
65
65
  const withBase = (appName, config, libs, routes = []) => {
66
66
  return composePlugins(
67
67
  (0, import_bundle_analyzer.default)({ enabled: process.env.ANALYZE === "true" }),
68
- ...commandType !== "serve" || process.env.USE_PWA === "true" ? [withPWA] : []
68
+ ...commandType !== "start" || process.env.USE_PWA === "true" ? [withPWA] : []
69
69
  )({
70
70
  ...config,
71
71
  eslint: { ...config.eslint, ignoreDuringBuilds: true },
@@ -74,7 +74,7 @@ const withBase = (appName, config, libs, routes = []) => {
74
74
  basePaths: routes.map(({ basePath }) => basePath).join(",")
75
75
  },
76
76
  transpilePackages: ["swiper", "ssr-window", "dom7"],
77
- reactStrictMode: commandType === "serve" ? false : true,
77
+ reactStrictMode: commandType === "start" ? false : true,
78
78
  experimental: {
79
79
  ...config.experimental ?? {},
80
80
  optimizePackageImports: [
@@ -18,20 +18,20 @@ const composePlugins = (...plugins) => {
18
18
  };
19
19
  };
20
20
  };
21
- const commandType = process.env.AKAN_COMMAND_TYPE?.includes("serve") ? "serve" : process.env.AKAN_COMMAND_TYPE?.includes("build") ? "build" : "deploy";
21
+ const commandType = process.env.AKAN_COMMAND_TYPE?.includes("start") ? "start" : process.env.AKAN_COMMAND_TYPE?.includes("build") ? "build" : "deploy";
22
22
  const withPWA = pwa({
23
23
  dest: "public",
24
24
  register: true,
25
25
  skipWaiting: true,
26
26
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
27
27
  runtimeCaching,
28
- disable: commandType === "serve"
28
+ disable: commandType === "start"
29
29
  });
30
30
  const devDomain = process.env.NEXT_PUBLIC_SERVE_DOMAIN ?? "akanjs.com";
31
31
  const withBase = (appName, config, libs, routes = []) => {
32
32
  return composePlugins(
33
33
  withAnalyze({ enabled: process.env.ANALYZE === "true" }),
34
- ...commandType !== "serve" || process.env.USE_PWA === "true" ? [withPWA] : []
34
+ ...commandType !== "start" || process.env.USE_PWA === "true" ? [withPWA] : []
35
35
  )({
36
36
  ...config,
37
37
  eslint: { ...config.eslint, ignoreDuringBuilds: true },
@@ -40,7 +40,7 @@ const withBase = (appName, config, libs, routes = []) => {
40
40
  basePaths: routes.map(({ basePath }) => basePath).join(",")
41
41
  },
42
42
  transpilePackages: ["swiper", "ssr-window", "dom7"],
43
- reactStrictMode: commandType === "serve" ? false : true,
43
+ reactStrictMode: commandType === "start" ? false : true,
44
44
  experimental: {
45
45
  ...config.experimental ?? {},
46
46
  optimizePackageImports: [