@intlayer/config 9.5.3 → 9.5.4
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/README.md +8 -8
- package/dist/cjs/bundle/logBundle.cjs +1 -1
- package/dist/cjs/callers/index.cjs +1 -1
- package/dist/cjs/client.cjs +2 -2
- package/dist/cjs/configFile/buildBrowserConfiguration.cjs +2 -2
- package/dist/cjs/configFile/buildConfigurationFields.cjs +2 -2
- package/dist/cjs/configFile/buildConfigurationFields.cjs.map +1 -1
- package/dist/cjs/configFile/configurationSchema.cjs +164 -156
- package/dist/cjs/configFile/configurationSchema.cjs.map +1 -1
- package/dist/cjs/configFile/index.cjs +1 -0
- package/dist/cjs/configFile/searchConfigurationFile.cjs +1 -1
- package/dist/cjs/defaultValues/index.cjs +5 -5
- package/dist/cjs/extract/index.cjs +1 -1
- package/dist/cjs/node.cjs +1 -0
- package/dist/cjs/utils/alias.cjs +26 -44
- package/dist/cjs/utils/alias.cjs.map +1 -1
- package/dist/cjs/utils/index.cjs +11 -11
- package/dist/cjs/utils/retryManager.cjs +1 -1
- package/dist/esm/bundle/logBundle.mjs +1 -1
- package/dist/esm/callers/index.mjs +1 -1
- package/dist/esm/client.mjs +2 -2
- package/dist/esm/configFile/buildBrowserConfiguration.mjs +2 -2
- package/dist/esm/configFile/buildConfigurationFields.mjs +3 -3
- package/dist/esm/configFile/buildConfigurationFields.mjs.map +1 -1
- package/dist/esm/configFile/configurationSchema.mjs +124 -117
- package/dist/esm/configFile/configurationSchema.mjs.map +1 -1
- package/dist/esm/configFile/index.mjs +2 -2
- package/dist/esm/configFile/searchConfigurationFile.mjs +1 -1
- package/dist/esm/defaultValues/index.mjs +5 -5
- package/dist/esm/extract/index.mjs +1 -1
- package/dist/esm/node.mjs +2 -2
- package/dist/esm/utils/alias.mjs +26 -44
- package/dist/esm/utils/alias.mjs.map +1 -1
- package/dist/esm/utils/index.mjs +11 -11
- package/dist/esm/utils/retryManager.mjs +1 -1
- package/dist/types/configFile/buildConfigurationFields.d.ts.map +1 -1
- package/dist/types/configFile/configurationSchema.d.ts +333 -327
- package/dist/types/configFile/configurationSchema.d.ts.map +1 -1
- package/dist/types/configFile/index.d.ts +2 -2
- package/dist/types/node.d.ts +2 -2
- package/dist/types/utils/alias.d.ts +16 -6
- package/dist/types/utils/alias.d.ts.map +1 -1
- package/package.json +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurationSchema.d.ts","names":[],"sources":["../../../src/configFile/configurationSchema.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"configurationSchema.d.ts","names":[],"sources":["../../../src/configFile/configurationSchema.ts"],"mappings":";;;qBAIa,4BAA0B,EAAA;;;;;;;;;GAKrC,EAAA,KAAA;qBA4BW,yBAAuB,EAAA;;;;;;;;;;;;;;GAUlC,EAAA,KAAA;qBAEW,yBAAuB,EAAA;;;;;;;GAGlC,EAAA,KAAA;qBAEW,eAAa,EAAA,uBAAA,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYxB,EAAA,KAAA;qBAEW,mBAAiB,EAAA;;;GAG5B,EAAA,KAAA;qBAEW,oBAAkB,EAAA;;;;;GAE7B,EAAA,KAAA;qBAEW,qBAAmB,EAAA;;;;;;;;;;;;;;;;;;;GAI9B,EAAA,KAAA;qBAEW,eAAa,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAcxB,EAAA,KAAA;qBAEW,cAAY,EAAA;;;;;;;;;;;;;GAavB,EAAA,KAAA;qBAEW,eAAa,EAAA;;;;;;;GAOxB,EAAA,KAAA;qBAEW,cAAY,EAAA;;;;;;;;;;;;;;;;GAevB,EAAA,KAAA;qBAEW,iBAAe,EAAA;;;;GAI1B,EAAA,KAAA;qBAEW,WAAS,EAAA;;;;;;;;;;;GAOpB,EAAA,KAAA;qBAEW,UAAQ,EAAA;;;;;;;;;;;GAQnB,EAAA,KAAA;qBAEW,aAAW,EAAA;;;;;;;;;;;;;;;;;;;GAStB,EAAA,KAAA;qBAEW,gBAAc,EAAA;;;;;;;;GAQzB,EAAA,KAAA;qBAEW,kBAAgB,EAAA;;;;;;;;;;GAe3B,EAAA,KAAA;qBAEW,sBAAoB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqB/B,EAAA,KAAA;;;;;;qBAOW,kCAAkC,EAAE,KAAK,aAAa,EAAE,KAAK"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetConfigurationAndFilePathResult, GetConfigurationOptions, getConfiguration, getConfigurationAndFilePath } from "./getConfiguration.js";
|
|
2
2
|
import { BrowserIntlayerConfig, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration } from "./buildBrowserConfiguration.js";
|
|
3
3
|
import { buildConfigurationFields } from "./buildConfigurationFields.js";
|
|
4
|
-
import { aiSchema, analyticsSchema, buildSchema, compilerSchema, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, internationalizationSchema, intlayerConfigSchema, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, storageAttributesSchema, storageSchema, systemSchema } from "./configurationSchema.js";
|
|
4
|
+
import { aiSchema, analyticsSchema, buildSchema, compilerSchema, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, internationalizationSchema, intlayerConfigSchema, intlayerConfigSchemaParseContext, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, storageAttributesSchema, storageSchema, systemSchema } from "./configurationSchema.js";
|
|
5
5
|
import { configurationFilesCandidates, searchConfigurationFile } from "./searchConfigurationFile.js";
|
|
6
|
-
export { type BrowserIntlayerConfig, GetConfigurationAndFilePathResult, GetConfigurationOptions, aiSchema, analyticsSchema, buildAnalyticsFields, buildBrowserConfiguration, buildConfigurationFields, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, buildSchema, compilerSchema, configurationFilesCandidates, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, extractBrowserConfiguration, getConfiguration, getConfigurationAndFilePath, internationalizationSchema, intlayerConfigSchema, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, searchConfigurationFile, storageAttributesSchema, storageSchema, systemSchema };
|
|
6
|
+
export { type BrowserIntlayerConfig, GetConfigurationAndFilePathResult, GetConfigurationOptions, aiSchema, analyticsSchema, buildAnalyticsFields, buildBrowserConfiguration, buildConfigurationFields, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, buildSchema, compilerSchema, configurationFilesCandidates, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, extractBrowserConfiguration, getConfiguration, getConfigurationAndFilePath, internationalizationSchema, intlayerConfigSchema, intlayerConfigSchemaParseContext, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, searchConfigurationFile, storageAttributesSchema, storageSchema, systemSchema };
|
package/dist/types/node.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GetConfigurationAndFilePathResult, GetConfigurationOptions, getConfiguration, getConfigurationAndFilePath } from "./configFile/getConfiguration.js";
|
|
2
2
|
import { BrowserIntlayerConfig, buildAnalyticsFields, buildBrowserConfiguration, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, extractBrowserConfiguration } from "./configFile/buildBrowserConfiguration.js";
|
|
3
3
|
import { buildConfigurationFields } from "./configFile/buildConfigurationFields.js";
|
|
4
|
-
import { aiSchema, analyticsSchema, buildSchema, compilerSchema, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, internationalizationSchema, intlayerConfigSchema, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, storageAttributesSchema, storageSchema, systemSchema } from "./configFile/configurationSchema.js";
|
|
4
|
+
import { aiSchema, analyticsSchema, buildSchema, compilerSchema, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, internationalizationSchema, intlayerConfigSchema, intlayerConfigSchemaParseContext, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, storageAttributesSchema, storageSchema, systemSchema } from "./configFile/configurationSchema.js";
|
|
5
5
|
import { configurationFilesCandidates, searchConfigurationFile } from "./configFile/searchConfigurationFile.js";
|
|
6
|
-
export { type BrowserIntlayerConfig, GetConfigurationAndFilePathResult, GetConfigurationOptions, aiSchema, analyticsSchema, buildAnalyticsFields, buildBrowserConfiguration, buildConfigurationFields, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, buildSchema, compilerSchema, configurationFilesCandidates, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, extractBrowserConfiguration, getConfiguration, getConfigurationAndFilePath, internationalizationSchema, intlayerConfigSchema, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, searchConfigurationFile, storageAttributesSchema, storageSchema, systemSchema };
|
|
6
|
+
export { type BrowserIntlayerConfig, GetConfigurationAndFilePathResult, GetConfigurationOptions, aiSchema, analyticsSchema, buildAnalyticsFields, buildBrowserConfiguration, buildConfigurationFields, buildEditorFields, buildInternationalizationFields, buildLogFields, buildRoutingFields, buildSchema, compilerSchema, configurationFilesCandidates, contentSchema, cookiesAttributesSchema, dictionarySchema, editorSchema, extractBrowserConfiguration, getConfiguration, getConfigurationAndFilePath, internationalizationSchema, intlayerConfigSchema, intlayerConfigSchemaParseContext, logSchema, rewriteObjectSchema, rewriteRuleSchema, rewriteRulesSchema, routingSchema, searchConfigurationFile, storageAttributesSchema, storageSchema, systemSchema };
|
|
@@ -5,13 +5,23 @@ export type GetAliasOptions = {
|
|
|
5
5
|
format?: 'esm' | 'cjs';
|
|
6
6
|
formatter?: (value: string) => string;
|
|
7
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* Maps the aliasable Intlayer packages to the generated `.intlayer` files so
|
|
10
|
+
* bundlers (webpack, Vite, Turbopack, esbuild, Metro, …) resolve them to the
|
|
11
|
+
* app's own dictionaries and hot reload on any content change.
|
|
12
|
+
*
|
|
13
|
+
* Key order matters: webpack (enhanced-resolve) and Vite match string aliases
|
|
14
|
+
* by prefix and stop at the first hit, so the bare `@intlayer/dictionaries-entry`
|
|
15
|
+
* key MUST come after its subpaths, otherwise `@intlayer/dictionaries-entry/remote`
|
|
16
|
+
* would be rewritten to `<dictionaries entry>/remote`.
|
|
17
|
+
*/
|
|
8
18
|
export declare const getAlias: ({ configuration, format, formatter }: GetAliasOptions) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
'@intlayer/dictionaries-entry': string;
|
|
20
|
+
'@intlayer/config/built': string;
|
|
21
|
+
"@intlayer/dictionaries-entry/dynamic": string;
|
|
22
|
+
"@intlayer/dictionaries-entry/fetch": string;
|
|
23
|
+
"@intlayer/dictionaries-entry/remote": string;
|
|
24
|
+
"@intlayer/dictionaries-entry/unmerged": string;
|
|
15
25
|
};
|
|
16
26
|
//#endregion
|
|
17
27
|
//# sourceMappingURL=alias.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.d.ts","names":[],"sources":["../../../src/utils/alias.ts"],"mappings":";;YAKY;EACV,eAAe;EACf;EACA,aAAa
|
|
1
|
+
{"version":3,"file":"alias.d.ts","names":[],"sources":["../../../src/utils/alias.ts"],"mappings":";;YAKY;EACV,eAAe;EACf;EACA,aAAa;;;;;;;;;;;;qBA8BF,aAAQ,eAAA,QAAA,aAIlB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/config",
|
|
3
|
-
"version": "9.5.
|
|
3
|
+
"version": "9.5.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.",
|
|
6
6
|
"keywords": [
|
|
@@ -183,15 +183,16 @@
|
|
|
183
183
|
"prepublish": "cp -f ../../../README.md ./README.md",
|
|
184
184
|
"publish": "bun publish || true",
|
|
185
185
|
"publish:canary": "bun publish --access public --tag canary || true",
|
|
186
|
+
"publish:ci": "bun ../../../scripts/publish-package.mjs",
|
|
186
187
|
"publish:latest": "bun publish --access public --tag latest || true",
|
|
187
188
|
"test": "bun --bun vitest run",
|
|
188
189
|
"test:watch": "bun --bun vitest",
|
|
189
190
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
190
191
|
},
|
|
191
192
|
"dependencies": {
|
|
192
|
-
"@intlayer/types": "9.5.
|
|
193
|
+
"@intlayer/types": "9.5.4",
|
|
193
194
|
"defu": "6.1.7",
|
|
194
|
-
"dotenv": "
|
|
195
|
+
"dotenv": "18.0.0",
|
|
195
196
|
"esbuild": "0.28.2",
|
|
196
197
|
"json5": "2.2.3",
|
|
197
198
|
"zod": "4.6.5"
|
|
@@ -204,7 +205,7 @@
|
|
|
204
205
|
"rimraf": "6.1.3",
|
|
205
206
|
"tsdown": "0.23.0",
|
|
206
207
|
"typescript": "7.0.2",
|
|
207
|
-
"vitest": "5.0.
|
|
208
|
+
"vitest": "5.0.1"
|
|
208
209
|
},
|
|
209
210
|
"peerDependencies": {
|
|
210
211
|
"react": ">=16.0.0"
|