@korioinc/next-conf 1.0.2 → 1.0.5

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.
@@ -2,7 +2,6 @@ import type { NextConfig } from 'next';
2
2
  export interface WithConfigOptions {
3
3
  configFileName?: string;
4
4
  linguiConfigFileName?: string;
5
- linguiCatalogsPath?: string;
6
5
  }
7
6
  /**
8
7
  * Next.js configuration plugin that injects webpack aliases
@@ -1 +1 @@
1
- {"version":3,"file":"with-config.d.ts","sourceRoot":"","sources":["../../src/plugin/with-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AA2BvC,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,UAAU,GAAE,UAAe,EAAE,OAAO,GAAE,iBAAsB,GAAG,UAAU,CAsFxG"}
1
+ {"version":3,"file":"with-config.d.ts","sourceRoot":"","sources":["../../src/plugin/with-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AA2BvC,MAAM,WAAW,iBAAiB;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,UAAU,GAAE,UAAe,EAAE,OAAO,GAAE,iBAAsB,GAAG,UAAU,CAoExG"}
@@ -18,7 +18,7 @@ import * as path from 'path';
18
18
  * ```
19
19
  */
20
20
  export function withNextKitConf(nextConfig = {}, options = {}) {
21
- const { configFileName = 'next-kit.config.ts', linguiConfigFileName = 'lingui.config.ts', linguiCatalogsPath = 'lang', } = options;
21
+ const { configFileName = 'next-kit.config.ts', linguiConfigFileName = 'lingui.config.ts' } = options;
22
22
  return {
23
23
  ...nextConfig,
24
24
  // Turbopack configuration for development
@@ -36,12 +36,6 @@ export function withNextKitConf(nextConfig = {}, options = {}) {
36
36
  'lingui.config': linguiConfigFileName.startsWith('.') || linguiConfigFileName.startsWith('/')
37
37
  ? linguiConfigFileName
38
38
  : `./${linguiConfigFileName}`,
39
- // Lingui catalogs alias
40
- // Prefer existing alias; else use provided/default path (as a specifier)
41
- 'lingui.locale-path': nextConfig.turbopack?.resolveAlias?.['lingui.locale-path'] ??
42
- (linguiCatalogsPath.startsWith('.') || linguiCatalogsPath.startsWith('/')
43
- ? linguiCatalogsPath
44
- : `./${linguiCatalogsPath}`),
45
39
  },
46
40
  },
47
41
  // Webpack configuration for production builds
@@ -70,12 +64,6 @@ export function withNextKitConf(nextConfig = {}, options = {}) {
70
64
  if (config.resolve?.alias) {
71
65
  config.resolve.alias['lingui.config'] = userLinguiConfigPath;
72
66
  }
73
- // Lingui catalogs alias for Webpack (prefer existing)
74
- if (config.resolve?.alias) {
75
- const existing = config.resolve.alias['lingui.locale-path'];
76
- const desired = existing || path.resolve(cwd, linguiCatalogsPath);
77
- config.resolve.alias['lingui.locale-path'] = desired;
78
- }
79
67
  // Call the original webpack function if it exists
80
68
  if (typeof nextConfig.webpack === 'function') {
81
69
  return nextConfig.webpack(config, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@korioinc/next-conf",
3
- "version": "1.0.2",
3
+ "version": "1.0.5",
4
4
  "description": "Configuration management for Next.js applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",