@intlayer/engine 9.4.3 → 9.4.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/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +2 -3
- package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +1 -2
- package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +10 -11
- package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +2 -3
- package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +5 -6
- package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts +4 -5
- package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +3 -4
- package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +4 -5
- package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -1
- package/dist/types/cleanOutputDir.d.ts +1 -2
- package/dist/types/cleanOutputDir.d.ts.map +1 -1
- package/dist/types/cleanRemovedContentDeclaration.d.ts +1 -2
- package/dist/types/cleanRemovedContentDeclaration.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -3
- package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts.map +1 -1
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +1 -2
- package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts.map +1 -1
- package/dist/types/createType/createModuleAugmentation.d.ts +4 -5
- package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -1
- package/dist/types/createType/createType.d.ts +2 -3
- package/dist/types/createType/createType.d.ts.map +1 -1
- package/dist/types/detectFormatCommand.d.ts +1 -2
- package/dist/types/detectFormatCommand.d.ts.map +1 -1
- package/dist/types/docReview/alignBlocks.d.ts +1 -2
- package/dist/types/docReview/alignBlocks.d.ts.map +1 -1
- package/dist/types/docReview/computeSimilarity.d.ts +2 -3
- package/dist/types/docReview/computeSimilarity.d.ts.map +1 -1
- package/dist/types/docReview/fingerprintBlock.d.ts +1 -2
- package/dist/types/docReview/fingerprintBlock.d.ts.map +1 -1
- package/dist/types/docReview/mapChangedLinesToBlocks.d.ts +1 -2
- package/dist/types/docReview/mapChangedLinesToBlocks.d.ts.map +1 -1
- package/dist/types/docReview/normalizeBlock.d.ts +1 -2
- package/dist/types/docReview/normalizeBlock.d.ts.map +1 -1
- package/dist/types/docReview/pipeline.d.ts +4 -4
- package/dist/types/docReview/pipeline.d.ts.map +1 -1
- package/dist/types/docReview/planActions.d.ts +1 -2
- package/dist/types/docReview/planActions.d.ts.map +1 -1
- package/dist/types/docReview/rebuildDocument.d.ts +5 -6
- package/dist/types/docReview/rebuildDocument.d.ts.map +1 -1
- package/dist/types/docReview/reviewReport.d.ts +8 -9
- package/dist/types/docReview/reviewReport.d.ts.map +1 -1
- package/dist/types/docReview/segmentDocument.d.ts +2 -3
- package/dist/types/docReview/segmentDocument.d.ts.map +1 -1
- package/dist/types/docReview/types.d.ts +9 -10
- package/dist/types/docReview/types.d.ts.map +1 -1
- package/dist/types/fetchDistantDictionaries.d.ts +1 -2
- package/dist/types/fetchDistantDictionaries.d.ts.map +1 -1
- package/dist/types/filterInvalidDictionaries.d.ts +2 -3
- package/dist/types/filterInvalidDictionaries.d.ts.map +1 -1
- package/dist/types/formatDictionary.d.ts +4 -5
- package/dist/types/formatDictionary.d.ts.map +1 -1
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts +1 -2
- package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts.map +1 -1
- package/dist/types/handleAdditionalContentDeclarationFile.d.ts +1 -2
- package/dist/types/handleAdditionalContentDeclarationFile.d.ts.map +1 -1
- package/dist/types/handleContentDeclarationFileChange.d.ts +1 -2
- package/dist/types/handleContentDeclarationFileChange.d.ts.map +1 -1
- package/dist/types/handleContentDeclarationFileMoved.d.ts +1 -2
- package/dist/types/handleContentDeclarationFileMoved.d.ts.map +1 -1
- package/dist/types/handleUnlinkedContentDeclarationFile.d.ts +1 -2
- package/dist/types/handleUnlinkedContentDeclarationFile.d.ts.map +1 -1
- package/dist/types/init/cms.d.ts +8 -9
- package/dist/types/init/cms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/index.d.ts +2 -2
- package/dist/types/init/frameworkSetup/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts +4 -4
- package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts +1 -2
- package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts +5 -6
- package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts +8 -9
- package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts +2 -3
- package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts +3 -4
- package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts +1 -2
- package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts +7 -8
- package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts +3 -4
- package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts +2 -3
- package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts.map +1 -1
- package/dist/types/init/frameworkSetup/types.d.ts +2 -3
- package/dist/types/init/frameworkSetup/types.d.ts.map +1 -1
- package/dist/types/init/index.d.ts +4 -5
- package/dist/types/init/index.d.ts.map +1 -1
- package/dist/types/init/utils/astImports.d.ts +3 -4
- package/dist/types/init/utils/astImports.d.ts.map +1 -1
- package/dist/types/init/utils/configManipulation.d.ts +19 -20
- package/dist/types/init/utils/configManipulation.d.ts.map +1 -1
- package/dist/types/init/utils/fileSystem.d.ts +11 -12
- package/dist/types/init/utils/fileSystem.d.ts.map +1 -1
- package/dist/types/init/utils/githubActions.d.ts +7 -8
- package/dist/types/init/utils/githubActions.d.ts.map +1 -1
- package/dist/types/init/utils/jsonParser.d.ts +1 -2
- package/dist/types/init/utils/jsonParser.d.ts.map +1 -1
- package/dist/types/init/utils/nextCompilerBabel.d.ts +2 -3
- package/dist/types/init/utils/nextCompilerBabel.d.ts.map +1 -1
- package/dist/types/init/utils/packageManager.d.ts +17 -18
- package/dist/types/init/utils/packageManager.d.ts.map +1 -1
- package/dist/types/init/utils/tsConfig.d.ts +1 -2
- package/dist/types/init/utils/tsConfig.d.ts.map +1 -1
- package/dist/types/init/utils/version.d.ts +1 -2
- package/dist/types/init/utils/version.d.ts.map +1 -1
- package/dist/types/initConfig/index.d.ts +2 -3
- package/dist/types/initConfig/index.d.ts.map +1 -1
- package/dist/types/installLSP.d.ts +1 -2
- package/dist/types/installLSP.d.ts.map +1 -1
- package/dist/types/installMCP/installMCP.d.ts +2 -3
- package/dist/types/installMCP/installMCP.d.ts.map +1 -1
- package/dist/types/installSkills/index.d.ts +9 -10
- package/dist/types/installSkills/index.d.ts.map +1 -1
- package/dist/types/listDictionariesPath.d.ts +2 -3
- package/dist/types/listDictionariesPath.d.ts.map +1 -1
- package/dist/types/listGitFiles.d.ts +5 -6
- package/dist/types/listGitFiles.d.ts.map +1 -1
- package/dist/types/listProjects.d.ts +3 -4
- package/dist/types/listProjects.d.ts.map +1 -1
- package/dist/types/loadDictionaries/getIntlayerBundle.d.ts +1 -2
- package/dist/types/loadDictionaries/getIntlayerBundle.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts +4 -5
- package/dist/types/loadDictionaries/loadContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadDictionaries.d.ts +2 -3
- package/dist/types/loadDictionaries/loadDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +1 -2
- package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts +1 -2
- package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +2 -3
- package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -1
- package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts +1 -2
- package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts.map +1 -1
- package/dist/types/loadDictionaries/log.d.ts +1 -2
- package/dist/types/loadDictionaries/log.d.ts.map +1 -1
- package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts +1 -2
- package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts.map +1 -1
- package/dist/types/logConfigDetails.d.ts +1 -2
- package/dist/types/logConfigDetails.d.ts.map +1 -1
- package/dist/types/prepareIntlayer.d.ts +1 -2
- package/dist/types/prepareIntlayer.d.ts.map +1 -1
- package/dist/types/reduceDictionaryContent/applyMask.d.ts +1 -2
- package/dist/types/reduceDictionaryContent/applyMask.d.ts.map +1 -1
- package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts +1 -2
- package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts.map +1 -1
- package/dist/types/scan/analyzeBundleContent.d.ts +1 -2
- package/dist/types/scan/analyzeBundleContent.d.ts.map +1 -1
- package/dist/types/scan/calculateScore.d.ts +6 -7
- package/dist/types/scan/calculateScore.d.ts.map +1 -1
- package/dist/types/scan/checks.d.ts +8 -9
- package/dist/types/scan/checks.d.ts.map +1 -1
- package/dist/types/scan/parseHtml.d.ts +13 -14
- package/dist/types/scan/parseHtml.d.ts.map +1 -1
- package/dist/types/scan/scanWebsite.d.ts +1 -2
- package/dist/types/scan/scanWebsite.d.ts.map +1 -1
- package/dist/types/scan/types.d.ts +9 -10
- package/dist/types/scan/types.d.ts.map +1 -1
- package/dist/types/syncPluginKit/createFileAdapter.d.ts +4 -5
- package/dist/types/syncPluginKit/createFileAdapter.d.ts.map +1 -1
- package/dist/types/syncPluginKit/createSyncPlugin.d.ts +1 -2
- package/dist/types/syncPluginKit/createSyncPlugin.d.ts.map +1 -1
- package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts +1 -2
- package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts.map +1 -1
- package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts +1 -2
- package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts.map +1 -1
- package/dist/types/syncPluginKit/types.d.ts +8 -9
- package/dist/types/syncPluginKit/types.d.ts.map +1 -1
- package/dist/types/utils/autoDecorateContent.d.ts +1 -2
- package/dist/types/utils/autoDecorateContent.d.ts.map +1 -1
- package/dist/types/utils/babelParser.d.ts +3 -3
- package/dist/types/utils/babelParser.d.ts.map +1 -1
- package/dist/types/utils/buildComponentFilesList.d.ts +1 -2
- package/dist/types/utils/buildComponentFilesList.d.ts.map +1 -1
- package/dist/types/utils/buildFilesList.d.ts +3 -4
- package/dist/types/utils/buildFilesList.d.ts.map +1 -1
- package/dist/types/utils/chunkArray.d.ts +1 -2
- package/dist/types/utils/chunkArray.d.ts.map +1 -1
- package/dist/types/utils/chunkJSON.d.ts +5 -6
- package/dist/types/utils/chunkJSON.d.ts.map +1 -1
- package/dist/types/utils/formatter.d.ts +2 -3
- package/dist/types/utils/formatter.d.ts.map +1 -1
- package/dist/types/utils/getChunk.d.ts +1 -2
- package/dist/types/utils/getChunk.d.ts.map +1 -1
- package/dist/types/utils/getContentExtension.d.ts +1 -2
- package/dist/types/utils/getContentExtension.d.ts.map +1 -1
- package/dist/types/utils/getFormatFromExtension.d.ts +4 -5
- package/dist/types/utils/getFormatFromExtension.d.ts.map +1 -1
- package/dist/types/utils/getPathHash.d.ts +1 -2
- package/dist/types/utils/getPathHash.d.ts.map +1 -1
- package/dist/types/utils/mergeChunks.d.ts +1 -2
- package/dist/types/utils/mergeChunks.d.ts.map +1 -1
- package/dist/types/utils/pLimit.d.ts +2 -3
- package/dist/types/utils/pLimit.d.ts.map +1 -1
- package/dist/types/utils/parallelize.d.ts +1 -2
- package/dist/types/utils/parallelize.d.ts.map +1 -1
- package/dist/types/utils/parallelizeGlobal.d.ts +3 -4
- package/dist/types/utils/parallelizeGlobal.d.ts.map +1 -1
- package/dist/types/utils/readDictionariesFromDisk.d.ts +1 -2
- package/dist/types/utils/readDictionariesFromDisk.d.ts.map +1 -1
- package/dist/types/utils/reduceObjectFormat.d.ts +4 -5
- package/dist/types/utils/reduceObjectFormat.d.ts.map +1 -1
- package/dist/types/utils/resolveObjectPromises.d.ts +1 -2
- package/dist/types/utils/resolveObjectPromises.d.ts.map +1 -1
- package/dist/types/utils/resolveRelativePath.d.ts +1 -2
- package/dist/types/utils/resolveRelativePath.d.ts.map +1 -1
- package/dist/types/utils/runOnce.d.ts +2 -3
- package/dist/types/utils/runOnce.d.ts.map +1 -1
- package/dist/types/utils/runParallel/bin.d.ts +1 -2
- package/dist/types/utils/runParallel/bin.d.ts.map +1 -1
- package/dist/types/utils/runParallel/bootstrap.d.ts +1 -2
- package/dist/types/utils/runParallel/bootstrap.d.ts.map +1 -1
- package/dist/types/utils/runParallel/index.d.ts +2 -3
- package/dist/types/utils/runParallel/index.d.ts.map +1 -1
- package/dist/types/utils/runParallel/pidTree.d.ts +1 -2
- package/dist/types/utils/runParallel/pidTree.d.ts.map +1 -1
- package/dist/types/utils/runParallel/ps.d.ts +1 -2
- package/dist/types/utils/runParallel/ps.d.ts.map +1 -1
- package/dist/types/utils/runParallel/runTask.d.ts +1 -2
- package/dist/types/utils/runParallel/runTask.d.ts.map +1 -1
- package/dist/types/utils/runParallel/spawnPosix.d.ts +1 -2
- package/dist/types/utils/runParallel/spawnPosix.d.ts.map +1 -1
- package/dist/types/utils/runParallel/spawnWin32.d.ts +1 -2
- package/dist/types/utils/runParallel/spawnWin32.d.ts.map +1 -1
- package/dist/types/utils/runParallel/wmic.d.ts +1 -2
- package/dist/types/utils/runParallel/wmic.d.ts.map +1 -1
- package/dist/types/utils/sortAlphabetically.d.ts +1 -2
- package/dist/types/utils/sortAlphabetically.d.ts.map +1 -1
- package/dist/types/utils/splitTextByLine.d.ts +1 -2
- package/dist/types/utils/splitTextByLine.d.ts.map +1 -1
- package/dist/types/utils/verifyIdenticObjectFormat.d.ts +1 -2
- package/dist/types/utils/verifyIdenticObjectFormat.d.ts.map +1 -1
- package/dist/types/watcher.d.ts +2 -3
- package/dist/types/watcher.d.ts.map +1 -1
- package/dist/types/writeConfiguration/generateConfigurationContent.d.ts +1 -2
- package/dist/types/writeConfiguration/generateConfigurationContent.d.ts.map +1 -1
- package/dist/types/writeConfiguration/index.d.ts +2 -3
- package/dist/types/writeConfiguration/index.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts +1 -2
- package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +1 -2
- package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts +1 -2
- package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/transformJSONFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/transformJSONFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeJSFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts.map +1 -1
- package/dist/types/writeContentDeclaration/writeYamlFile.d.ts +1 -2
- package/dist/types/writeContentDeclaration/writeYamlFile.d.ts.map +1 -1
- package/dist/types/writeFileIfChanged.d.ts +2 -3
- package/dist/types/writeFileIfChanged.d.ts.map +1 -1
- package/dist/types/writeJsonIfChanged.d.ts +1 -2
- package/dist/types/writeJsonIfChanged.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -5,27 +5,26 @@
|
|
|
5
5
|
* when the app is effectively empty) — they never overwrite user code.
|
|
6
6
|
*/
|
|
7
7
|
/** Next.js >= 16 locale-detection proxy (`src/proxy.ts`). */
|
|
8
|
-
declare const PROXY_TEMPLATE = "export { intlayerProxy as proxy } from \"next-intlayer/proxy\";\n\nexport const config = {\n matcher:\n \"/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\\\..*|_next).*)\",\n};\n";
|
|
8
|
+
export declare const PROXY_TEMPLATE = "export { intlayerProxy as proxy } from \"next-intlayer/proxy\";\n\nexport const config = {\n matcher:\n \"/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\\\..*|_next).*)\",\n};\n";
|
|
9
9
|
/** Next.js < 16 locale-detection middleware (`src/middleware.ts`). */
|
|
10
|
-
declare const MIDDLEWARE_TEMPLATE = "export { intlayerMiddleware as middleware } from \"next-intlayer/middleware\";\n\nexport const config = {\n matcher:\n \"/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\\\..*|_next).*)\",\n};\n";
|
|
10
|
+
export declare const MIDDLEWARE_TEMPLATE = "export { intlayerMiddleware as middleware } from \"next-intlayer/middleware\";\n\nexport const config = {\n matcher:\n \"/((?!api|static|assets|robots|sitemap|sw|service-worker|manifest|.*\\\\..*|_next).*)\",\n};\n";
|
|
11
11
|
/** Minimal pass-through root layout (`app/layout.tsx`), lets `[locale]/layout` own `<html>`. */
|
|
12
|
-
declare const ROOT_LAYOUT_TEMPLATE_TS = "import type { PropsWithChildren, FC } from \"react\";\n\nconst RootLayout: FC<PropsWithChildren> = ({ children }) => <>{children}</>;\n\nexport default RootLayout;\n";
|
|
13
|
-
declare const ROOT_LAYOUT_TEMPLATE_JS = "const RootLayout = ({ children }) => <>{children}</>;\n\nexport default RootLayout;\n";
|
|
12
|
+
export declare const ROOT_LAYOUT_TEMPLATE_TS = "import type { PropsWithChildren, FC } from \"react\";\n\nconst RootLayout: FC<PropsWithChildren> = ({ children }) => <>{children}</>;\n\nexport default RootLayout;\n";
|
|
13
|
+
export declare const ROOT_LAYOUT_TEMPLATE_JS = "const RootLayout = ({ children }) => <>{children}</>;\n\nexport default RootLayout;\n";
|
|
14
14
|
/**
|
|
15
15
|
* Locale layout (`app/[locale]/layout.tsx`) providing `<html>` + the unified
|
|
16
16
|
* provider. `IntlayerProvider` seeds both the server context (read by server
|
|
17
17
|
* hooks and by any page below, without per-page wrapping) and the client
|
|
18
18
|
* provider in one mount.
|
|
19
19
|
*/
|
|
20
|
-
declare const LOCALE_LAYOUT_TEMPLATE_TS = "import { type NextLayoutIntlayer } from \"next-intlayer\";\nimport { IntlayerProvider } from \"next-intlayer/server\";\nimport { getHTMLTextDir } from \"intlayer\";\n\nexport { generateStaticParams } from \"next-intlayer\";\n\nconst LocaleLayout: NextLayoutIntlayer = async ({ children, params }) => {\n const { locale } = await params;\n\n return (\n <html lang={locale} dir={getHTMLTextDir(locale)}>\n <body>\n <IntlayerProvider locale={locale}>{children}</IntlayerProvider>\n </body>\n </html>\n );\n};\n\nexport default LocaleLayout;\n";
|
|
21
|
-
declare const LOCALE_LAYOUT_TEMPLATE_JS = "import { IntlayerProvider } from \"next-intlayer/server\";\nimport { getHTMLTextDir } from \"intlayer\";\n\nexport { generateStaticParams } from \"next-intlayer\";\n\nconst LocaleLayout = async ({ children, params }) => {\n const { locale } = await params;\n\n return (\n <html lang={locale} dir={getHTMLTextDir(locale)}>\n <body>\n <IntlayerProvider locale={locale}>{children}</IntlayerProvider>\n </body>\n </html>\n );\n};\n\nexport default LocaleLayout;\n";
|
|
20
|
+
export declare const LOCALE_LAYOUT_TEMPLATE_TS = "import { type NextLayoutIntlayer } from \"next-intlayer\";\nimport { IntlayerProvider } from \"next-intlayer/server\";\nimport { getHTMLTextDir } from \"intlayer\";\n\nexport { generateStaticParams } from \"next-intlayer\";\n\nconst LocaleLayout: NextLayoutIntlayer = async ({ children, params }) => {\n const { locale } = await params;\n\n return (\n <html lang={locale} dir={getHTMLTextDir(locale)}>\n <body>\n <IntlayerProvider locale={locale}>{children}</IntlayerProvider>\n </body>\n </html>\n );\n};\n\nexport default LocaleLayout;\n";
|
|
21
|
+
export declare const LOCALE_LAYOUT_TEMPLATE_JS = "import { IntlayerProvider } from \"next-intlayer/server\";\nimport { getHTMLTextDir } from \"intlayer\";\n\nexport { generateStaticParams } from \"next-intlayer\";\n\nconst LocaleLayout = async ({ children, params }) => {\n const { locale } = await params;\n\n return (\n <html lang={locale} dir={getHTMLTextDir(locale)}>\n <body>\n <IntlayerProvider locale={locale}>{children}</IntlayerProvider>\n </body>\n </html>\n );\n};\n\nexport default LocaleLayout;\n";
|
|
22
22
|
/**
|
|
23
23
|
* Locale home page (`app/[locale]/page.tsx`). Self-contained starter that does
|
|
24
24
|
* not depend on an example content declaration — add Intlayer content (a
|
|
25
25
|
* `*.content.ts` file consumed via `useIntlayer`) as the next step.
|
|
26
26
|
*/
|
|
27
|
-
declare const LOCALE_PAGE_TEMPLATE_TS = "import { type NextPageIntlayer } from \"next-intlayer\";\n\nconst Page: NextPageIntlayer = async ({ params }) => {\n const { locale } = await params;\n\n return (\n <main>\n <h1>{locale}</h1>\n <p>Get started by editing this page.</p>\n </main>\n );\n};\n\nexport default Page;\n";
|
|
28
|
-
declare const LOCALE_PAGE_TEMPLATE_JS = "const Page = async ({ params }) => {\n const { locale } = await params;\n\n return (\n <main>\n <h1>{locale}</h1>\n <p>Get started by editing this page.</p>\n </main>\n );\n};\n\nexport default Page;\n";
|
|
27
|
+
export declare const LOCALE_PAGE_TEMPLATE_TS = "import { type NextPageIntlayer } from \"next-intlayer\";\n\nconst Page: NextPageIntlayer = async ({ params }) => {\n const { locale } = await params;\n\n return (\n <main>\n <h1>{locale}</h1>\n <p>Get started by editing this page.</p>\n </main>\n );\n};\n\nexport default Page;\n";
|
|
28
|
+
export declare const LOCALE_PAGE_TEMPLATE_JS = "const Page = async ({ params }) => {\n const { locale } = await params;\n\n return (\n <main>\n <h1>{locale}</h1>\n <p>Get started by editing this page.</p>\n </main>\n );\n};\n\nexport default Page;\n";
|
|
29
29
|
//#endregion
|
|
30
|
-
export { LOCALE_LAYOUT_TEMPLATE_JS, LOCALE_LAYOUT_TEMPLATE_TS, LOCALE_PAGE_TEMPLATE_JS, LOCALE_PAGE_TEMPLATE_TS, MIDDLEWARE_TEMPLATE, PROXY_TEMPLATE, ROOT_LAYOUT_TEMPLATE_JS, ROOT_LAYOUT_TEMPLATE_TS };
|
|
31
30
|
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/templates.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/templates.ts"],"mappings":";;;;;;;qBAOa;;qBASA;;qBASA;qBAOA;;;;;;;qBAWA;qBAqBA;;;;;;qBAyBA;qBAgBA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/init/frameworkSetup/nextAppRouter/transforms.d.ts
|
|
2
2
|
/** Result of a source transform. `code` is unchanged for any non-`wrapped` status. */
|
|
3
|
-
type TransformResult = {
|
|
3
|
+
export type TransformResult = {
|
|
4
4
|
code: string;
|
|
5
5
|
status: 'wrapped' | 'already' | 'skipped-client' | 'skipped';
|
|
6
6
|
};
|
|
@@ -15,7 +15,6 @@ type TransformResult = {
|
|
|
15
15
|
* pages below the locale layout read locale/variant from it without wrapping
|
|
16
16
|
* themselves individually (see the removed `wrapPageWithProvider`).
|
|
17
17
|
*/
|
|
18
|
-
declare const wrapLayoutWithProvider: (code: string) => TransformResult;
|
|
18
|
+
export declare const wrapLayoutWithProvider: (code: string) => TransformResult;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { TransformResult, wrapLayoutWithProvider };
|
|
21
20
|
//# sourceMappingURL=transforms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/transforms.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/nextAppRouter/transforms.ts"],"mappings":";;YAWY;EACV;EACA;;;;;;;;;;;;;qBAsLW,yBAAsB,iBAAmB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/init/frameworkSetup/tanstackStart/detect.d.ts
|
|
2
2
|
/** Location of the TanStack Router file-based routes directory. */
|
|
3
|
-
type TanStackRoutesInfo = {
|
|
3
|
+
export type TanStackRoutesInfo = {
|
|
4
4
|
/** Routes directory relative to the root, e.g. `src/routes` or `routes`. */
|
|
5
5
|
routesDir: string;
|
|
6
6
|
/** `src` when the project uses a `src/` directory, otherwise `''`. */
|
|
@@ -10,12 +10,11 @@ type TanStackRoutesInfo = {
|
|
|
10
10
|
* Detects the TanStack Router routes directory, preferring `src/routes` over
|
|
11
11
|
* `routes`. Returns `null` when neither exists.
|
|
12
12
|
*/
|
|
13
|
-
declare const detectTanStackRoutesDir: (rootDir: string) => Promise<TanStackRoutesInfo | null>;
|
|
13
|
+
export declare const detectTanStackRoutesDir: (rootDir: string) => Promise<TanStackRoutesInfo | null>;
|
|
14
14
|
/**
|
|
15
15
|
* Returns true when the project depends on TanStack Start (`@tanstack/react-start`)
|
|
16
16
|
* or, failing that, on `@tanstack/react-router` (file-based routing).
|
|
17
17
|
*/
|
|
18
|
-
declare const hasTanStackStartDeps: (allDeps: Record<string, string>) => boolean;
|
|
18
|
+
export declare const hasTanStackStartDeps: (allDeps: Record<string, string>) => boolean;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { TanStackRoutesInfo, detectTanStackRoutesDir, hasTanStackStartDeps };
|
|
21
20
|
//# sourceMappingURL=detect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detect.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/detect.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"detect.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/detect.ts"],"mappings":";;YAIY;;EAEV;;EAEA;;;;;;qBAOW,0BAAuB,oBAEjC,QAAQ;;;;;qBAcE,uBAAoB,SACtB"}
|
|
@@ -6,7 +6,6 @@ import { FrameworkAdapter } from "../types.js";
|
|
|
6
6
|
* the Intlayer provider — all idempotently and without overwriting user code it
|
|
7
7
|
* cannot confidently transform.
|
|
8
8
|
*/
|
|
9
|
-
declare const tanStackStartAdapter: FrameworkAdapter;
|
|
9
|
+
export declare const tanStackStartAdapter: FrameworkAdapter;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { tanStackStartAdapter };
|
|
12
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/index.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/index.ts"],"mappings":";;;;;;;;qBA4Ea,sBAAsB"}
|
|
@@ -5,20 +5,20 @@ import { RoutingMode } from "../../utils/configManipulation.js";
|
|
|
5
5
|
* used by every routing mode except `prefix-all` so the default locale stays
|
|
6
6
|
* prefix-free.
|
|
7
7
|
*/
|
|
8
|
-
declare const LOCALE_SEGMENT = "{-$locale}";
|
|
8
|
+
export declare const LOCALE_SEGMENT = "{-$locale}";
|
|
9
9
|
/**
|
|
10
10
|
* The required TanStack Router locale segment directory (`$locale` param), used
|
|
11
11
|
* by `prefix-all` routing where every URL — including the default locale — is
|
|
12
12
|
* prefixed.
|
|
13
13
|
*/
|
|
14
|
-
declare const PREFIX_ALL_LOCALE_SEGMENT = "$locale";
|
|
14
|
+
export declare const PREFIX_ALL_LOCALE_SEGMENT = "$locale";
|
|
15
15
|
/**
|
|
16
16
|
* Picks the locale segment directory for the project's routing mode. `prefix-all`
|
|
17
17
|
* requires the mandatory `$locale` param so the default locale is also prefixed;
|
|
18
18
|
* all other modes use the optional `{-$locale}` param so the default locale stays
|
|
19
19
|
* prefix-free.
|
|
20
20
|
*/
|
|
21
|
-
declare const getLocaleSegment: (routingMode: RoutingMode) => string;
|
|
21
|
+
export declare const getLocaleSegment: (routingMode: RoutingMode) => string;
|
|
22
22
|
/**
|
|
23
23
|
* Detects whether a top-level route entry is already a locale segment, in any of
|
|
24
24
|
* the TanStack Router param forms:
|
|
@@ -29,7 +29,7 @@ declare const getLocaleSegment: (routingMode: RoutingMode) => string;
|
|
|
29
29
|
* existing prefix-all `$locale` directory is never nested under a freshly created
|
|
30
30
|
* `{-$locale}` (which would produce `{-$locale}/$locale`).
|
|
31
31
|
*/
|
|
32
|
-
declare const isLocaleSegment: (entryName: string) => boolean;
|
|
32
|
+
export declare const isLocaleSegment: (entryName: string) => boolean;
|
|
33
33
|
/**
|
|
34
34
|
* Routes-directory entries that must stay at the root and never be moved under
|
|
35
35
|
* `{-$locale}`:
|
|
@@ -42,9 +42,9 @@ declare const isLocaleSegment: (entryName: string) => boolean;
|
|
|
42
42
|
* Everything else (route files and nested route folders) is moved so it becomes
|
|
43
43
|
* locale-aware.
|
|
44
44
|
*/
|
|
45
|
-
declare const shouldKeepRouteAtRoot: (entryName: string) => boolean;
|
|
45
|
+
export declare const shouldKeepRouteAtRoot: (entryName: string) => boolean;
|
|
46
46
|
/** Outcome of an attempted `{-$locale}` restructure. */
|
|
47
|
-
type RestructureResult = {
|
|
47
|
+
export type RestructureResult = {
|
|
48
48
|
status: 'already-structured';
|
|
49
49
|
localeSegment: string;
|
|
50
50
|
} | {
|
|
@@ -61,7 +61,6 @@ type RestructureResult = {
|
|
|
61
61
|
* {@link isLocaleSegment}), which is reported via `localeSegment`. Root-only
|
|
62
62
|
* files (see {@link shouldKeepRouteAtRoot}) are left in place.
|
|
63
63
|
*/
|
|
64
|
-
declare const restructureRoutesIntoLocale: (rootDir: string, routesDir: string, localeSegment?: string) => Promise<RestructureResult>;
|
|
64
|
+
export declare const restructureRoutesIntoLocale: (rootDir: string, routesDir: string, localeSegment?: string) => Promise<RestructureResult>;
|
|
65
65
|
//#endregion
|
|
66
|
-
export { LOCALE_SEGMENT, PREFIX_ALL_LOCALE_SEGMENT, RestructureResult, getLocaleSegment, isLocaleSegment, restructureRoutesIntoLocale, shouldKeepRouteAtRoot };
|
|
67
66
|
//# sourceMappingURL=restructure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restructure.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/restructure.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"restructure.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/restructure.ts"],"mappings":";;;;;;;qBAca;;;;;;qBAOA;;;;;;;qBAQA,mBAAgB,aAAiB;;;;;;;;;;;qBAajC,kBAAe;;;;;;;;;;;;;qBAmBf,wBAAqB;;YAUtB;EACN;EAA8B;;EAC9B;;EACA;EAAiB;;;;;;;;;;qBAUV,8BAA2B,iBACvB,mBACE,2BAEhB,QAAQ"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* locale; in both cases `validatePrefix` redirects unknown prefixes to a valid
|
|
11
11
|
* one. Identical for TypeScript and JavaScript projects.
|
|
12
12
|
*/
|
|
13
|
-
declare const buildLocaleRouteTemplate: (localeSegment: string) => string;
|
|
13
|
+
export declare const buildLocaleRouteTemplate: (localeSegment: string) => string;
|
|
14
14
|
/**
|
|
15
15
|
* Root route document (`routes/__root.tsx`) providing `<html>` + the Intlayer
|
|
16
16
|
* provider, with the locale read from the locale segment route params.
|
|
@@ -19,9 +19,8 @@ declare const buildLocaleRouteTemplate: (localeSegment: string) => string;
|
|
|
19
19
|
* importing `<segment>/route`, so the root never imports a child route module —
|
|
20
20
|
* the recommended way to consume another route's typed hooks.
|
|
21
21
|
*/
|
|
22
|
-
declare const buildRootTemplateTs: (localeSegment: string) => string;
|
|
22
|
+
export declare const buildRootTemplateTs: (localeSegment: string) => string;
|
|
23
23
|
/** JavaScript counterpart of {@link buildRootTemplateTs}. */
|
|
24
|
-
declare const buildRootTemplateJs: (localeSegment: string) => string;
|
|
24
|
+
export declare const buildRootTemplateJs: (localeSegment: string) => string;
|
|
25
25
|
//#endregion
|
|
26
|
-
export { buildLocaleRouteTemplate, buildRootTemplateJs, buildRootTemplateTs };
|
|
27
26
|
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/templates.ts"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/templates.ts"],"mappings":";;;;;;;;;;;;qBAYa,2BAAwB;;;;;;;;;qBAgCxB,sBAAmB;;qBAkCnB,sBAAmB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/init/frameworkSetup/tanstackStart/transforms.d.ts
|
|
2
2
|
/** Result of a source transform. `code` is unchanged for any non-`wrapped` status. */
|
|
3
|
-
type TransformResult = {
|
|
3
|
+
export type TransformResult = {
|
|
4
4
|
code: string;
|
|
5
5
|
status: 'wrapped' | 'already' | 'skipped';
|
|
6
6
|
};
|
|
@@ -15,7 +15,6 @@ type TransformResult = {
|
|
|
15
15
|
* @param localeSegment Locale segment directory in use — `{-$locale}` for every
|
|
16
16
|
* routing mode but `prefix-all`, which uses the required `$locale`.
|
|
17
17
|
*/
|
|
18
|
-
declare const wrapRootWithProvider: (code: string, localeSegment: string) => TransformResult;
|
|
18
|
+
export declare const wrapRootWithProvider: (code: string, localeSegment: string) => TransformResult;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { TransformResult, wrapRootWithProvider };
|
|
21
20
|
//# sourceMappingURL=transforms.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/transforms.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/transforms.ts"],"mappings":";;YAkBY;EACV;EACA;;;;;;;;;;;;;qBAoMW,uBAAoB,cACnB,0BAEX"}
|
|
@@ -5,7 +5,7 @@ import { RoutingMode } from "../utils/configManipulation.js";
|
|
|
5
5
|
* Shared context passed to every framework adapter. Mirrors the data already
|
|
6
6
|
* computed by `initIntlayer` so adapters don't re-detect it.
|
|
7
7
|
*/
|
|
8
|
-
type FrameworkSetupContext = {
|
|
8
|
+
export type FrameworkSetupContext = {
|
|
9
9
|
/** Absolute project root directory. */
|
|
10
10
|
rootDir: string;
|
|
11
11
|
/** Merged prod + dev dependencies of the project's package.json. */
|
|
@@ -27,7 +27,7 @@ type FrameworkSetupContext = {
|
|
|
27
27
|
* project shape and scaffold the matching Intlayer integration (middleware,
|
|
28
28
|
* providers, example content) in a way that is safe to re-run.
|
|
29
29
|
*/
|
|
30
|
-
type FrameworkAdapter = {
|
|
30
|
+
export type FrameworkAdapter = {
|
|
31
31
|
/** Human-readable adapter name, used in logs. */
|
|
32
32
|
name: string;
|
|
33
33
|
/**
|
|
@@ -43,5 +43,4 @@ type FrameworkAdapter = {
|
|
|
43
43
|
setup: (context: FrameworkSetupContext) => Promise<void>;
|
|
44
44
|
};
|
|
45
45
|
//#endregion
|
|
46
|
-
export { FrameworkAdapter, FrameworkSetupContext };
|
|
47
46
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/init/frameworkSetup/types.ts"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/init/frameworkSetup/types.ts"],"mappings":";;;;;;;YAOY;;EAEV;;EAEA,SAAS;;EAET,gBAAgB;;EAEhB;;;;;;;EAOA,aAAa;;;;;;;YAQH;;EAEV;;;;;EAKA,SAAS,SAAS,oCAAoC;;;;;;EAMtD,QAAQ,SAAS,0BAA0B"}
|
|
@@ -7,7 +7,7 @@ import "./utils/index.js";
|
|
|
7
7
|
* embed Vite (Astro, SvelteKit, …) are checked before the bare Vite fallback so
|
|
8
8
|
* their own dev port wins.
|
|
9
9
|
*/
|
|
10
|
-
declare const getDefaultApplicationURL: (dependencies: Record<string, string>) => string;
|
|
10
|
+
export declare const getDefaultApplicationURL: (dependencies: Record<string, string>) => string;
|
|
11
11
|
/**
|
|
12
12
|
* How the interactive init organizes autogenerated content (compiler output /
|
|
13
13
|
* autofill):
|
|
@@ -17,11 +17,11 @@ declare const getDefaultApplicationURL: (dependencies: Record<string, string>) =
|
|
|
17
17
|
* - `json-namespaces` — plain per-locale JSON namespace files kept in sync
|
|
18
18
|
* through `@intlayer/sync-json-plugin`.
|
|
19
19
|
*/
|
|
20
|
-
type ContentStrategy = 'per-component' | 'centralized' | 'json-namespaces';
|
|
20
|
+
export type ContentStrategy = 'per-component' | 'centralized' | 'json-namespaces';
|
|
21
21
|
/**
|
|
22
22
|
* OPTIONS
|
|
23
23
|
*/
|
|
24
|
-
type InitOptions = {
|
|
24
|
+
export type InitOptions = {
|
|
25
25
|
noGitignore?: boolean;
|
|
26
26
|
/** Skip scaffolding the `fill` and `test` GitHub Actions workflows. */
|
|
27
27
|
noGithubActions?: boolean;
|
|
@@ -63,7 +63,6 @@ type InitOptions = {
|
|
|
63
63
|
/**
|
|
64
64
|
* MAIN LOGIC
|
|
65
65
|
*/
|
|
66
|
-
declare const initIntlayer: (rootDir: string, options?: InitOptions) => Promise<void>;
|
|
66
|
+
export declare const initIntlayer: (rootDir: string, options?: InitOptions) => Promise<void>;
|
|
67
67
|
//#endregion
|
|
68
|
-
export { ContentStrategy, InitOptions, getDefaultApplicationURL, initIntlayer };
|
|
69
68
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/init/index.ts"],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/init/index.ts"],"mappings":";;;;;;;;;qBAwNa,2BAAwB,cACrB;;;;;;;;;;YAsBJ;;;;YAQA;EACV;;EAEA;;;;EAIA;;EAEA;;EAEA;;EAEA;;;;;EAKA;;;;;;EAMA;;;;;;EAMA,cAAc;;;;;;;EAOd,kBAAkB;;;;;qBAMP,eAAY,iBAAyB,UAAY,gBAAW"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Index just past the leading directives (e.g. `'use client'`) and import
|
|
4
4
|
* declarations — the safe insertion point for a new import.
|
|
5
5
|
*/
|
|
6
|
-
declare const firstInsertIndex: (ast: any) => number;
|
|
6
|
+
export declare const firstInsertIndex: (ast: any) => number;
|
|
7
7
|
/**
|
|
8
8
|
* Whether `name` is already bound at module scope — by any import (under that
|
|
9
9
|
* local name, regardless of source) or by a top-level
|
|
@@ -13,7 +13,7 @@ declare const firstInsertIndex: (ast: any) => number;
|
|
|
13
13
|
* `defaultLocale` re-exported from a local `i18n` module), which would otherwise
|
|
14
14
|
* produce an `Identifier '…' has already been declared` parse error.
|
|
15
15
|
*/
|
|
16
|
-
declare const isModuleScopeBinding: (ast: any, name: string) => boolean;
|
|
16
|
+
export declare const isModuleScopeBinding: (ast: any, name: string) => boolean;
|
|
17
17
|
/**
|
|
18
18
|
* Ensures `import { importName } from source`, merging into an existing import
|
|
19
19
|
* from the same source. No-ops when `importName` is already bound at module
|
|
@@ -23,7 +23,6 @@ declare const isModuleScopeBinding: (ast: any, name: string) => boolean;
|
|
|
23
23
|
* Shared across every framework adapter so injected identifiers never collide
|
|
24
24
|
* with bindings the user's file already provides.
|
|
25
25
|
*/
|
|
26
|
-
declare const ensureNamedImport: (ast: any, importName: string, source: string) => void;
|
|
26
|
+
export declare const ensureNamedImport: (ast: any, importName: string, source: string) => void;
|
|
27
27
|
//#endregion
|
|
28
|
-
export { ensureNamedImport, firstInsertIndex, isModuleScopeBinding };
|
|
29
28
|
//# sourceMappingURL=astImports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"astImports.d.ts","names":[],"sources":["../../../../src/init/utils/astImports.ts"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"astImports.d.ts","names":[],"sources":["../../../../src/init/utils/astImports.ts"],"mappings":";;;;;qBAQa,mBAAgB;;;;;;;;;;qBAuBhB,uBAAoB,UAAY;;;;;;;;;;qBAoChC,oBAAiB,UACpB,oBACU"}
|
|
@@ -2,7 +2,7 @@ import { CompatSyncConfig, CompatVitePluginConfig } from "./packageManager.js";
|
|
|
2
2
|
import { RoutingConfig } from "@intlayer/types/config";
|
|
3
3
|
//#region src/init/utils/configManipulation.d.ts
|
|
4
4
|
/** The locale routing strategies supported by the Intlayer configuration. */
|
|
5
|
-
type RoutingMode = RoutingConfig['mode'];
|
|
5
|
+
export type RoutingMode = RoutingConfig['mode'];
|
|
6
6
|
/**
|
|
7
7
|
* Sets `routing.mode` in an Intlayer configuration file to the requested
|
|
8
8
|
* strategy. Idempotent: re-running with the same mode produces identical
|
|
@@ -10,7 +10,7 @@ type RoutingMode = RoutingConfig['mode'];
|
|
|
10
10
|
* handled with a scoped string replacement since they cannot be parsed by the
|
|
11
11
|
* TypeScript recast parser.
|
|
12
12
|
*/
|
|
13
|
-
declare const setIntlayerConfigRoutingMode: (content: string, extension: string, mode: RoutingMode) => string;
|
|
13
|
+
export declare const setIntlayerConfigRoutingMode: (content: string, extension: string, mode: RoutingMode) => string;
|
|
14
14
|
/**
|
|
15
15
|
* Sets `compiler.output` in an Intlayer configuration file to the given path
|
|
16
16
|
* template (the `{{variable}}` string form, e.g.
|
|
@@ -19,7 +19,7 @@ declare const setIntlayerConfigRoutingMode: (content: string, extension: string,
|
|
|
19
19
|
* `.cjs` configs; JSON configs are supported too since the template is a plain
|
|
20
20
|
* string.
|
|
21
21
|
*/
|
|
22
|
-
declare const setIntlayerConfigCompilerOutput: (content: string, extension: string, outputTemplate: string) => string;
|
|
22
|
+
export declare const setIntlayerConfigCompilerOutput: (content: string, extension: string, outputTemplate: string) => string;
|
|
23
23
|
/**
|
|
24
24
|
* Enables the Intlayer visual editor in a configuration file: sets
|
|
25
25
|
* `editor.enabled` to `true` and wires `clientId` / `clientSecret` to the
|
|
@@ -28,7 +28,7 @@ declare const setIntlayerConfigCompilerOutput: (content: string, extension: stri
|
|
|
28
28
|
* are preserved. Only `.ts`, `.mjs`, `.js` and `.cjs` configs are supported
|
|
29
29
|
* (JSON cannot reference `process.env`).
|
|
30
30
|
*/
|
|
31
|
-
declare const enableIntlayerEditorConfig: (content: string) => string;
|
|
31
|
+
export declare const enableIntlayerEditorConfig: (content: string) => string;
|
|
32
32
|
/**
|
|
33
33
|
* Detects whether a Vite config already wires in an Intlayer plugin — either the
|
|
34
34
|
* base `vite-intlayer` plugin or one of the compat adapters (e.g.
|
|
@@ -36,10 +36,10 @@ declare const enableIntlayerEditorConfig: (content: string) => string;
|
|
|
36
36
|
* plugins internally wrap `intlayer()`, so a standalone `intlayer()` must not be
|
|
37
37
|
* appended when one is already present, otherwise the plugin runs twice.
|
|
38
38
|
*/
|
|
39
|
-
declare const hasIntlayerVitePlugin: (content: string) => boolean;
|
|
40
|
-
declare const updateViteConfig: (content: string, extension: string) => string;
|
|
41
|
-
declare const updateAstroConfig: (content: string, extension: string) => string;
|
|
42
|
-
declare const updateNextConfig: (content: string, extension: string) => string;
|
|
39
|
+
export declare const hasIntlayerVitePlugin: (content: string) => boolean;
|
|
40
|
+
export declare const updateViteConfig: (content: string, extension: string) => string;
|
|
41
|
+
export declare const updateAstroConfig: (content: string, extension: string) => string;
|
|
42
|
+
export declare const updateNextConfig: (content: string, extension: string) => string;
|
|
43
43
|
/**
|
|
44
44
|
* Wraps a React Native Metro config's exported value with
|
|
45
45
|
* `configMetroIntlayerSync` from `react-native-intlayer/metro`, injecting the
|
|
@@ -52,26 +52,26 @@ declare const updateNextConfig: (content: string, extension: string) => string;
|
|
|
52
52
|
* is a custom async IIFE that cannot be wrapped synchronously. Callers should
|
|
53
53
|
* compare the result with the input to detect the skipped case.
|
|
54
54
|
*/
|
|
55
|
-
declare const updateMetroConfig: (content: string, extension: string) => string;
|
|
55
|
+
export declare const updateMetroConfig: (content: string, extension: string) => string;
|
|
56
56
|
/**
|
|
57
57
|
* Builds the contents of a fresh `metro.config.js` wired with the Intlayer
|
|
58
58
|
* Metro plugin. Uses the async `configMetroIntlayer` helper (which can build
|
|
59
59
|
* dictionaries on server start) and picks the default-config source based on
|
|
60
60
|
* whether the project is an Expo app.
|
|
61
61
|
*/
|
|
62
|
-
declare const getMetroConfigTemplate: (isExpo: boolean) => string;
|
|
63
|
-
declare const updateNuxtConfig: (content: string) => string;
|
|
62
|
+
export declare const getMetroConfigTemplate: (isExpo: boolean) => string;
|
|
63
|
+
export declare const updateNuxtConfig: (content: string) => string;
|
|
64
64
|
/**
|
|
65
65
|
* Updates a Vite config for vue-i18n compat: injects `vueI18nVitePlugin` from
|
|
66
66
|
* `@intlayer/vue-i18n/plugin` into the plugins array.
|
|
67
67
|
*/
|
|
68
|
-
declare const updateViteConfigForVueI18n: (content: string, extension: string) => string;
|
|
68
|
+
export declare const updateViteConfigForVueI18n: (content: string, extension: string) => string;
|
|
69
69
|
/**
|
|
70
70
|
* Generic vite config updater for any compat plugin that uses alias injection.
|
|
71
71
|
* Injects the named import from `pluginPackageSource` and appends the plugin
|
|
72
72
|
* call to the `plugins` array.
|
|
73
73
|
*/
|
|
74
|
-
declare const updateViteConfigForCompatPlugin: (content: string, extension: string, pluginConfig: CompatVitePluginConfig) => string;
|
|
74
|
+
export declare const updateViteConfigForCompatPlugin: (content: string, extension: string, pluginConfig: CompatVitePluginConfig) => string;
|
|
75
75
|
/**
|
|
76
76
|
* Rewrites the module source of an existing named import in a vite config,
|
|
77
77
|
* keeping the imported binding and its call site untouched. Used when a compat
|
|
@@ -81,35 +81,34 @@ declare const updateViteConfigForCompatPlugin: (content: string, extension: stri
|
|
|
81
81
|
* `plugins` array as-is. Returns the content unchanged when no matching import
|
|
82
82
|
* is found.
|
|
83
83
|
*/
|
|
84
|
-
declare const replaceViteConfigPluginImportSource: (content: string, importName: string, fromPackageSource: string, toPackageSource: string) => string;
|
|
84
|
+
export declare const replaceViteConfigPluginImportSource: (content: string, importName: string, fromPackageSource: string, toPackageSource: string) => string;
|
|
85
85
|
/**
|
|
86
86
|
* Updates a Next.js config for next-translate compat: wraps the default export
|
|
87
87
|
* with `withNextTranslate` from `@intlayer/next-translate/plugin`.
|
|
88
88
|
*/
|
|
89
|
-
declare const updateNextConfigForNextTranslate: (content: string, extension: string) => string;
|
|
89
|
+
export declare const updateNextConfigForNextTranslate: (content: string, extension: string) => string;
|
|
90
90
|
/**
|
|
91
91
|
* Updates a Nuxt config for nuxtjs-i18n compat: adds `@intlayer/nuxtjs-i18n`
|
|
92
92
|
* to the `modules` array.
|
|
93
93
|
*/
|
|
94
|
-
declare const updateNuxtConfigForNuxtjsI18n: (content: string) => string;
|
|
94
|
+
export declare const updateNuxtConfigForNuxtjsI18n: (content: string) => string;
|
|
95
95
|
/**
|
|
96
96
|
* Updates a Next.js config for next-i18next compat: wraps the default export
|
|
97
97
|
* with `withI18next` from `@intlayer/next-i18next/plugin`.
|
|
98
98
|
*/
|
|
99
|
-
declare const updateNextConfigForNextI18next: (content: string, extension: string) => string;
|
|
99
|
+
export declare const updateNextConfigForNextI18next: (content: string, extension: string) => string;
|
|
100
100
|
/**
|
|
101
101
|
* Updates a Next.js config for next-intl compat: replaces any existing
|
|
102
102
|
* `next-intl/plugin` import source with `@intlayer/next-intl/plugin`, or
|
|
103
103
|
* injects `createNextIntlPlugin` with a factory-call wrapper when no such
|
|
104
104
|
* import is present.
|
|
105
105
|
*/
|
|
106
|
-
declare const updateNextConfigForNextIntl: (content: string, extension: string) => string;
|
|
106
|
+
export declare const updateNextConfigForNextIntl: (content: string, extension: string) => string;
|
|
107
107
|
/**
|
|
108
108
|
* Injects the sync plugin import (`syncJSON` / `syncPO`) and a configured
|
|
109
109
|
* `syncJSON(...)` / `syncPO(...)` call into the plugins array of an intlayer
|
|
110
110
|
* config file. Idempotent: skips when the plugin call is already present.
|
|
111
111
|
*/
|
|
112
|
-
declare const updateIntlayerConfigWithSyncPlugin: (content: string, extension: string, syncConfig: CompatSyncConfig) => string;
|
|
112
|
+
export declare const updateIntlayerConfigWithSyncPlugin: (content: string, extension: string, syncConfig: CompatSyncConfig) => string;
|
|
113
113
|
//#endregion
|
|
114
|
-
export { RoutingMode, enableIntlayerEditorConfig, getMetroConfigTemplate, hasIntlayerVitePlugin, replaceViteConfigPluginImportSource, setIntlayerConfigCompilerOutput, setIntlayerConfigRoutingMode, updateAstroConfig, updateIntlayerConfigWithSyncPlugin, updateMetroConfig, updateNextConfig, updateNextConfigForNextI18next, updateNextConfigForNextIntl, updateNextConfigForNextTranslate, updateNuxtConfig, updateNuxtConfigForNuxtjsI18n, updateViteConfig, updateViteConfigForCompatPlugin, updateViteConfigForVueI18n };
|
|
115
114
|
//# sourceMappingURL=configManipulation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configManipulation.d.ts","names":[],"sources":["../../../../src/init/utils/configManipulation.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"configManipulation.d.ts","names":[],"sources":["../../../../src/init/utils/configManipulation.ts"],"mappings":";;;;YAYY,cAAc;;;;;;;;qBA0Fb,+BAA4B,iBACxB,mBACE,MACX;;;;;;;;;qBA0CK,kCAA+B,iBAC3B,mBACE;;;;;;;;;qBA0CN,6BAA0B;;;;;;;;qBA+Q1B,wBAAqB;qBAIrB,mBAAgB,iBACZ;qBAoBJ,oBAAiB,iBACb;qBAoBJ,mBAAgB,iBACZ;;;;;;;;;;;;;qBA2EJ,oBAAiB,iBACb;;;;;;;qBA2EJ,yBAAsB;qBAgBtB,mBAAgB;;;;;qBA6DhB,6BAA0B,iBACtB;;;;;;qBA8BJ,kCAA+B,iBAC3B,mBACE,cACH;;;;;;;;;;qBAiCH,sCAAmC,iBAC/B,oBACG,2BACO;;;;;qBAqGd,mCAAgC,iBAC5B;;;;;qBAcJ,gCAA6B;;;;;qBA+D7B,iCAA8B,iBAC1B;;;;;;;qBAgBJ,8BAA2B,iBACvB;;;;;;qBAgQJ,qCAAkC,iBAC9B,mBACE,YACL"}
|
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Helper to check if a file exists
|
|
4
4
|
*/
|
|
5
|
-
declare const exists: (rootDir: string, filePath: string) => Promise<boolean>;
|
|
5
|
+
export declare const exists: (rootDir: string, filePath: string) => Promise<boolean>;
|
|
6
6
|
/**
|
|
7
7
|
* Helper to read a file
|
|
8
8
|
*/
|
|
9
|
-
declare const readFileFromRoot: (rootDir: string, filePath: string) => Promise<string>;
|
|
9
|
+
export declare const readFileFromRoot: (rootDir: string, filePath: string) => Promise<string>;
|
|
10
10
|
/**
|
|
11
11
|
* Helper to write a file
|
|
12
12
|
*/
|
|
13
|
-
declare const writeFileToRoot: (rootDir: string, filePath: string, content: string) => Promise<void>;
|
|
13
|
+
export declare const writeFileToRoot: (rootDir: string, filePath: string, content: string) => Promise<void>;
|
|
14
14
|
/**
|
|
15
15
|
* Helper to ensure a directory exists
|
|
16
16
|
*/
|
|
17
|
-
declare const ensureDirectory: (rootDir: string, dirPath: string) => Promise<void>;
|
|
17
|
+
export declare const ensureDirectory: (rootDir: string, dirPath: string) => Promise<void>;
|
|
18
18
|
/**
|
|
19
19
|
* Pattern type for locale JSON file organisation.
|
|
20
20
|
* - 'nested': files are at `{base}/{locale}/{key}.json`
|
|
21
21
|
* - 'flat': files are at `{base}/{locale}.json`
|
|
22
22
|
*/
|
|
23
|
-
type JsonLocalePatternType = 'nested' | 'flat';
|
|
23
|
+
export type JsonLocalePatternType = 'nested' | 'flat';
|
|
24
24
|
/**
|
|
25
25
|
* Detected locale JSON file pattern and the corresponding source template.
|
|
26
26
|
* `template` uses `${locale}` and `${key}` as literal placeholders (not JS
|
|
27
27
|
* expressions) so it can be embedded directly in a template-literal string.
|
|
28
28
|
*/
|
|
29
|
-
type JsonLocalePattern = {
|
|
29
|
+
export type JsonLocalePattern = {
|
|
30
30
|
type: JsonLocalePatternType;
|
|
31
31
|
/**
|
|
32
32
|
* Source path template for syncJSON `source` option.
|
|
@@ -48,12 +48,12 @@ type JsonLocalePattern = {
|
|
|
48
48
|
* The returned `template` contains `${locale}` and `${key}` as **literal**
|
|
49
49
|
* placeholder strings so it can be embedded inside a JS template literal.
|
|
50
50
|
*/
|
|
51
|
-
declare const detectJsonLocalePattern: (rootDir: string) => Promise<JsonLocalePattern | null>;
|
|
51
|
+
export declare const detectJsonLocalePattern: (rootDir: string) => Promise<JsonLocalePattern | null>;
|
|
52
52
|
/**
|
|
53
53
|
* Detected lingui catalog pattern. lingui stores one catalog file per locale
|
|
54
54
|
* (default name `messages`), as `.po` (its default) or `.json`.
|
|
55
55
|
*/
|
|
56
|
-
type LinguiCatalogPattern = {
|
|
56
|
+
export type LinguiCatalogPattern = {
|
|
57
57
|
/** Which sync plugin should ingest the catalogs. */
|
|
58
58
|
format: 'po' | 'json';
|
|
59
59
|
/**
|
|
@@ -78,12 +78,12 @@ type LinguiCatalogPattern = {
|
|
|
78
78
|
*
|
|
79
79
|
* @param rootDir - Project root directory.
|
|
80
80
|
*/
|
|
81
|
-
declare const detectLinguiCatalogPattern: (rootDir: string) => Promise<LinguiCatalogPattern | null>;
|
|
81
|
+
export declare const detectLinguiCatalogPattern: (rootDir: string) => Promise<LinguiCatalogPattern | null>;
|
|
82
82
|
/**
|
|
83
83
|
* The messages source template derived from a `next-intl` `i18n/request.ts`
|
|
84
84
|
* file, ready to be used as a `syncJSON` `source` builder.
|
|
85
85
|
*/
|
|
86
|
-
type NextIntlMessagesPattern = {
|
|
86
|
+
export type NextIntlMessagesPattern = {
|
|
87
87
|
/** `'flat'` (one file per locale) or `'nested'` (per-namespace files). */
|
|
88
88
|
type: JsonLocalePatternType;
|
|
89
89
|
/**
|
|
@@ -108,7 +108,6 @@ type NextIntlMessagesPattern = {
|
|
|
108
108
|
*
|
|
109
109
|
* @param rootDir - Project root directory.
|
|
110
110
|
*/
|
|
111
|
-
declare const detectNextIntlMessagesPattern: (rootDir: string) => Promise<NextIntlMessagesPattern | null>;
|
|
111
|
+
export declare const detectNextIntlMessagesPattern: (rootDir: string) => Promise<NextIntlMessagesPattern | null>;
|
|
112
112
|
//#endregion
|
|
113
|
-
export { JsonLocalePattern, JsonLocalePatternType, LinguiCatalogPattern, NextIntlMessagesPattern, detectJsonLocalePattern, detectLinguiCatalogPattern, detectNextIntlMessagesPattern, ensureDirectory, exists, readFileFromRoot, writeFileToRoot };
|
|
114
113
|
//# sourceMappingURL=fileSystem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileSystem.d.ts","names":[],"sources":["../../../../src/init/utils/fileSystem.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"fileSystem.d.ts","names":[],"sources":["../../../../src/init/utils/fileSystem.ts"],"mappings":";;;;qBASa,SAAM,iBAAyB,qBAAkB;;;;qBAYjD,mBAAgB,iBAAyB,qBAAkB;;;;qBAM3D,kBAAe,iBACX,kBACC,oBACD;;;;qBAMJ,kBAAe,iBAAyB,oBAAiB;;;;;;YAa1D;;;;;;YAOA;EACV,MAAM;;;;;;EAMN;;;;EAIA;;;;;;;;;;;qBA4CW,0BAAuB,oBAEjC,QAAQ;;;;;YA8EC;;EAEV;;;;;;;;EAQA;;EAEA;;;;;;;;;;;;;qBAcW,6BAA0B,oBAEpC,QAAQ;;;;;YA4DC;;EAEV,MAAM;;;;;EAKN;;;;;;;;;;;;;;;;;;qBAiCW,gCAA6B,oBAEvC,QAAQ"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { PackageManager } from "./packageManager.js";
|
|
2
2
|
//#region src/init/utils/githubActions.d.ts
|
|
3
3
|
/** A GitHub Actions workflow file to be written to the project. */
|
|
4
|
-
type GithubWorkflowFile = {
|
|
4
|
+
export type GithubWorkflowFile = {
|
|
5
5
|
/** Path relative to the project root, e.g. `.github/workflows/intlayer-fill.yml`. */
|
|
6
6
|
filePath: string;
|
|
7
7
|
/** Full YAML content of the workflow file. */
|
|
8
8
|
content: string;
|
|
9
9
|
};
|
|
10
10
|
/** Options controlling how the CI workflows are generated. */
|
|
11
|
-
type GithubWorkflowsOptions = {
|
|
11
|
+
export type GithubWorkflowsOptions = {
|
|
12
12
|
/**
|
|
13
13
|
* Route the intlayer commands through `intlayer ci` instead of calling them
|
|
14
14
|
* directly. The `ci` command discovers every Intlayer project of the
|
|
@@ -30,7 +30,7 @@ type GithubWorkflowsOptions = {
|
|
|
30
30
|
* Resolved placement and generation parameters for the CI workflows.
|
|
31
31
|
* See {@link resolveGithubWorkflowsContext}.
|
|
32
32
|
*/
|
|
33
|
-
type GithubWorkflowsContext = {
|
|
33
|
+
export type GithubWorkflowsContext = {
|
|
34
34
|
/**
|
|
35
35
|
* Directory the workflow files must be written to. GitHub only triggers
|
|
36
36
|
* workflows stored in `.github/workflows` at the repository root, so this is
|
|
@@ -60,17 +60,16 @@ type GithubWorkflowsContext = {
|
|
|
60
60
|
* are written at the git root but run inside the project directory
|
|
61
61
|
* (`working-directory`), keeping the project's own package manager.
|
|
62
62
|
*/
|
|
63
|
-
declare const resolveGithubWorkflowsContext: (rootDir: string, projectPackageManager: PackageManager) => Promise<GithubWorkflowsContext>;
|
|
63
|
+
export declare const resolveGithubWorkflowsContext: (rootDir: string, projectPackageManager: PackageManager) => Promise<GithubWorkflowsContext>;
|
|
64
64
|
/** Workflow file path constants, relative to the project root. */
|
|
65
|
-
declare const GITHUB_FILL_WORKFLOW_PATH = ".github/workflows/intlayer-fill.yml";
|
|
66
|
-
declare const GITHUB_TEST_WORKFLOW_PATH = ".github/workflows/intlayer-test.yml";
|
|
65
|
+
export declare const GITHUB_FILL_WORKFLOW_PATH = ".github/workflows/intlayer-fill.yml";
|
|
66
|
+
export declare const GITHUB_TEST_WORKFLOW_PATH = ".github/workflows/intlayer-test.yml";
|
|
67
67
|
/**
|
|
68
68
|
* Returns the two Intlayer GitHub Actions workflows (`fill` and `test`),
|
|
69
69
|
* generated with commands matching the detected package manager and the
|
|
70
70
|
* repository layout (see {@link GithubWorkflowsOptions} for the monorepo and
|
|
71
71
|
* nested-project variants).
|
|
72
72
|
*/
|
|
73
|
-
declare const getGithubWorkflows: (packageManager: PackageManager, options?: GithubWorkflowsOptions) => GithubWorkflowFile[];
|
|
73
|
+
export declare const getGithubWorkflows: (packageManager: PackageManager, options?: GithubWorkflowsOptions) => GithubWorkflowFile[];
|
|
74
74
|
//#endregion
|
|
75
|
-
export { GITHUB_FILL_WORKFLOW_PATH, GITHUB_TEST_WORKFLOW_PATH, GithubWorkflowFile, GithubWorkflowsContext, GithubWorkflowsOptions, getGithubWorkflows, resolveGithubWorkflowsContext };
|
|
76
75
|
//# sourceMappingURL=githubActions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"githubActions.d.ts","names":[],"sources":["../../../../src/init/utils/githubActions.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"githubActions.d.ts","names":[],"sources":["../../../../src/init/utils/githubActions.ts"],"mappings":";;;YAMY;;EAEV;;EAEA;;;YAIU;;;;;;;;;EASV;;;;;;;EAOA;;;;;;YAOU;;;;;;EAMV;;EAEA,gBAAgB;;EAEhB,SAAS;;;;;;;;;;;;;;;;;;;;qBAyCE,gCAA6B,iBACzB,uBACQ,mBACtB,QAAQ;;qBA4SE;qBACA;;;;;;;qBAQA,qBAAkB,gBACb,gBAAc,UACrB,2BACR"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* Helper to parse JSON that may contain comments (tsconfig allows comments)
|
|
4
4
|
*/
|
|
5
|
-
declare const parseJSONWithComments: (jsonString: string) => any;
|
|
5
|
+
export declare const parseJSONWithComments: (jsonString: string) => any;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { parseJSONWithComments };
|
|
8
7
|
//# sourceMappingURL=jsonParser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonParser.d.ts","names":[],"sources":["../../../../src/init/utils/jsonParser.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"jsonParser.d.ts","names":[],"sources":["../../../../src/init/utils/jsonParser.ts"],"mappings":";;;;qBAGa,wBAAqB"}
|