@intlayer/cli 9.4.1 → 9.4.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/README.md +1 -1
- package/dist/cjs/fill/writeFill.cjs +1 -1
- package/dist/cjs/fill/writeFill.cjs.map +1 -1
- package/dist/esm/fill/writeFill.mjs +1 -1
- package/dist/esm/fill/writeFill.mjs.map +1 -1
- package/dist/types/IntlayerEventListener.d.ts +2 -3
- package/dist/types/IntlayerEventListener.d.ts.map +1 -1
- package/dist/types/auth/login.d.ts +1 -2
- package/dist/types/auth/login.d.ts.map +1 -1
- package/dist/types/auth/sessionToken.d.ts +4 -5
- package/dist/types/auth/sessionToken.d.ts.map +1 -1
- package/dist/types/build.d.ts +1 -2
- package/dist/types/build.d.ts.map +1 -1
- package/dist/types/bundle.d.ts +1 -2
- package/dist/types/bundle.d.ts.map +1 -1
- package/dist/types/ci.d.ts +4 -5
- package/dist/types/ci.d.ts.map +1 -1
- package/dist/types/cli.d.ts +3 -4
- package/dist/types/cli.d.ts.map +1 -1
- package/dist/types/config.d.ts +1 -2
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/editor.d.ts +1 -2
- package/dist/types/editor.d.ts.map +1 -1
- package/dist/types/extract.d.ts +1 -2
- package/dist/types/extract.d.ts.map +1 -1
- package/dist/types/fill/deepMergeContent.d.ts +1 -2
- package/dist/types/fill/deepMergeContent.d.ts.map +1 -1
- package/dist/types/fill/extractTranslatableContent.d.ts +4 -5
- package/dist/types/fill/extractTranslatableContent.d.ts.map +1 -1
- package/dist/types/fill/fill.d.ts +2 -3
- package/dist/types/fill/fill.d.ts.map +1 -1
- package/dist/types/fill/formatAutoFilledFilePath.d.ts +1 -2
- package/dist/types/fill/formatAutoFilledFilePath.d.ts.map +1 -1
- package/dist/types/fill/formatFillData.d.ts +2 -3
- package/dist/types/fill/formatFillData.d.ts.map +1 -1
- package/dist/types/fill/getAvailableLocalesInDictionary.d.ts +1 -2
- package/dist/types/fill/getAvailableLocalesInDictionary.d.ts.map +1 -1
- package/dist/types/fill/getFilterMissingContentPerLocale.d.ts +1 -2
- package/dist/types/fill/getFilterMissingContentPerLocale.d.ts.map +1 -1
- package/dist/types/fill/listTranslationsTasks.d.ts +2 -3
- package/dist/types/fill/listTranslationsTasks.d.ts.map +1 -1
- package/dist/types/fill/translateDictionary.d.ts +1 -2
- package/dist/types/fill/translateDictionary.d.ts.map +1 -1
- package/dist/types/fill/writeFill.d.ts +1 -2
- package/dist/types/fill/writeFill.d.ts.map +1 -1
- package/dist/types/getTargetDictionary.d.ts +3 -4
- package/dist/types/getTargetDictionary.d.ts.map +1 -1
- package/dist/types/init.d.ts +2 -3
- package/dist/types/init.d.ts.map +1 -1
- package/dist/types/initBuildOptimization.d.ts +2 -3
- package/dist/types/initBuildOptimization.d.ts.map +1 -1
- package/dist/types/initCompiler.d.ts +1 -2
- package/dist/types/initCompiler.d.ts.map +1 -1
- package/dist/types/initMCP.d.ts +1 -2
- package/dist/types/initMCP.d.ts.map +1 -1
- package/dist/types/initSkills.d.ts +3 -4
- package/dist/types/initSkills.d.ts.map +1 -1
- package/dist/types/listContentDeclaration.d.ts +2 -3
- package/dist/types/listContentDeclaration.d.ts.map +1 -1
- package/dist/types/listProjects.d.ts +2 -3
- package/dist/types/listProjects.d.ts.map +1 -1
- package/dist/types/liveSync.d.ts +1 -2
- package/dist/types/liveSync.d.ts.map +1 -1
- package/dist/types/pull.d.ts +1 -2
- package/dist/types/pull.d.ts.map +1 -1
- package/dist/types/push/pullLog.d.ts +2 -3
- package/dist/types/push/pullLog.d.ts.map +1 -1
- package/dist/types/push/push.d.ts +1 -2
- package/dist/types/push/push.d.ts.map +1 -1
- package/dist/types/pushConfig.d.ts +1 -2
- package/dist/types/pushConfig.d.ts.map +1 -1
- package/dist/types/pushLog.d.ts +2 -3
- package/dist/types/pushLog.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDoc.d.ts +2 -3
- package/dist/types/reviewDoc/reviewDoc.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocBlockAware.d.ts +1 -2
- package/dist/types/reviewDoc/reviewDocBlockAware.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocLog.d.ts +2 -3
- package/dist/types/reviewDoc/reviewDocLog.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocProgress.d.ts +2 -3
- package/dist/types/reviewDoc/reviewDocProgress.d.ts.map +1 -1
- package/dist/types/reviewDoc/reviewDocSynthesis.d.ts +4 -5
- package/dist/types/reviewDoc/reviewDocSynthesis.d.ts.map +1 -1
- package/dist/types/scan.d.ts +2 -3
- package/dist/types/scan.d.ts.map +1 -1
- package/dist/types/searchDoc.d.ts +1 -2
- package/dist/types/searchDoc.d.ts.map +1 -1
- package/dist/types/test/listMissingTranslations.d.ts +2 -3
- package/dist/types/test/listMissingTranslations.d.ts.map +1 -1
- package/dist/types/test/test.d.ts +1 -2
- package/dist/types/test/test.d.ts.map +1 -1
- package/dist/types/translateDoc/translateDoc.d.ts +1 -2
- package/dist/types/translateDoc/translateDoc.d.ts.map +1 -1
- package/dist/types/translateDoc/translateFile.d.ts +1 -2
- package/dist/types/translateDoc/translateFile.d.ts.map +1 -1
- package/dist/types/translateDoc/types.d.ts +5 -6
- package/dist/types/translateDoc/types.d.ts.map +1 -1
- package/dist/types/translateDoc/validation.d.ts +2 -3
- package/dist/types/translateDoc/validation.d.ts.map +1 -1
- package/dist/types/utils/calculateChunks.d.ts +2 -3
- package/dist/types/utils/calculateChunks.d.ts.map +1 -1
- package/dist/types/utils/checkAccess.d.ts +3 -4
- package/dist/types/utils/checkAccess.d.ts.map +1 -1
- package/dist/types/utils/checkConfigConsistency.d.ts +1 -2
- package/dist/types/utils/checkConfigConsistency.d.ts.map +1 -1
- package/dist/types/utils/checkFileModifiedRange.d.ts +1 -2
- package/dist/types/utils/checkFileModifiedRange.d.ts.map +1 -1
- package/dist/types/utils/checkLastUpdateTime.d.ts +1 -2
- package/dist/types/utils/checkLastUpdateTime.d.ts.map +1 -1
- package/dist/types/utils/chunkInference.d.ts +1 -2
- package/dist/types/utils/chunkInference.d.ts.map +1 -1
- package/dist/types/utils/fixChunkStartEndChars.d.ts +1 -2
- package/dist/types/utils/fixChunkStartEndChars.d.ts.map +1 -1
- package/dist/types/utils/formatLineRanges.d.ts +1 -2
- package/dist/types/utils/formatLineRanges.d.ts.map +1 -1
- package/dist/types/utils/formatTimeDiff.d.ts +1 -2
- package/dist/types/utils/formatTimeDiff.d.ts.map +1 -1
- package/dist/types/utils/getIsFileUpdatedRecently.d.ts +1 -2
- package/dist/types/utils/getIsFileUpdatedRecently.d.ts.map +1 -1
- package/dist/types/utils/getOutputFilePath.d.ts +3 -4
- package/dist/types/utils/getOutputFilePath.d.ts.map +1 -1
- package/dist/types/utils/getParentPackageJSON.d.ts +1 -2
- package/dist/types/utils/getParentPackageJSON.d.ts.map +1 -1
- package/dist/types/utils/listSpecialChars.d.ts +1 -2
- package/dist/types/utils/listSpecialChars.d.ts.map +1 -1
- package/dist/types/utils/mapChunksBetweenFiles.d.ts +2 -3
- package/dist/types/utils/mapChunksBetweenFiles.d.ts.map +1 -1
- package/dist/types/utils/openBrowser.d.ts +1 -2
- package/dist/types/utils/openBrowser.d.ts.map +1 -1
- package/dist/types/utils/reorderParagraphs.d.ts +1 -2
- package/dist/types/utils/reorderParagraphs.d.ts.map +1 -1
- package/dist/types/utils/selectCmsEnvironment.d.ts +1 -2
- package/dist/types/utils/selectCmsEnvironment.d.ts.map +1 -1
- package/dist/types/utils/setupAI.d.ts +2 -3
- package/dist/types/utils/setupAI.d.ts.map +1 -1
- package/dist/types/watch.d.ts +1 -2
- package/dist/types/watch.d.ts.map +1 -1
- package/package.json +16 -16
package/README.md
CHANGED
|
@@ -330,4 +330,4 @@ Contribute on [GitHub](https://github.com/aymericzip/intlayer), [GitLab](https:/
|
|
|
330
330
|
|
|
331
331
|
If you like Intlayer, give us a ⭐ on GitHub. It helps others discover the project! [See why GitHub Stars matter](https://github.com/aymericzip/intlayer/blob/main/CONTRIBUTING.md#why-github-stars-matter-).
|
|
332
332
|
|
|
333
|
-
[](https://api.star-history.com/#aymericzip/intlayer&Date)
|
|
@@ -12,7 +12,7 @@ const writeFill = async (contentDeclarationFile, outputLocales, parentLocales, c
|
|
|
12
12
|
const appLogger = (0, _intlayer_config_logger.getAppLogger)(configuration);
|
|
13
13
|
const fullDictionary = (0, _intlayer_dictionaries_entry.getDictionaries)(configuration)[contentDeclarationFile.key];
|
|
14
14
|
const { filePath } = contentDeclarationFile;
|
|
15
|
-
if (!filePath) {
|
|
15
|
+
if (!filePath || !fullDictionary) {
|
|
16
16
|
appLogger("No file path found for dictionary", { level: "error" });
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeFill.cjs","names":["getAppLogger","getDictionaries","colorizeKey","getAvailableLocalesInDictionary","formatFillData","writeContentDeclaration","resolve","formatPath","formatLocale"],"sources":["../../../src/fill/writeFill.ts"],"sourcesContent":["import { resolve } from 'node:path';\nimport { colorizeKey, getAppLogger } from '@intlayer/config/logger';\nimport { getDictionaries } from '@intlayer/dictionaries-entry';\nimport { writeContentDeclaration } from '@intlayer/engine/build';\nimport { formatLocale, formatPath } from '@intlayer/engine/utils';\nimport type { Locale } from '@intlayer/types/allLocales';\nimport type { IntlayerConfig } from '@intlayer/types/config';\nimport type { Dictionary, Fill } from '@intlayer/types/dictionary';\nimport { type FillData, formatFillData } from './formatFillData';\nimport { getAvailableLocalesInDictionary } from './getAvailableLocalesInDictionary';\n\nexport const writeFill = async (\n contentDeclarationFile: Dictionary,\n outputLocales: Locale[],\n parentLocales: Locale[],\n configuration: IntlayerConfig\n) => {\n const appLogger = getAppLogger(configuration);\n const dictionaries = getDictionaries(configuration);\n\n const fullDictionary = dictionaries[contentDeclarationFile.key];\n\n const { filePath } = contentDeclarationFile;\n\n if (!filePath) {\n appLogger('No file path found for dictionary', {\n level: 'error',\n });\n return;\n }\n\n const fillOptions: Fill | undefined =\n contentDeclarationFile.fill ?? configuration.dictionary?.fill ?? true;\n\n if ((fillOptions as boolean) === false) {\n appLogger(\n `Auto fill is disabled for '${colorizeKey(fullDictionary.key)}'`,\n {\n level: 'info',\n }\n );\n return;\n }\n\n const requestedLocales: Locale[] = (\n outputLocales ?? configuration.internationalization.locales\n ).filter((locale) => !parentLocales?.includes(locale));\n\n // Get locales that actually have translations in the content\n const availableLocales = getAvailableLocalesInDictionary(\n contentDeclarationFile\n );\n\n // Only write files for locales that have actual translations\n const localeList = requestedLocales.filter((locale) =>\n availableLocales.includes(locale)\n );\n\n if (localeList.length === 0) {\n appLogger(\n `No translations available for dictionary '${colorizeKey(fullDictionary.key)}'`,\n {\n level: 'info',\n }\n );\n return;\n }\n\n const fillData: FillData[] = await formatFillData(\n fillOptions as Fill,\n localeList,\n filePath,\n fullDictionary.key,\n configuration\n );\n\n for await (const output of fillData) {\n if (!output.filePath) {\n appLogger(\n `No file path found for auto filled content declaration for '${colorizeKey(fullDictionary.key)}'`,\n {\n level: 'error',\n }\n );\n continue;\n }\n\n const { fill, ...rest } = contentDeclarationFile;\n\n await writeContentDeclaration(\n {\n ...rest,\n filled: true,\n locale: output.isPerLocale ? output.localeList[0] : undefined,\n localId: `${contentDeclarationFile.key}::local::${output.filePath}`,\n filePath: resolve(configuration.system.baseDir, output.filePath), // Use absolute path for vscode extension\n },\n configuration,\n {\n // Per-locale files: write only the specific locale.\n // Multilingual files (string/function fill, single output): include all\n // output locales (including source) so the file is complete.\n localeList: output.isPerLocale\n ? output.localeList\n : (outputLocales ?? configuration.internationalization.locales),\n }\n );\n\n if (output.isPerLocale) {\n appLogger(\n `Auto filled per-locale content declaration for '${colorizeKey(fullDictionary.key)}' written to ${formatPath(output.filePath)} for locale ${formatLocale(output.localeList[0])}`,\n { level: 'info' }\n );\n } else {\n appLogger(\n `Auto filled content declaration for '${colorizeKey(fullDictionary.key)}' written to ${formatPath(output.filePath)}`,\n { level: 'info' }\n );\n }\n }\n};\n"],"mappings":";;;;;;;;;;AAWA,MAAa,YAAY,OACvB,wBACA,eACA,eACA,kBACG;CACH,MAAM,gBAAYA,sCAAa,aAAa;CAG5C,MAAM,qBAFeC,8CAAgB,aAEH,CAAC,CAAC,uBAAuB;CAE3D,MAAM,EAAE,aAAa;CAErB,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"writeFill.cjs","names":["getAppLogger","getDictionaries","colorizeKey","getAvailableLocalesInDictionary","formatFillData","writeContentDeclaration","resolve","formatPath","formatLocale"],"sources":["../../../src/fill/writeFill.ts"],"sourcesContent":["import { resolve } from 'node:path';\nimport { colorizeKey, getAppLogger } from '@intlayer/config/logger';\nimport { getDictionaries } from '@intlayer/dictionaries-entry';\nimport { writeContentDeclaration } from '@intlayer/engine/build';\nimport { formatLocale, formatPath } from '@intlayer/engine/utils';\nimport type { Locale } from '@intlayer/types/allLocales';\nimport type { IntlayerConfig } from '@intlayer/types/config';\nimport type { Dictionary, Fill } from '@intlayer/types/dictionary';\nimport { type FillData, formatFillData } from './formatFillData';\nimport { getAvailableLocalesInDictionary } from './getAvailableLocalesInDictionary';\n\nexport const writeFill = async (\n contentDeclarationFile: Dictionary,\n outputLocales: Locale[],\n parentLocales: Locale[],\n configuration: IntlayerConfig\n) => {\n const appLogger = getAppLogger(configuration);\n const dictionaries = getDictionaries(configuration);\n\n const fullDictionary = dictionaries[contentDeclarationFile.key];\n\n const { filePath } = contentDeclarationFile;\n\n if (!filePath || !fullDictionary) {\n appLogger('No file path found for dictionary', {\n level: 'error',\n });\n return;\n }\n\n const fillOptions: Fill | undefined =\n contentDeclarationFile.fill ?? configuration.dictionary?.fill ?? true;\n\n if ((fillOptions as boolean) === false) {\n appLogger(\n `Auto fill is disabled for '${colorizeKey(fullDictionary.key)}'`,\n {\n level: 'info',\n }\n );\n return;\n }\n\n const requestedLocales: Locale[] = (\n outputLocales ?? configuration.internationalization.locales\n ).filter((locale) => !parentLocales?.includes(locale));\n\n // Get locales that actually have translations in the content\n const availableLocales = getAvailableLocalesInDictionary(\n contentDeclarationFile\n );\n\n // Only write files for locales that have actual translations\n const localeList = requestedLocales.filter((locale) =>\n availableLocales.includes(locale)\n );\n\n if (localeList.length === 0) {\n appLogger(\n `No translations available for dictionary '${colorizeKey(fullDictionary.key)}'`,\n {\n level: 'info',\n }\n );\n return;\n }\n\n const fillData: FillData[] = await formatFillData(\n fillOptions as Fill,\n localeList,\n filePath,\n fullDictionary.key,\n configuration\n );\n\n for await (const output of fillData) {\n if (!output.filePath) {\n appLogger(\n `No file path found for auto filled content declaration for '${colorizeKey(fullDictionary.key)}'`,\n {\n level: 'error',\n }\n );\n continue;\n }\n\n const { fill, ...rest } = contentDeclarationFile;\n\n await writeContentDeclaration(\n {\n ...rest,\n filled: true,\n locale: output.isPerLocale ? output.localeList[0] : undefined,\n localId: `${contentDeclarationFile.key}::local::${output.filePath}`,\n filePath: resolve(configuration.system.baseDir, output.filePath), // Use absolute path for vscode extension\n },\n configuration,\n {\n // Per-locale files: write only the specific locale.\n // Multilingual files (string/function fill, single output): include all\n // output locales (including source) so the file is complete.\n localeList: output.isPerLocale\n ? output.localeList\n : (outputLocales ?? configuration.internationalization.locales),\n }\n );\n\n if (output.isPerLocale) {\n appLogger(\n `Auto filled per-locale content declaration for '${colorizeKey(fullDictionary.key)}' written to ${formatPath(output.filePath)} for locale ${formatLocale(output.localeList[0]!)}`,\n { level: 'info' }\n );\n } else {\n appLogger(\n `Auto filled content declaration for '${colorizeKey(fullDictionary.key)}' written to ${formatPath(output.filePath)}`,\n { level: 'info' }\n );\n }\n }\n};\n"],"mappings":";;;;;;;;;;AAWA,MAAa,YAAY,OACvB,wBACA,eACA,eACA,kBACG;CACH,MAAM,gBAAYA,sCAAa,aAAa;CAG5C,MAAM,qBAFeC,8CAAgB,aAEH,CAAC,CAAC,uBAAuB;CAE3D,MAAM,EAAE,aAAa;CAErB,IAAI,CAAC,YAAY,CAAC,gBAAgB;EAChC,UAAU,qCAAqC,EAC7C,OAAO,QACT,CAAC;EACD;CACF;CAEA,MAAM,cACJ,uBAAuB,QAAQ,cAAc,YAAY,QAAQ;CAEnE,IAAK,gBAA4B,OAAO;EACtC,UACE,kCAA8BC,qCAAY,eAAe,GAAG,EAAE,IAC9D,EACE,OAAO,OACT,CACF;EACA;CACF;CAEA,MAAM,oBACJ,iBAAiB,cAAc,qBAAqB,QAAO,CAC3D,QAAQ,WAAW,CAAC,eAAe,SAAS,MAAM,CAAC;CAGrD,MAAM,mBAAmBC,6EACvB,sBACF;CAGA,MAAM,aAAa,iBAAiB,QAAQ,WAC1C,iBAAiB,SAAS,MAAM,CAClC;CAEA,IAAI,WAAW,WAAW,GAAG;EAC3B,UACE,iDAA6CD,qCAAY,eAAe,GAAG,EAAE,IAC7E,EACE,OAAO,OACT,CACF;EACA;CACF;CAEA,MAAM,WAAuB,MAAME,2CACjC,aACA,YACA,UACA,eAAe,KACf,aACF;CAEA,WAAW,MAAM,UAAU,UAAU;EACnC,IAAI,CAAC,OAAO,UAAU;GACpB,UACE,mEAA+DF,qCAAY,eAAe,GAAG,EAAE,IAC/F,EACE,OAAO,QACT,CACF;GACA;EACF;EAEA,MAAM,EAAE,MAAM,GAAG,SAAS;EAE1B,UAAMG,gDACJ;GACE,GAAG;GACH,QAAQ;GACR,QAAQ,OAAO,cAAc,OAAO,WAAW,KAAK;GACpD,SAAS,GAAG,uBAAuB,IAAI,WAAW,OAAO;GACzD,cAAUC,mBAAQ,cAAc,OAAO,SAAS,OAAO,QAAQ;EACjE,GACA,eACA,EAIE,YAAY,OAAO,cACf,OAAO,aACN,iBAAiB,cAAc,qBAAqB,QAC3D,CACF;EAEA,IAAI,OAAO,aACT,UACE,uDAAmDJ,qCAAY,eAAe,GAAG,EAAE,mBAAeK,mCAAW,OAAO,QAAQ,EAAE,kBAAcC,qCAAa,OAAO,WAAW,EAAG,KAC9K,EAAE,OAAO,OAAO,CAClB;OAEA,UACE,4CAAwCN,qCAAY,eAAe,GAAG,EAAE,mBAAeK,mCAAW,OAAO,QAAQ,KACjH,EAAE,OAAO,OAAO,CAClB;CAEJ;AACF"}
|
|
@@ -11,7 +11,7 @@ const writeFill = async (contentDeclarationFile, outputLocales, parentLocales, c
|
|
|
11
11
|
const appLogger = getAppLogger(configuration);
|
|
12
12
|
const fullDictionary = getDictionaries(configuration)[contentDeclarationFile.key];
|
|
13
13
|
const { filePath } = contentDeclarationFile;
|
|
14
|
-
if (!filePath) {
|
|
14
|
+
if (!filePath || !fullDictionary) {
|
|
15
15
|
appLogger("No file path found for dictionary", { level: "error" });
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeFill.mjs","names":[],"sources":["../../../src/fill/writeFill.ts"],"sourcesContent":["import { resolve } from 'node:path';\nimport { colorizeKey, getAppLogger } from '@intlayer/config/logger';\nimport { getDictionaries } from '@intlayer/dictionaries-entry';\nimport { writeContentDeclaration } from '@intlayer/engine/build';\nimport { formatLocale, formatPath } from '@intlayer/engine/utils';\nimport type { Locale } from '@intlayer/types/allLocales';\nimport type { IntlayerConfig } from '@intlayer/types/config';\nimport type { Dictionary, Fill } from '@intlayer/types/dictionary';\nimport { type FillData, formatFillData } from './formatFillData';\nimport { getAvailableLocalesInDictionary } from './getAvailableLocalesInDictionary';\n\nexport const writeFill = async (\n contentDeclarationFile: Dictionary,\n outputLocales: Locale[],\n parentLocales: Locale[],\n configuration: IntlayerConfig\n) => {\n const appLogger = getAppLogger(configuration);\n const dictionaries = getDictionaries(configuration);\n\n const fullDictionary = dictionaries[contentDeclarationFile.key];\n\n const { filePath } = contentDeclarationFile;\n\n if (!filePath) {\n appLogger('No file path found for dictionary', {\n level: 'error',\n });\n return;\n }\n\n const fillOptions: Fill | undefined =\n contentDeclarationFile.fill ?? configuration.dictionary?.fill ?? true;\n\n if ((fillOptions as boolean) === false) {\n appLogger(\n `Auto fill is disabled for '${colorizeKey(fullDictionary.key)}'`,\n {\n level: 'info',\n }\n );\n return;\n }\n\n const requestedLocales: Locale[] = (\n outputLocales ?? configuration.internationalization.locales\n ).filter((locale) => !parentLocales?.includes(locale));\n\n // Get locales that actually have translations in the content\n const availableLocales = getAvailableLocalesInDictionary(\n contentDeclarationFile\n );\n\n // Only write files for locales that have actual translations\n const localeList = requestedLocales.filter((locale) =>\n availableLocales.includes(locale)\n );\n\n if (localeList.length === 0) {\n appLogger(\n `No translations available for dictionary '${colorizeKey(fullDictionary.key)}'`,\n {\n level: 'info',\n }\n );\n return;\n }\n\n const fillData: FillData[] = await formatFillData(\n fillOptions as Fill,\n localeList,\n filePath,\n fullDictionary.key,\n configuration\n );\n\n for await (const output of fillData) {\n if (!output.filePath) {\n appLogger(\n `No file path found for auto filled content declaration for '${colorizeKey(fullDictionary.key)}'`,\n {\n level: 'error',\n }\n );\n continue;\n }\n\n const { fill, ...rest } = contentDeclarationFile;\n\n await writeContentDeclaration(\n {\n ...rest,\n filled: true,\n locale: output.isPerLocale ? output.localeList[0] : undefined,\n localId: `${contentDeclarationFile.key}::local::${output.filePath}`,\n filePath: resolve(configuration.system.baseDir, output.filePath), // Use absolute path for vscode extension\n },\n configuration,\n {\n // Per-locale files: write only the specific locale.\n // Multilingual files (string/function fill, single output): include all\n // output locales (including source) so the file is complete.\n localeList: output.isPerLocale\n ? output.localeList\n : (outputLocales ?? configuration.internationalization.locales),\n }\n );\n\n if (output.isPerLocale) {\n appLogger(\n `Auto filled per-locale content declaration for '${colorizeKey(fullDictionary.key)}' written to ${formatPath(output.filePath)} for locale ${formatLocale(output.localeList[0])}`,\n { level: 'info' }\n );\n } else {\n appLogger(\n `Auto filled content declaration for '${colorizeKey(fullDictionary.key)}' written to ${formatPath(output.filePath)}`,\n { level: 'info' }\n );\n }\n }\n};\n"],"mappings":";;;;;;;;;AAWA,MAAa,YAAY,OACvB,wBACA,eACA,eACA,kBACG;CACH,MAAM,YAAY,aAAa,aAAa;CAG5C,MAAM,iBAFe,gBAAgB,aAEH,CAAC,CAAC,uBAAuB;CAE3D,MAAM,EAAE,aAAa;CAErB,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"writeFill.mjs","names":[],"sources":["../../../src/fill/writeFill.ts"],"sourcesContent":["import { resolve } from 'node:path';\nimport { colorizeKey, getAppLogger } from '@intlayer/config/logger';\nimport { getDictionaries } from '@intlayer/dictionaries-entry';\nimport { writeContentDeclaration } from '@intlayer/engine/build';\nimport { formatLocale, formatPath } from '@intlayer/engine/utils';\nimport type { Locale } from '@intlayer/types/allLocales';\nimport type { IntlayerConfig } from '@intlayer/types/config';\nimport type { Dictionary, Fill } from '@intlayer/types/dictionary';\nimport { type FillData, formatFillData } from './formatFillData';\nimport { getAvailableLocalesInDictionary } from './getAvailableLocalesInDictionary';\n\nexport const writeFill = async (\n contentDeclarationFile: Dictionary,\n outputLocales: Locale[],\n parentLocales: Locale[],\n configuration: IntlayerConfig\n) => {\n const appLogger = getAppLogger(configuration);\n const dictionaries = getDictionaries(configuration);\n\n const fullDictionary = dictionaries[contentDeclarationFile.key];\n\n const { filePath } = contentDeclarationFile;\n\n if (!filePath || !fullDictionary) {\n appLogger('No file path found for dictionary', {\n level: 'error',\n });\n return;\n }\n\n const fillOptions: Fill | undefined =\n contentDeclarationFile.fill ?? configuration.dictionary?.fill ?? true;\n\n if ((fillOptions as boolean) === false) {\n appLogger(\n `Auto fill is disabled for '${colorizeKey(fullDictionary.key)}'`,\n {\n level: 'info',\n }\n );\n return;\n }\n\n const requestedLocales: Locale[] = (\n outputLocales ?? configuration.internationalization.locales\n ).filter((locale) => !parentLocales?.includes(locale));\n\n // Get locales that actually have translations in the content\n const availableLocales = getAvailableLocalesInDictionary(\n contentDeclarationFile\n );\n\n // Only write files for locales that have actual translations\n const localeList = requestedLocales.filter((locale) =>\n availableLocales.includes(locale)\n );\n\n if (localeList.length === 0) {\n appLogger(\n `No translations available for dictionary '${colorizeKey(fullDictionary.key)}'`,\n {\n level: 'info',\n }\n );\n return;\n }\n\n const fillData: FillData[] = await formatFillData(\n fillOptions as Fill,\n localeList,\n filePath,\n fullDictionary.key,\n configuration\n );\n\n for await (const output of fillData) {\n if (!output.filePath) {\n appLogger(\n `No file path found for auto filled content declaration for '${colorizeKey(fullDictionary.key)}'`,\n {\n level: 'error',\n }\n );\n continue;\n }\n\n const { fill, ...rest } = contentDeclarationFile;\n\n await writeContentDeclaration(\n {\n ...rest,\n filled: true,\n locale: output.isPerLocale ? output.localeList[0] : undefined,\n localId: `${contentDeclarationFile.key}::local::${output.filePath}`,\n filePath: resolve(configuration.system.baseDir, output.filePath), // Use absolute path for vscode extension\n },\n configuration,\n {\n // Per-locale files: write only the specific locale.\n // Multilingual files (string/function fill, single output): include all\n // output locales (including source) so the file is complete.\n localeList: output.isPerLocale\n ? output.localeList\n : (outputLocales ?? configuration.internationalization.locales),\n }\n );\n\n if (output.isPerLocale) {\n appLogger(\n `Auto filled per-locale content declaration for '${colorizeKey(fullDictionary.key)}' written to ${formatPath(output.filePath)} for locale ${formatLocale(output.localeList[0]!)}`,\n { level: 'info' }\n );\n } else {\n appLogger(\n `Auto filled content declaration for '${colorizeKey(fullDictionary.key)}' written to ${formatPath(output.filePath)}`,\n { level: 'info' }\n );\n }\n }\n};\n"],"mappings":";;;;;;;;;AAWA,MAAa,YAAY,OACvB,wBACA,eACA,eACA,kBACG;CACH,MAAM,YAAY,aAAa,aAAa;CAG5C,MAAM,iBAFe,gBAAgB,aAEH,CAAC,CAAC,uBAAuB;CAE3D,MAAM,EAAE,aAAa;CAErB,IAAI,CAAC,YAAY,CAAC,gBAAgB;EAChC,UAAU,qCAAqC,EAC7C,OAAO,QACT,CAAC;EACD;CACF;CAEA,MAAM,cACJ,uBAAuB,QAAQ,cAAc,YAAY,QAAQ;CAEnE,IAAK,gBAA4B,OAAO;EACtC,UACE,8BAA8B,YAAY,eAAe,GAAG,EAAE,IAC9D,EACE,OAAO,OACT,CACF;EACA;CACF;CAEA,MAAM,oBACJ,iBAAiB,cAAc,qBAAqB,QAAO,CAC3D,QAAQ,WAAW,CAAC,eAAe,SAAS,MAAM,CAAC;CAGrD,MAAM,mBAAmB,gCACvB,sBACF;CAGA,MAAM,aAAa,iBAAiB,QAAQ,WAC1C,iBAAiB,SAAS,MAAM,CAClC;CAEA,IAAI,WAAW,WAAW,GAAG;EAC3B,UACE,6CAA6C,YAAY,eAAe,GAAG,EAAE,IAC7E,EACE,OAAO,OACT,CACF;EACA;CACF;CAEA,MAAM,WAAuB,MAAM,eACjC,aACA,YACA,UACA,eAAe,KACf,aACF;CAEA,WAAW,MAAM,UAAU,UAAU;EACnC,IAAI,CAAC,OAAO,UAAU;GACpB,UACE,+DAA+D,YAAY,eAAe,GAAG,EAAE,IAC/F,EACE,OAAO,QACT,CACF;GACA;EACF;EAEA,MAAM,EAAE,MAAM,GAAG,SAAS;EAE1B,MAAM,wBACJ;GACE,GAAG;GACH,QAAQ;GACR,QAAQ,OAAO,cAAc,OAAO,WAAW,KAAK;GACpD,SAAS,GAAG,uBAAuB,IAAI,WAAW,OAAO;GACzD,UAAU,QAAQ,cAAc,OAAO,SAAS,OAAO,QAAQ;EACjE,GACA,eACA,EAIE,YAAY,OAAO,cACf,OAAO,aACN,iBAAiB,cAAc,qBAAqB,QAC3D,CACF;EAEA,IAAI,OAAO,aACT,UACE,mDAAmD,YAAY,eAAe,GAAG,EAAE,eAAe,WAAW,OAAO,QAAQ,EAAE,cAAc,aAAa,OAAO,WAAW,EAAG,KAC9K,EAAE,OAAO,OAAO,CAClB;OAEA,UACE,wCAAwC,YAAY,eAAe,GAAG,EAAE,eAAe,WAAW,OAAO,QAAQ,KACjH,EAAE,OAAO,OAAO,CAClB;CAEJ;AACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DictionaryAPI } from "@intlayer/backend";
|
|
2
2
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
3
3
|
//#region src/IntlayerEventListener.d.ts
|
|
4
|
-
type IntlayerMessageEvent = MessageEvent;
|
|
4
|
+
export type IntlayerMessageEvent = MessageEvent;
|
|
5
5
|
/**
|
|
6
6
|
* IntlayerEventListener class to listen for dictionary changes via SSE (Server-Sent Events).
|
|
7
7
|
*
|
|
@@ -26,7 +26,7 @@ type IntlayerMessageEvent = MessageEvent;
|
|
|
26
26
|
* // eventListener.cleanup();
|
|
27
27
|
* };
|
|
28
28
|
*/
|
|
29
|
-
declare class IntlayerEventListener {
|
|
29
|
+
export declare class IntlayerEventListener {
|
|
30
30
|
private intlayerConfig;
|
|
31
31
|
private appLogger;
|
|
32
32
|
private eventSource;
|
|
@@ -84,5 +84,4 @@ declare class IntlayerEventListener {
|
|
|
84
84
|
private handleError;
|
|
85
85
|
}
|
|
86
86
|
//#endregion
|
|
87
|
-
export { IntlayerEventListener, IntlayerMessageEvent };
|
|
88
87
|
//# sourceMappingURL=IntlayerEventListener.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IntlayerEventListener.d.ts","names":[],"sources":["../../src/IntlayerEventListener.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"IntlayerEventListener.d.ts","names":[],"sources":["../../src/IntlayerEventListener.ts"],"mappings":";;;YAQY,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;qBA0BtB;UAoCD;UAnCF;UAEA;UACA;UACA;UACA;UACA;UACA;;;;EAKD,qBAAqB,YAAY;;;;EAKjC,sBAAsB,YAAY;;;;EAKlC,uBAAuB,YAAY;;;;EAKnC;;;;EAKA,qBAAqB,OAAO;EAEnC,YACU,iBAAgB,KAAK;;;;;EAYlB,cAAc;;;;UAQb;;;;EAmDP;;;;UAiBC;;;;;UAoCM;;;;UA8CN"}
|
|
@@ -20,7 +20,6 @@ type LoginOptions = {
|
|
|
20
20
|
clientSecret: string;
|
|
21
21
|
}) => void | Promise<void>;
|
|
22
22
|
};
|
|
23
|
-
declare const login: (options?: LoginOptions) => Promise<void>;
|
|
23
|
+
export declare const login: (options?: LoginOptions) => Promise<void>;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { login };
|
|
26
25
|
//# sourceMappingURL=login.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login.d.ts","names":[],"sources":["../../../src/auth/login.ts"],"mappings":";;KAiEK;EACH;EACA,gBAAgB;;;;;;EAMhB;;;;;;;EAOA,iBAAiB;IACf;IACA;eACW;;
|
|
1
|
+
{"version":3,"file":"login.d.ts","names":[],"sources":["../../../src/auth/login.ts"],"mappings":";;KAiEK;EACH;EACA,gBAAgB;;;;;;EAMhB;;;;;;;EAOA,iBAAiB;IACf;IACA;eACW;;qBAGF,QAAK,UAAmB,iBAAY"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { IntlayerConfig } from "@intlayer/types/config";
|
|
2
2
|
//#region src/auth/sessionToken.d.ts
|
|
3
|
-
type CliSessionData = {
|
|
3
|
+
export type CliSessionData = {
|
|
4
4
|
token: string;
|
|
5
5
|
expiresAt: string;
|
|
6
6
|
};
|
|
7
|
-
declare const writeCliSessionToken: (config: IntlayerConfig, token: string, expiresAt: Date) => Promise<void>;
|
|
8
|
-
declare const readCliSessionToken: (config: IntlayerConfig) => Promise<CliSessionData | null>;
|
|
9
|
-
declare const clearCliSessionToken: (config: IntlayerConfig) => Promise<void>;
|
|
7
|
+
export declare const writeCliSessionToken: (config: IntlayerConfig, token: string, expiresAt: Date) => Promise<void>;
|
|
8
|
+
export declare const readCliSessionToken: (config: IntlayerConfig) => Promise<CliSessionData | null>;
|
|
9
|
+
export declare const clearCliSessionToken: (config: IntlayerConfig) => Promise<void>;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { CliSessionData, clearCliSessionToken, readCliSessionToken, writeCliSessionToken };
|
|
12
11
|
//# sourceMappingURL=sessionToken.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessionToken.d.ts","names":[],"sources":["../../../src/auth/sessionToken.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"sessionToken.d.ts","names":[],"sources":["../../../src/auth/sessionToken.ts"],"mappings":";;YAMY;EACV;EACA;;qBAMW,uBAAoB,QACvB,gBAAc,eACT,WACF,SACV;qBASU,sBAAmB,QACtB,mBACP,QAAQ;qBAsBE,uBAAoB,QACvB,mBACP"}
|
package/dist/types/build.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ type BuildOptions = {
|
|
|
10
10
|
* Get locales dictionaries .content.{json|ts|tsx|js|jsx|mjs|cjs} and build the JSON dictionaries in the .intlayer directory.
|
|
11
11
|
* Watch mode available to get the change in the .content.{json|ts|tsx|js|jsx|mjs|cjs}
|
|
12
12
|
*/
|
|
13
|
-
declare const build: (options?: BuildOptions) => Promise<void>;
|
|
13
|
+
export declare const build: (options?: BuildOptions) => Promise<void>;
|
|
14
14
|
//#endregion
|
|
15
|
-
export { build };
|
|
16
15
|
//# sourceMappingURL=build.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","names":[],"sources":["../../src/build.ts"],"mappings":";;KAQK;EACH;EACA;EACA;EACA,gBAAgB;;;;;;
|
|
1
|
+
{"version":3,"file":"build.d.ts","names":[],"sources":["../../src/build.ts"],"mappings":";;KAQK;EACH;EACA;EACA;EACA,gBAAgB;;;;;;qBAOL,QAAK,UAAoB,iBAAY"}
|
package/dist/types/bundle.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { BundleIntlayerOptions } from "@intlayer/config/bundle";
|
|
2
2
|
//#region src/bundle.d.ts
|
|
3
|
-
declare const bundle: (options: BundleIntlayerOptions) => Promise<void>;
|
|
3
|
+
export declare const bundle: (options: BundleIntlayerOptions) => Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { bundle };
|
|
6
5
|
//# sourceMappingURL=bundle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.d.ts","names":[],"sources":["../../src/bundle.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"bundle.d.ts","names":[],"sources":["../../src/bundle.ts"],"mappings":";;qBA8Ca,SAAM,SAAmB,0BAAwB"}
|
package/dist/types/ci.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ type PackageManagerCommand = {
|
|
|
10
10
|
* and falls back to lock file detection when the CLI was not started through a
|
|
11
11
|
* package manager (e.g. a global install or a bare CI runner).
|
|
12
12
|
*/
|
|
13
|
-
declare const getPackageManagerCommand: (lockFileSearchDir: string) => PackageManagerCommand;
|
|
13
|
+
export declare const getPackageManagerCommand: (lockFileSearchDir: string) => PackageManagerCommand;
|
|
14
14
|
/**
|
|
15
15
|
* Returns true when a credentials key designates the given project directory.
|
|
16
16
|
* A key matches when it is:
|
|
@@ -20,7 +20,7 @@ declare const getPackageManagerCommand: (lockFileSearchDir: string) => PackageMa
|
|
|
20
20
|
* `"apps/web"` matches `/repo/apps/web`, but `"app"` never matches
|
|
21
21
|
* `/repo/my-app`).
|
|
22
22
|
*/
|
|
23
|
-
declare const credentialsKeyMatchesProject: (key: string, projectPath: string, searchDir: string) => boolean;
|
|
23
|
+
export declare const credentialsKeyMatchesProject: (key: string, projectPath: string, searchDir: string) => boolean;
|
|
24
24
|
/**
|
|
25
25
|
* Selects the projects the CI command must run in:
|
|
26
26
|
* - run from the repository root → every discovered project (monorepo mode);
|
|
@@ -28,7 +28,7 @@ declare const credentialsKeyMatchesProject: (key: string, projectPath: string, s
|
|
|
28
28
|
* project only, the deepest match winning when projects are nested;
|
|
29
29
|
* - run anywhere else → every discovered project.
|
|
30
30
|
*/
|
|
31
|
-
declare const selectProjectsToRun: (currentWorkingDir: string, searchDir: string, projectsPath: string[]) => {
|
|
31
|
+
export declare const selectProjectsToRun: (currentWorkingDir: string, searchDir: string, projectsPath: string[]) => {
|
|
32
32
|
projectsToRun: string[];
|
|
33
33
|
currentProject: string | undefined;
|
|
34
34
|
};
|
|
@@ -38,7 +38,6 @@ declare const selectProjectsToRun: (currentWorkingDir: string, searchDir: string
|
|
|
38
38
|
* injecting per-project CMS credentials from `INTLAYER_PROJECT_CREDENTIALS`.
|
|
39
39
|
* Exits with code 1 when the command fails in at least one project.
|
|
40
40
|
*/
|
|
41
|
-
declare const runCI: (commands: string[]) => Promise<void>;
|
|
41
|
+
export declare const runCI: (commands: string[]) => Promise<void>;
|
|
42
42
|
//#endregion
|
|
43
|
-
export { credentialsKeyMatchesProject, getPackageManagerCommand, runCI, selectProjectsToRun };
|
|
44
43
|
//# sourceMappingURL=ci.d.ts.map
|
package/dist/types/ci.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci.d.ts","names":[],"sources":["../../src/ci.ts"],"mappings":";;KAuBK;EACH;EACA;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ci.d.ts","names":[],"sources":["../../src/ci.ts"],"mappings":";;KAuBK;EACH;EACA;;;;;;;;qBASW,2BAAwB,8BAElC;;;;;;;;;;qBAuCU,+BAA4B,aAC5B,qBACQ;;;;;;;;qBA2BR,sBAAmB,2BACL,mBACR;EAEd;EAAyB;;;;;;;;qBAyBjB,QAAK,uBAA4B"}
|
package/dist/types/cli.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
2
|
//#region src/cli.d.ts
|
|
3
|
-
declare const dirname: string;
|
|
3
|
+
export declare const dirname: string;
|
|
4
4
|
type LogOptions = {
|
|
5
5
|
prefix?: string;
|
|
6
6
|
verbose?: boolean;
|
|
7
7
|
};
|
|
8
|
-
type ConfigurationOptions = {
|
|
8
|
+
export type ConfigurationOptions = {
|
|
9
9
|
baseDir?: string;
|
|
10
10
|
env?: string;
|
|
11
11
|
envFile?: string;
|
|
@@ -20,7 +20,6 @@ type ConfigurationOptions = {
|
|
|
20
20
|
* npm run intlayer build --watch
|
|
21
21
|
* npm run intlayer push --dictionaries id1 id2 id3 --deleteLocaleDir
|
|
22
22
|
*/
|
|
23
|
-
declare const setAPI: () => Command;
|
|
23
|
+
export declare const setAPI: () => Command;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { ConfigurationOptions, dirname, setAPI };
|
|
26
25
|
//# sourceMappingURL=cli.d.ts.map
|
package/dist/types/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","names":[],"sources":["../../src/cli.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","names":[],"sources":["../../src/cli.ts"],"mappings":";;qBAqBa;KA4IR;EACH;EACA;;YAGU;EACV;EACA;EACA;EACA;EACA;IACE;;;;;;;;;qBAiES,cAAa"}
|
package/dist/types/config.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
|
3
3
|
type ConfigOptions = {
|
|
4
4
|
configOptions?: GetConfigurationOptions;
|
|
5
5
|
};
|
|
6
|
-
declare const getConfig: (options?: ConfigOptions) => void;
|
|
6
|
+
export declare const getConfig: (options?: ConfigOptions) => void;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { getConfig };
|
|
9
8
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","names":[],"sources":["../../src/config.ts"],"mappings":";;KAOK;EACH,gBAAgB;;
|
|
1
|
+
{"version":3,"file":"config.d.ts","names":[],"sources":["../../src/config.ts"],"mappings":";;KAOK;EACH,gBAAgB;;qBAgBL,YAAS,UAAc"}
|
package/dist/types/editor.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ type StartEditorOptions = {
|
|
|
3
3
|
env?: string;
|
|
4
4
|
envFile?: string;
|
|
5
5
|
};
|
|
6
|
-
declare const startEditor: (options: StartEditorOptions) => void;
|
|
6
|
+
export declare const startEditor: (options: StartEditorOptions) => void;
|
|
7
7
|
//#endregion
|
|
8
|
-
export { startEditor };
|
|
9
8
|
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../src/editor.ts"],"mappings":";KAKK;EACH;EACA;;
|
|
1
|
+
{"version":3,"file":"editor.d.ts","names":[],"sources":["../../src/editor.ts"],"mappings":";KAKK;EACH;EACA;;qBAGW,cAAW,SAAa"}
|
package/dist/types/extract.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ type ExtractOptions = {
|
|
|
8
8
|
codeOnly?: boolean;
|
|
9
9
|
declarationOnly?: boolean;
|
|
10
10
|
};
|
|
11
|
-
declare const extract: (options: ExtractOptions) => Promise<void>;
|
|
11
|
+
export declare const extract: (options: ExtractOptions) => Promise<void>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { extract };
|
|
14
13
|
//# sourceMappingURL=extract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract.d.ts","names":[],"sources":["../../src/extract.ts"],"mappings":";;;KAgBK;EACH;EACA,SAAS;EACT,gBAAgB;EAChB;EACA;;
|
|
1
|
+
{"version":3,"file":"extract.d.ts","names":[],"sources":["../../src/extract.ts"],"mappings":";;;KAgBK;EACH;EACA,SAAS;EACT,gBAAgB;EAChB;EACA;;qBAGW,UAAO,SAAmB,mBAAc"}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* @param source - The object to merge in (takes precedence)
|
|
8
8
|
* @returns The merged object
|
|
9
9
|
*/
|
|
10
|
-
declare const deepMergeContent: <T = any>(target: T, source: T) => T;
|
|
10
|
+
export declare const deepMergeContent: <T = any>(target: T, source: T) => T;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { deepMergeContent };
|
|
13
12
|
//# sourceMappingURL=deepMergeContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepMergeContent.d.ts","names":[],"sources":["../../../src/fill/deepMergeContent.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"deepMergeContent.d.ts","names":[],"sources":["../../../src/fill/deepMergeContent.ts"],"mappings":";;;;;;;;;qBAQa,mBAAoB,SAAO,QAAU,GAAC,QAAU,MAAI"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
//#region src/fill/extractTranslatableContent.d.ts
|
|
2
|
-
type ExtractedContentProps = {
|
|
2
|
+
export type ExtractedContentProps = {
|
|
3
3
|
index: number;
|
|
4
4
|
path: (string | number)[];
|
|
5
5
|
value: string;
|
|
6
6
|
replacement?: Record<string, string>;
|
|
7
7
|
};
|
|
8
|
-
type ExtractedContentResult = {
|
|
8
|
+
export type ExtractedContentResult = {
|
|
9
9
|
extractedContent: ExtractedContentProps[];
|
|
10
10
|
translatableDictionary: Record<number, string>;
|
|
11
11
|
};
|
|
12
|
-
declare const extractTranslatableContent: (content: any, currentPath?: (string | number)[], state?: {
|
|
12
|
+
export declare const extractTranslatableContent: (content: any, currentPath?: (string | number)[], state?: {
|
|
13
13
|
currentIndex: number;
|
|
14
14
|
extractedContent: ExtractedContentProps[];
|
|
15
15
|
translatableDictionary: Record<number, string>;
|
|
16
16
|
}) => ExtractedContentResult;
|
|
17
|
-
declare const reinsertTranslatedContent: (baseContent: any, extractedContentProps: ExtractedContentProps[], translatedDictionary: Record<number, string>) => any;
|
|
17
|
+
export declare const reinsertTranslatedContent: (baseContent: any, extractedContentProps: ExtractedContentProps[], translatedDictionary: Record<number, string>) => any;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { ExtractedContentProps, ExtractedContentResult, extractTranslatableContent, reinsertTranslatedContent };
|
|
20
19
|
//# sourceMappingURL=extractTranslatableContent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractTranslatableContent.d.ts","names":[],"sources":["../../../src/fill/extractTranslatableContent.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"extractTranslatableContent.d.ts","names":[],"sources":["../../../src/fill/extractTranslatableContent.ts"],"mappings":";YAAY;EACV;EACA;EACA;EACA,cAAc;;YAGJ;EACV,kBAAkB;EAClB,wBAAwB;;qBAGb,6BAA0B,cACzB,mCACoB;EAE9B;EACA,kBAAwB;EACxB,wBAA8B;MAE/B;qBA6CU,4BAAyB,kBACpB,uBACO,yBAAuB,sBACxB"}
|
|
@@ -3,7 +3,7 @@ import { AIOptions } from "@intlayer/api";
|
|
|
3
3
|
import { ListGitFilesOptions } from "@intlayer/engine/cli";
|
|
4
4
|
import { Locale } from "@intlayer/types/allLocales";
|
|
5
5
|
//#region src/fill/fill.d.ts
|
|
6
|
-
type FillOptions = {
|
|
6
|
+
export type FillOptions = {
|
|
7
7
|
sourceLocale?: Locale;
|
|
8
8
|
outputLocales?: Locale | Locale[];
|
|
9
9
|
mode?: 'complete' | 'review';
|
|
@@ -18,7 +18,6 @@ type FillOptions = {
|
|
|
18
18
|
/**
|
|
19
19
|
* Fill translations based on the provided options.
|
|
20
20
|
*/
|
|
21
|
-
declare const fill: (options?: FillOptions) => Promise<void>;
|
|
21
|
+
export declare const fill: (options?: FillOptions) => Promise<void>;
|
|
22
22
|
//#endregion
|
|
23
|
-
export { FillOptions, fill };
|
|
24
23
|
//# sourceMappingURL=fill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fill.d.ts","names":[],"sources":["../../../src/fill/fill.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"fill.d.ts","names":[],"sources":["../../../src/fill/fill.ts"],"mappings":";;;;;YA2CY;EACV,eAAe;EACf,gBAAgB,SAAS;EACzB;EACA,aAAa;EACb,YAAY;EACZ;EACA;EACA;EACA;EACA;IACE;;;;qBAKS,OAAI,UAAoB,gBAAc"}
|
|
@@ -2,7 +2,6 @@ import { IntlayerConfig } from "@intlayer/types/config";
|
|
|
2
2
|
import { FilePathPattern } from "@intlayer/types/filePathPattern";
|
|
3
3
|
import { Locale } from "@intlayer/types/allLocales";
|
|
4
4
|
//#region src/fill/formatAutoFilledFilePath.d.ts
|
|
5
|
-
declare const formatAutoFilledFilePath: (autoFillField: FilePathPattern, dictionaryKey: string, dictionaryFilePath: string, baseDir: string, configuration: IntlayerConfig, locale?: Locale) => Promise<string>;
|
|
5
|
+
export declare const formatAutoFilledFilePath: (autoFillField: FilePathPattern, dictionaryKey: string, dictionaryFilePath: string, baseDir: string, configuration: IntlayerConfig, locale?: Locale) => Promise<string>;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { formatAutoFilledFilePath };
|
|
8
7
|
//# sourceMappingURL=formatAutoFilledFilePath.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatAutoFilledFilePath.d.ts","names":[],"sources":["../../../src/fill/formatAutoFilledFilePath.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"formatAutoFilledFilePath.d.ts","names":[],"sources":["../../../src/fill/formatAutoFilledFilePath.ts"],"mappings":";;;;qBASa,2BAAwB,eACpB,iBAAe,uBACT,4BACK,iBACX,eACA,gBAAc,SACpB,WACR"}
|
|
@@ -2,12 +2,11 @@ import { IntlayerConfig } from "@intlayer/types/config";
|
|
|
2
2
|
import { Locale } from "@intlayer/types/allLocales";
|
|
3
3
|
import { DictionaryKey, Fill } from "@intlayer/types/dictionary";
|
|
4
4
|
//#region src/fill/formatFillData.d.ts
|
|
5
|
-
type FillData = {
|
|
5
|
+
export type FillData = {
|
|
6
6
|
localeList: Locale[];
|
|
7
7
|
filePath: string;
|
|
8
8
|
isPerLocale: boolean;
|
|
9
9
|
};
|
|
10
|
-
declare const formatFillData: (fillField: Fill, localeList: Locale[], filePath: string, dictionaryKey: DictionaryKey, configuration: IntlayerConfig) => Promise<FillData[]>;
|
|
10
|
+
export declare const formatFillData: (fillField: Fill, localeList: Locale[], filePath: string, dictionaryKey: DictionaryKey, configuration: IntlayerConfig) => Promise<FillData[]>;
|
|
11
11
|
//#endregion
|
|
12
|
-
export { FillData, formatFillData };
|
|
13
12
|
//# sourceMappingURL=formatFillData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatFillData.d.ts","names":[],"sources":["../../../src/fill/formatFillData.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"formatFillData.d.ts","names":[],"sources":["../../../src/fill/formatFillData.ts"],"mappings":";;;;YAWY;EACV,YAAY;EACZ;EACA;;qBAmBW,iBAAc,WACd,MAAI,YACH,UAAQ,kBACJ,eACD,eAAa,eACb,mBACd,QAAQ"}
|
|
@@ -5,7 +5,6 @@ import { Dictionary } from "@intlayer/types/dictionary";
|
|
|
5
5
|
* Gets all locales that have actual translations in the dictionary content.
|
|
6
6
|
* Only returns locales that are present in at least one translation node.
|
|
7
7
|
*/
|
|
8
|
-
declare const getAvailableLocalesInDictionary: (dictionary: Dictionary) => Locale[];
|
|
8
|
+
export declare const getAvailableLocalesInDictionary: (dictionary: Dictionary) => Locale[];
|
|
9
9
|
//#endregion
|
|
10
|
-
export { getAvailableLocalesInDictionary };
|
|
11
10
|
//# sourceMappingURL=getAvailableLocalesInDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAvailableLocalesInDictionary.d.ts","names":[],"sources":["../../../src/fill/getAvailableLocalesInDictionary.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"getAvailableLocalesInDictionary.d.ts","names":[],"sources":["../../../src/fill/getAvailableLocalesInDictionary.ts"],"mappings":";;;;;;;qBAqCa,kCAA+B,YAC9B,eACX"}
|
|
@@ -8,7 +8,6 @@ import { Dictionary } from "@intlayer/types/dictionary";
|
|
|
8
8
|
* @param targetDictionary - The existing target dictionary
|
|
9
9
|
* @returns A dictionary with only the missing content
|
|
10
10
|
*/
|
|
11
|
-
declare const getFilterMissingContentPerLocale: (sourceDictionary: Dictionary, targetDictionary: Dictionary | undefined) => Dictionary;
|
|
11
|
+
export declare const getFilterMissingContentPerLocale: (sourceDictionary: Dictionary, targetDictionary: Dictionary | undefined) => Dictionary;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { getFilterMissingContentPerLocale };
|
|
14
13
|
//# sourceMappingURL=getFilterMissingContentPerLocale.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFilterMissingContentPerLocale.d.ts","names":[],"sources":["../../../src/fill/getFilterMissingContentPerLocale.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"getFilterMissingContentPerLocale.d.ts","names":[],"sources":["../../../src/fill/getFilterMissingContentPerLocale.ts"],"mappings":";;;;;;;;;;qBAgEa,mCAAgC,kBACzB,YAAU,kBACV,2BACjB"}
|
|
@@ -2,7 +2,7 @@ import { IntlayerConfig } from "@intlayer/types/config";
|
|
|
2
2
|
import { Locale } from "@intlayer/types/allLocales";
|
|
3
3
|
import { LocalDictionaryId } from "@intlayer/types/dictionary";
|
|
4
4
|
//#region src/fill/listTranslationsTasks.d.ts
|
|
5
|
-
type TranslationTask = {
|
|
5
|
+
export type TranslationTask = {
|
|
6
6
|
dictionaryKey: string;
|
|
7
7
|
dictionaryLocalId: LocalDictionaryId;
|
|
8
8
|
sourceLocale: Locale;
|
|
@@ -10,7 +10,6 @@ type TranslationTask = {
|
|
|
10
10
|
dictionaryPreset: string;
|
|
11
11
|
dictionaryFilePath: string;
|
|
12
12
|
};
|
|
13
|
-
declare const listTranslationsTasks: (localIds: LocalDictionaryId[], outputLocales: Locale[], mode: 'complete' | 'review', baseLocale: Locale, configuration: IntlayerConfig) => TranslationTask[];
|
|
13
|
+
export declare const listTranslationsTasks: (localIds: LocalDictionaryId[], outputLocales: Locale[], mode: 'complete' | 'review', baseLocale: Locale, configuration: IntlayerConfig) => TranslationTask[];
|
|
14
14
|
//#endregion
|
|
15
|
-
export { TranslationTask, listTranslationsTasks };
|
|
16
15
|
//# sourceMappingURL=listTranslationsTasks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listTranslationsTasks.d.ts","names":[],"sources":["../../../src/fill/listTranslationsTasks.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"listTranslationsTasks.d.ts","names":[],"sources":["../../../src/fill/listTranslationsTasks.ts"],"mappings":";;;;YAkBY;EACV;EACA,mBAAmB;EACnB,cAAc;EACd,eAAe;EACf;EACA;;qBAGW,wBAAqB,UACtB,qBAAmB,eACd,UAAQ,6BACI,YACf,QAAM,eACH,mBACd"}
|
|
@@ -19,7 +19,6 @@ type TranslateDictionaryOptions = {
|
|
|
19
19
|
aiClient?: AIClient;
|
|
20
20
|
aiConfig?: AIConfig;
|
|
21
21
|
};
|
|
22
|
-
declare const translateDictionary: (task: TranslationTask, configuration: IntlayerConfig, options?: TranslateDictionaryOptions) => Promise<TranslateDictionaryResult>;
|
|
22
|
+
export declare const translateDictionary: (task: TranslationTask, configuration: IntlayerConfig, options?: TranslateDictionaryOptions) => Promise<TranslateDictionaryResult>;
|
|
23
23
|
//#endregion
|
|
24
|
-
export { translateDictionary };
|
|
25
24
|
//# sourceMappingURL=translateDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translateDictionary.d.ts","names":[],"sources":["../../../src/fill/translateDictionary.ts"],"mappings":";;;;;;;KAwCK,4BAA4B;EAC/B,kBAAkB;;KAGf;EACH;EACA,YAAY;EACZ;EACA,WAAW,mDAC+B;EAE1C;EACA,WAAW;EACX,sBAAsB;EACtB,WAAW;EACX,WAAW;;
|
|
1
|
+
{"version":3,"file":"translateDictionary.d.ts","names":[],"sources":["../../../src/fill/translateDictionary.ts"],"mappings":";;;;;;;KAwCK,4BAA4B;EAC/B,kBAAkB;;KAGf;EACH;EACA,YAAY;EACZ;EACA,WAAW,mDAC+B;EAE1C;EACA,WAAW;EACX,sBAAsB;EACtB,WAAW;EACX,WAAW;;qBAyCA,sBAAmB,MACxB,iBAAe,eACN,gBAAc,UACnB,+BACT,QAAQ"}
|
|
@@ -2,7 +2,6 @@ import { IntlayerConfig } from "@intlayer/types/config";
|
|
|
2
2
|
import { Locale } from "@intlayer/types/allLocales";
|
|
3
3
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
4
|
//#region src/fill/writeFill.d.ts
|
|
5
|
-
declare const writeFill: (contentDeclarationFile: Dictionary, outputLocales: Locale[], parentLocales: Locale[], configuration: IntlayerConfig) => Promise<void>;
|
|
5
|
+
export declare const writeFill: (contentDeclarationFile: Dictionary, outputLocales: Locale[], parentLocales: Locale[], configuration: IntlayerConfig) => Promise<void>;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { writeFill };
|
|
8
7
|
//# sourceMappingURL=writeFill.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeFill.d.ts","names":[],"sources":["../../../src/fill/writeFill.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"writeFill.d.ts","names":[],"sources":["../../../src/fill/writeFill.ts"],"mappings":";;;;qBAWa,YAAS,wBACI,YAAU,eACnB,UAAQ,eACR,UAAQ,eACR,mBAAc"}
|
|
@@ -2,8 +2,8 @@ import { GetConfigurationOptions } from "@intlayer/config/node";
|
|
|
2
2
|
import { ListGitFilesOptions } from "@intlayer/engine/cli";
|
|
3
3
|
import { Dictionary } from "@intlayer/types/dictionary";
|
|
4
4
|
//#region src/getTargetDictionary.d.ts
|
|
5
|
-
declare const ensureArray: <T>(value: T | T[]) => T[];
|
|
6
|
-
type GetTargetDictionaryOptions = {
|
|
5
|
+
export declare const ensureArray: <T>(value: T | T[]) => T[];
|
|
6
|
+
export type GetTargetDictionaryOptions = {
|
|
7
7
|
file?: string | string[];
|
|
8
8
|
keys?: string | string[];
|
|
9
9
|
excludedKeys?: string | string[];
|
|
@@ -12,7 +12,6 @@ type GetTargetDictionaryOptions = {
|
|
|
12
12
|
gitOptions?: ListGitFilesOptions;
|
|
13
13
|
configOptions?: GetConfigurationOptions;
|
|
14
14
|
};
|
|
15
|
-
declare const getTargetUnmergedDictionaries: (options?: GetTargetDictionaryOptions) => Promise<Dictionary[]>;
|
|
15
|
+
export declare const getTargetUnmergedDictionaries: (options?: GetTargetDictionaryOptions) => Promise<Dictionary[]>;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { GetTargetDictionaryOptions, ensureArray, getTargetUnmergedDictionaries };
|
|
18
17
|
//# sourceMappingURL=getTargetDictionary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTargetDictionary.d.ts","names":[],"sources":["../../src/getTargetDictionary.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"getTargetDictionary.d.ts","names":[],"sources":["../../src/getTargetDictionary.ts"],"mappings":";;;;qBASa,cAAe,GAAC,OAAS,IAAI,QAAM;YAGpC;EACV;EACA;EACA;EACA,UAAU,OAAO;EACjB;EACA,aAAa;EACb,gBAAgB;;qBAGL,gCAA6B,UAC9B,+BACT,QAAQ"}
|
package/dist/types/init.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { InitOptions } from "@intlayer/engine/cli";
|
|
2
2
|
//#region src/init.d.ts
|
|
3
|
-
declare const findProjectRoot: (startDir: string) => string;
|
|
4
|
-
declare const init: (projectRoot?: string, options?: InitOptions, interactive?: boolean) => Promise<void>;
|
|
3
|
+
export declare const findProjectRoot: (startDir: string) => string;
|
|
4
|
+
export declare const init: (projectRoot?: string, options?: InitOptions, interactive?: boolean) => Promise<void>;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { findProjectRoot, init };
|
|
7
6
|
//# sourceMappingURL=init.d.ts.map
|
package/dist/types/init.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","names":[],"sources":["../../src/init.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"init.d.ts","names":[],"sources":["../../src/init.ts"],"mappings":";;qBAwBa,kBAAe;qBAuXf,OAAI,sBACK,UACV,aAAW,0BACA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/initBuildOptimization.d.ts
|
|
2
2
|
/** Intlayer build optimization plugin choices for Next.js. */
|
|
3
|
-
type BuildOptimizationPlugin = 'babel' | 'swc';
|
|
3
|
+
export type BuildOptimizationPlugin = 'babel' | 'swc';
|
|
4
4
|
/**
|
|
5
5
|
* Interactive prompt to select a build optimization plugin for Next.js and
|
|
6
6
|
* scaffold the required files. The two options are independent — pick one:
|
|
@@ -14,7 +14,6 @@ type BuildOptimizationPlugin = 'babel' | 'swc';
|
|
|
14
14
|
*
|
|
15
15
|
* @param projectRoot - Optional project root; defaults to the current directory.
|
|
16
16
|
*/
|
|
17
|
-
declare const initBuildOptimization: (projectRoot?: string) => Promise<void>;
|
|
17
|
+
export declare const initBuildOptimization: (projectRoot?: string) => Promise<void>;
|
|
18
18
|
//#endregion
|
|
19
|
-
export { BuildOptimizationPlugin, initBuildOptimization };
|
|
20
19
|
//# sourceMappingURL=initBuildOptimization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initBuildOptimization.d.ts","names":[],"sources":["../../src/initBuildOptimization.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"initBuildOptimization.d.ts","names":[],"sources":["../../src/initBuildOptimization.ts"],"mappings":";;YAWY;;;;;;;;;;;;;;qBAuBC,wBAAqB,yBAE/B"}
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* In non-interactive init this function is never called, so the compiler setup
|
|
13
13
|
* is left untouched.
|
|
14
14
|
*/
|
|
15
|
-
declare const initCompiler: (projectRoot?: string) => Promise<void>;
|
|
15
|
+
export declare const initCompiler: (projectRoot?: string) => Promise<void>;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { initCompiler };
|
|
18
17
|
//# sourceMappingURL=initCompiler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initCompiler.d.ts","names":[],"sources":["../../src/initCompiler.ts"],"mappings":";;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"initCompiler.d.ts","names":[],"sources":["../../src/initCompiler.ts"],"mappings":";;;;;;;;;;;;;;qBAyEa,eAAY,yBAAiC"}
|
package/dist/types/initMCP.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Platform } from "@intlayer/engine/cli";
|
|
2
2
|
//#region src/initMCP.d.ts
|
|
3
|
-
declare const initMCP: (projectRoot?: string, preselectedPlatform?: Platform) => Promise<void>;
|
|
3
|
+
export declare const initMCP: (projectRoot?: string, preselectedPlatform?: Platform) => Promise<void>;
|
|
4
4
|
//#endregion
|
|
5
|
-
export { initMCP };
|
|
6
5
|
//# sourceMappingURL=initMCP.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"initMCP.d.ts","names":[],"sources":["../../src/initMCP.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"initMCP.d.ts","names":[],"sources":["../../src/initMCP.ts"],"mappings":";;qBAYa,UAAO,sBACE,sBACE,aAAQ"}
|