@intlayer/unmerged-dictionaries-entry 5.5.2 → 5.5.3
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/dist/cjs/index.cjs
CHANGED
|
@@ -27,7 +27,10 @@ var import_fs = require("fs");
|
|
|
27
27
|
var import_path = require("path");
|
|
28
28
|
const getUnmergedDictionaries = () => {
|
|
29
29
|
const { content } = (0, import_config.getConfiguration)();
|
|
30
|
-
const dictionariesPath = (0, import_path.join)(
|
|
30
|
+
const dictionariesPath = (0, import_path.join)(
|
|
31
|
+
content.mainDir,
|
|
32
|
+
import_config.isESModule ? "unmerged_dictionaries.mjs" : "unmerged_dictionaries.cjs"
|
|
33
|
+
);
|
|
31
34
|
let dictionaries = {};
|
|
32
35
|
if ((0, import_fs.existsSync)(dictionariesPath)) {
|
|
33
36
|
delete import_config.ESMxCJSRequire.cache[dictionariesPath];
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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 { ESMxCJSRequire, getConfiguration } from '@intlayer/config';\nimport { existsSync } from 'fs';\nimport { join } from 'path';\n// @ts-ignore intlayer declared for module augmentation\nimport type { Dictionary, IntlayerDictionaryTypesConnector } from 'intlayer';\n\nexport const getUnmergedDictionaries = () => {\n const { content } = getConfiguration();\n\n const dictionariesPath = join(content.mainDir
|
|
1
|
+
{"version":3,"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 { ESMxCJSRequire, getConfiguration, isESModule } from '@intlayer/config';\nimport { existsSync } from 'fs';\nimport { join } from 'path';\n// @ts-ignore intlayer declared for module augmentation\nimport type { Dictionary, IntlayerDictionaryTypesConnector } from 'intlayer';\n\nexport const getUnmergedDictionaries = () => {\n const { content } = getConfiguration();\n\n const dictionariesPath = join(\n content.mainDir,\n isESModule ? 'unmerged_dictionaries.mjs' : 'unmerged_dictionaries.cjs'\n );\n let dictionaries: Record<\n IntlayerDictionaryTypesConnector['key'],\n Dictionary[]\n > = {};\n\n if (existsSync(dictionariesPath)) {\n delete ESMxCJSRequire.cache[dictionariesPath];\n dictionaries = ESMxCJSRequire(dictionariesPath);\n }\n\n return dictionaries;\n};\n\nexport default (() => getUnmergedDictionaries())();\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,oBAA6D;AAC7D,gBAA2B;AAC3B,kBAAqB;AAId,MAAM,0BAA0B,MAAM;AAC3C,QAAM,EAAE,QAAQ,QAAI,gCAAiB;AAErC,QAAM,uBAAmB;AAAA,IACvB,QAAQ;AAAA,IACR,2BAAa,8BAA8B;AAAA,EAC7C;AACA,MAAI,eAGA,CAAC;AAEL,UAAI,sBAAW,gBAAgB,GAAG;AAChC,WAAO,6BAAe,MAAM,gBAAgB;AAC5C,uBAAe,8BAAe,gBAAgB;AAAA,EAChD;AAEA,SAAO;AACT;AAEA,IAAO,iBAAS,MAAM,wBAAwB,GAAG;","names":[]}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { ESMxCJSRequire, getConfiguration } from "@intlayer/config";
|
|
1
|
+
import { ESMxCJSRequire, getConfiguration, isESModule } from "@intlayer/config";
|
|
2
2
|
import { existsSync } from "fs";
|
|
3
3
|
import { join } from "path";
|
|
4
4
|
const getUnmergedDictionaries = () => {
|
|
5
5
|
const { content } = getConfiguration();
|
|
6
|
-
const dictionariesPath = join(
|
|
6
|
+
const dictionariesPath = join(
|
|
7
|
+
content.mainDir,
|
|
8
|
+
isESModule ? "unmerged_dictionaries.mjs" : "unmerged_dictionaries.cjs"
|
|
9
|
+
);
|
|
7
10
|
let dictionaries = {};
|
|
8
11
|
if (existsSync(dictionariesPath)) {
|
|
9
12
|
delete ESMxCJSRequire.cache[dictionariesPath];
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"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 { ESMxCJSRequire, getConfiguration } from '@intlayer/config';\nimport { existsSync } from 'fs';\nimport { join } from 'path';\n// @ts-ignore intlayer declared for module augmentation\nimport type { Dictionary, IntlayerDictionaryTypesConnector } from 'intlayer';\n\nexport const getUnmergedDictionaries = () => {\n const { content } = getConfiguration();\n\n const dictionariesPath = join(content.mainDir
|
|
1
|
+
{"version":3,"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 { ESMxCJSRequire, getConfiguration, isESModule } from '@intlayer/config';\nimport { existsSync } from 'fs';\nimport { join } from 'path';\n// @ts-ignore intlayer declared for module augmentation\nimport type { Dictionary, IntlayerDictionaryTypesConnector } from 'intlayer';\n\nexport const getUnmergedDictionaries = () => {\n const { content } = getConfiguration();\n\n const dictionariesPath = join(\n content.mainDir,\n isESModule ? 'unmerged_dictionaries.mjs' : 'unmerged_dictionaries.cjs'\n );\n let dictionaries: Record<\n IntlayerDictionaryTypesConnector['key'],\n Dictionary[]\n > = {};\n\n if (existsSync(dictionariesPath)) {\n delete ESMxCJSRequire.cache[dictionariesPath];\n dictionaries = ESMxCJSRequire(dictionariesPath);\n }\n\n return dictionaries;\n};\n\nexport default (() => getUnmergedDictionaries())();\n"],"mappings":"AAMA,SAAS,gBAAgB,kBAAkB,kBAAkB;AAC7D,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AAId,MAAM,0BAA0B,MAAM;AAC3C,QAAM,EAAE,QAAQ,IAAI,iBAAiB;AAErC,QAAM,mBAAmB;AAAA,IACvB,QAAQ;AAAA,IACR,aAAa,8BAA8B;AAAA,EAC7C;AACA,MAAI,eAGA,CAAC;AAEL,MAAI,WAAW,gBAAgB,GAAG;AAChC,WAAO,eAAe,MAAM,gBAAgB;AAC5C,mBAAe,eAAe,gBAAgB;AAAA,EAChD;AAEA,SAAO;AACT;AAEA,IAAO,iBAAS,MAAM,wBAAwB,GAAG;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAE,UAAU,EAAoC,MAAM,UAAU,CAAC;AAE7E,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAE,UAAU,EAAoC,MAAM,UAAU,CAAC;AAE7E,eAAO,MAAM,uBAAuB,8DAkBnC,CAAC;;AAEF,wBAAmD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/unmerged-dictionaries-entry",
|
|
3
|
-
"version": "5.5.
|
|
3
|
+
"version": "5.5.3",
|
|
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": [
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"./package.json"
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@intlayer/config": "5.5.
|
|
56
|
+
"@intlayer/config": "5.5.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/node": "^22.13.10",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"tsc-alias": "^1.8.11",
|
|
66
66
|
"tsup": "^8.4.0",
|
|
67
67
|
"typescript": "^5.8.2",
|
|
68
|
-
"@utils/eslint-config": "1.0.4",
|
|
69
|
-
"@utils/ts-config": "1.0.4",
|
|
70
68
|
"@utils/ts-config-types": "1.0.4",
|
|
71
|
-
"@utils/
|
|
69
|
+
"@utils/eslint-config": "1.0.4",
|
|
70
|
+
"@utils/tsup-config": "1.0.4",
|
|
71
|
+
"@utils/ts-config": "1.0.4"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
|
-
"
|
|
75
|
-
"intlayer": "5.5.
|
|
74
|
+
"intlayer": "5.5.3",
|
|
75
|
+
"@intlayer/config": "5.5.3"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
78
|
"node": ">=14.18"
|