@intlayer/dictionaries-entry 4.1.11 → 5.0.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.
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/dictionaries-entry is a package that only returns the dictionary entry path.\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 'fs';\nimport { join } from 'path';\nimport { getConfiguration, ESMxCJSRequire } from '@intlayer/config';\nimport type {
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/dictionaries-entry is a package that only returns the dictionary entry path.\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 'fs';\nimport { join } from 'path';\nimport { getConfiguration, ESMxCJSRequire } from '@intlayer/config';\n// @ts-ignore intlayer declared for module augmentation\nimport type { IntlayerDictionaryTypesConnector } from 'intlayer';\n\nlet dictionaries = undefined;\n\nconst { content } = getConfiguration();\nconst dictionariesPath = join(content.mainDir, 'dictionaries.cjs');\n\n// Test if the dictionaries file exists\nif (existsSync(dictionariesPath)) {\n ESMxCJSRequire(dictionariesPath);\n dictionaries = ESMxCJSRequire(dictionariesPath);\n}\n\nexport default (dictionaries ?? {}) as Record<\n IntlayerDictionaryTypesConnector['key'],\n IntlayerDictionaryTypesConnector\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,gBAA2B;AAC3B,kBAAqB;AACrB,oBAAiD;AAIjD,IAAI,eAAe;AAEnB,MAAM,EAAE,QAAQ,QAAI,gCAAiB;AACrC,MAAM,uBAAmB,kBAAK,QAAQ,SAAS,kBAAkB;AAGjE,QAAI,sBAAW,gBAAgB,GAAG;AAChC,oCAAe,gBAAgB;AAC/B,qBAAe,8BAAe,gBAAgB;AAChD;AAEA,IAAO,gBAAS,gBAAgB,CAAC;","names":[]}
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/dictionaries-entry is a package that only returns the dictionary entry path.\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 'fs';\nimport { join } from 'path';\nimport { getConfiguration, ESMxCJSRequire } from '@intlayer/config';\nimport type {
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/dictionaries-entry is a package that only returns the dictionary entry path.\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 'fs';\nimport { join } from 'path';\nimport { getConfiguration, ESMxCJSRequire } from '@intlayer/config';\n// @ts-ignore intlayer declared for module augmentation\nimport type { IntlayerDictionaryTypesConnector } from 'intlayer';\n\nlet dictionaries = undefined;\n\nconst { content } = getConfiguration();\nconst dictionariesPath = join(content.mainDir, 'dictionaries.cjs');\n\n// Test if the dictionaries file exists\nif (existsSync(dictionariesPath)) {\n ESMxCJSRequire(dictionariesPath);\n dictionaries = ESMxCJSRequire(dictionariesPath);\n}\n\nexport default (dictionaries ?? {}) as Record<\n IntlayerDictionaryTypesConnector['key'],\n IntlayerDictionaryTypesConnector\n>;\n"],"mappings":"AAMA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,kBAAkB,sBAAsB;AAIjD,IAAI,eAAe;AAEnB,MAAM,EAAE,QAAQ,IAAI,iBAAiB;AACrC,MAAM,mBAAmB,KAAK,QAAQ,SAAS,kBAAkB;AAGjE,IAAI,WAAW,gBAAgB,GAAG;AAChC,iBAAe,gBAAgB;AAC/B,iBAAe,eAAe,gBAAgB;AAChD;AAEA,IAAO,gBAAS,gBAAgB,CAAC;","names":[]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Using an external package allow to alias it in the bundle configuration (such as webpack).
|
|
4
4
|
* The alias allow hot reload the app (such as nextjs) on any dictionary change.
|
|
5
5
|
*/
|
|
6
|
-
import type {
|
|
7
|
-
declare const _default: Record<
|
|
6
|
+
import type { IntlayerDictionaryTypesConnector } from 'intlayer';
|
|
7
|
+
declare const _default: Record<IntlayerDictionaryTypesConnector["key"], IntlayerDictionaryTypesConnector>;
|
|
8
8
|
export default _default;
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;wBAa1B,MAAM,CAC3C,gCAAgC,CAAC,KAAK,CAAC,EACvC,gCAAgC,CACjC;AAHD,wBAGE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/dictionaries-entry",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.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": [
|
|
@@ -52,8 +52,7 @@
|
|
|
52
52
|
"./package.json"
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@intlayer/config": "^
|
|
56
|
-
"@intlayer/core": "4.1.11"
|
|
55
|
+
"@intlayer/config": "^5.0.0"
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|
|
59
58
|
"@types/node": "^22.10.6",
|
|
@@ -71,8 +70,8 @@
|
|
|
71
70
|
"@utils/tsup-config": "1.0.4"
|
|
72
71
|
},
|
|
73
72
|
"peerDependencies": {
|
|
74
|
-
"@intlayer/config": "
|
|
75
|
-
"
|
|
73
|
+
"@intlayer/config": "5.0.0",
|
|
74
|
+
"intlayer": "5.0.0"
|
|
76
75
|
},
|
|
77
76
|
"engines": {
|
|
78
77
|
"node": ">=14.18"
|