@intlayer/unmerged-dictionaries-entry 7.5.0-canary.0 → 7.5.0

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.
@@ -1,9 +1,9 @@
1
1
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  let node_fs = require("node:fs");
3
3
  let node_path = require("node:path");
4
- let __intlayer_config = require("@intlayer/config");
5
- let __intlayer_config_built = require("@intlayer/config/built");
6
- __intlayer_config_built = require_rolldown_runtime.__toESM(__intlayer_config_built);
4
+ let _intlayer_config = require("@intlayer/config");
5
+ let _intlayer_config_built = require("@intlayer/config/built");
6
+ _intlayer_config_built = require_rolldown_runtime.__toESM(_intlayer_config_built);
7
7
 
8
8
  //#region src/index.ts
9
9
  /**
@@ -11,13 +11,13 @@ __intlayer_config_built = require_rolldown_runtime.__toESM(__intlayer_config_bui
11
11
  * Using an external package allow to alias it in the bundle configuration (such as webpack).
12
12
  * The alias allow hot reload the app (such as nextjs) on any dictionary change.
13
13
  */
14
- const getUnmergedDictionaries = (configuration = __intlayer_config_built.default) => {
14
+ const getUnmergedDictionaries = (configuration = _intlayer_config_built.default) => {
15
15
  const { content, build } = configuration;
16
16
  const dictionariesPath = (0, node_path.join)(content.mainDir, `unmerged_dictionaries.cjs`);
17
17
  let dictionaries = {};
18
18
  if ((0, node_fs.existsSync)(dictionariesPath)) {
19
- (0, __intlayer_config.clearModuleCache)(dictionariesPath);
20
- dictionaries = (build.require ?? __intlayer_config.configESMxCJSRequire)(dictionariesPath);
19
+ (0, _intlayer_config.clearModuleCache)(dictionariesPath);
20
+ dictionaries = (build.require ?? _intlayer_config.configESMxCJSRequire)(dictionariesPath);
21
21
  }
22
22
  return dictionaries;
23
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["getUnmergedDictionaries: GetUnmergedDictionaries","config","dictionaries: Record<DictionaryKeys, Dictionary[]>","configESMxCJSRequire"],"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/unmerged-dictionaries-entry is a package that only returns the unmerged dictionary entry file.\n * Using an external package allow to alias it in the bundle configuration (such as webpack).\n * The alias allow hot reload the app (such as nextjs) on any dictionary change.\n */\n\nimport { existsSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { clearModuleCache, configESMxCJSRequire } from '@intlayer/config';\nimport config from '@intlayer/config/built';\nimport type {\n Dictionary,\n DictionaryKeys,\n IntlayerConfig,\n} from '@intlayer/types';\n\nexport type UnmergedDictionaries = Record<DictionaryKeys, Dictionary[]>;\n\ntype GetUnmergedDictionaries = (\n configuration?: IntlayerConfig\n) => UnmergedDictionaries;\n\nexport const getUnmergedDictionaries: GetUnmergedDictionaries = (\n configuration: IntlayerConfig = config\n) => {\n const { content, build } = configuration;\n\n // Always use cjs for dictionaries entry as it uses require\n const dictionariesPath = join(content.mainDir, `unmerged_dictionaries.cjs`);\n let dictionaries: Record<DictionaryKeys, Dictionary[]> = {};\n\n if (existsSync(dictionariesPath)) {\n // Clear cache for unmerged_dictionaries.cjs and all its dependencies (JSON files)\n clearModuleCache(dictionariesPath);\n dictionaries = (build.require ?? configESMxCJSRequire)(dictionariesPath);\n }\n\n return dictionaries;\n};\n"],"mappings":";;;;;;;;;;;;;AAsBA,MAAaA,2BACX,gBAAgCC,oCAC7B;CACH,MAAM,EAAE,SAAS,UAAU;CAG3B,MAAM,uCAAwB,QAAQ,SAAS,4BAA4B;CAC3E,IAAIC,eAAqD,EAAE;AAE3D,6BAAe,iBAAiB,EAAE;AAEhC,0CAAiB,iBAAiB;AAClC,kBAAgB,MAAM,WAAWC,wCAAsB,iBAAiB;;AAG1E,QAAO"}
1
+ {"version":3,"file":"index.cjs","names":["getUnmergedDictionaries: GetUnmergedDictionaries","config","dictionaries: Record<DictionaryKeys, Dictionary[]>","configESMxCJSRequire"],"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/unmerged-dictionaries-entry is a package that only returns the unmerged dictionary entry file.\n * Using an external package allow to alias it in the bundle configuration (such as webpack).\n * The alias allow hot reload the app (such as nextjs) on any dictionary change.\n */\n\nimport { existsSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { clearModuleCache, configESMxCJSRequire } from '@intlayer/config';\nimport config from '@intlayer/config/built';\nimport type {\n Dictionary,\n DictionaryKeys,\n IntlayerConfig,\n} from '@intlayer/types';\n\nexport type UnmergedDictionaries = Record<DictionaryKeys, Dictionary[]>;\n\ntype GetUnmergedDictionaries = (\n configuration?: IntlayerConfig\n) => UnmergedDictionaries;\n\nexport const getUnmergedDictionaries: GetUnmergedDictionaries = (\n configuration: IntlayerConfig = config\n) => {\n const { content, build } = configuration;\n\n // Always use cjs for dictionaries entry as it uses require\n const dictionariesPath = join(content.mainDir, `unmerged_dictionaries.cjs`);\n let dictionaries: Record<DictionaryKeys, Dictionary[]> = {};\n\n if (existsSync(dictionariesPath)) {\n // Clear cache for unmerged_dictionaries.cjs and all its dependencies (JSON files)\n clearModuleCache(dictionariesPath);\n dictionaries = (build.require ?? configESMxCJSRequire)(dictionariesPath);\n }\n\n return dictionaries;\n};\n"],"mappings":";;;;;;;;;;;;;AAsBA,MAAaA,2BACX,gBAAgCC,mCAC7B;CACH,MAAM,EAAE,SAAS,UAAU;CAG3B,MAAM,uCAAwB,QAAQ,SAAS,4BAA4B;CAC3E,IAAIC,eAAqD,EAAE;AAE3D,6BAAe,iBAAiB,EAAE;AAEhC,yCAAiB,iBAAiB;AAClC,kBAAgB,MAAM,WAAWC,uCAAsB,iBAAiB;;AAG1E,QAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/unmerged-dictionaries-entry",
3
- "version": "7.5.0-canary.0",
3
+ "version": "7.5.0",
4
4
  "private": false,
5
5
  "description": "Provides the entry path for Intlayer dictionaries, solving filesystem retrieval issues for bundlers like Webpack and Rollup.",
6
6
  "keywords": [
@@ -72,18 +72,18 @@
72
72
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
73
73
  },
74
74
  "dependencies": {
75
- "@intlayer/config": "7.5.0-canary.0"
75
+ "@intlayer/config": "7.5.0"
76
76
  },
77
77
  "devDependencies": {
78
- "@intlayer/types": "7.5.0-canary.0",
79
- "@types/node": "24.10.1",
78
+ "@intlayer/types": "7.5.0",
79
+ "@types/node": "25.0.3",
80
80
  "@utils/ts-config": "1.0.4",
81
81
  "@utils/ts-config-types": "1.0.4",
82
82
  "@utils/tsdown-config": "1.0.4",
83
83
  "rimraf": "6.1.2",
84
- "tsdown": "0.16.8",
84
+ "tsdown": "0.18.1",
85
85
  "typescript": "5.9.3",
86
- "vitest": "4.0.15"
86
+ "vitest": "4.0.16"
87
87
  },
88
88
  "engines": {
89
89
  "node": ">=14.18"