@intlayer/engine 9.4.3 → 9.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/README.md +0 -2
  2. package/dist/cjs/createDictionaryEntryPoint/generateDictionaryListContent.cjs +1 -2
  3. package/dist/cjs/createDictionaryEntryPoint/generateDictionaryListContent.cjs.map +1 -1
  4. package/dist/cjs/init/index.cjs +14 -11
  5. package/dist/cjs/init/index.cjs.map +1 -1
  6. package/dist/cjs/init/utils/devScript.cjs +57 -0
  7. package/dist/cjs/init/utils/devScript.cjs.map +1 -0
  8. package/dist/cjs/init/utils/index.cjs +3 -0
  9. package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs +1 -1
  10. package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs.map +1 -1
  11. package/dist/cjs/loadDictionaries/loadMarkdownContentDeclaration.cjs +6 -5
  12. package/dist/cjs/loadDictionaries/loadMarkdownContentDeclaration.cjs.map +1 -1
  13. package/dist/cjs/syncPluginKit/createSyncPlugin.cjs +51 -3
  14. package/dist/cjs/syncPluginKit/createSyncPlugin.cjs.map +1 -1
  15. package/dist/cjs/utils/contentWatcherLock.cjs +173 -0
  16. package/dist/cjs/utils/contentWatcherLock.cjs.map +1 -0
  17. package/dist/cjs/utils/index.cjs +13 -1
  18. package/dist/cjs/utils/parseContentDeclarationFileName.cjs +35 -0
  19. package/dist/cjs/utils/parseContentDeclarationFileName.cjs.map +1 -0
  20. package/dist/cjs/utils/withFileLock.cjs +133 -0
  21. package/dist/cjs/utils/withFileLock.cjs.map +1 -0
  22. package/dist/cjs/watcher.cjs +7 -3
  23. package/dist/cjs/watcher.cjs.map +1 -1
  24. package/dist/esm/createDictionaryEntryPoint/generateDictionaryListContent.mjs +1 -2
  25. package/dist/esm/createDictionaryEntryPoint/generateDictionaryListContent.mjs.map +1 -1
  26. package/dist/esm/init/index.mjs +14 -11
  27. package/dist/esm/init/index.mjs.map +1 -1
  28. package/dist/esm/init/utils/devScript.mjs +55 -0
  29. package/dist/esm/init/utils/devScript.mjs.map +1 -0
  30. package/dist/esm/init/utils/index.mjs +2 -1
  31. package/dist/esm/loadDictionaries/loadContentDeclaration.mjs +1 -1
  32. package/dist/esm/loadDictionaries/loadContentDeclaration.mjs.map +1 -1
  33. package/dist/esm/loadDictionaries/loadMarkdownContentDeclaration.mjs +6 -5
  34. package/dist/esm/loadDictionaries/loadMarkdownContentDeclaration.mjs.map +1 -1
  35. package/dist/esm/syncPluginKit/createSyncPlugin.mjs +51 -3
  36. package/dist/esm/syncPluginKit/createSyncPlugin.mjs.map +1 -1
  37. package/dist/esm/utils/contentWatcherLock.mjs +164 -0
  38. package/dist/esm/utils/contentWatcherLock.mjs.map +1 -0
  39. package/dist/esm/utils/index.mjs +4 -1
  40. package/dist/esm/utils/parseContentDeclarationFileName.mjs +34 -0
  41. package/dist/esm/utils/parseContentDeclarationFileName.mjs.map +1 -0
  42. package/dist/esm/utils/withFileLock.mjs +132 -0
  43. package/dist/esm/utils/withFileLock.mjs.map +1 -0
  44. package/dist/esm/watcher.mjs +8 -4
  45. package/dist/esm/watcher.mjs.map +1 -1
  46. package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts +2 -3
  47. package/dist/types/buildIntlayerDictionary/buildIntlayerDictionary.d.ts.map +1 -1
  48. package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts +1 -2
  49. package/dist/types/buildIntlayerDictionary/processContentDeclaration.d.ts.map +1 -1
  50. package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts +10 -11
  51. package/dist/types/buildIntlayerDictionary/writeDynamicDictionary.d.ts.map +1 -1
  52. package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts +2 -3
  53. package/dist/types/buildIntlayerDictionary/writeFetchDictionary.d.ts.map +1 -1
  54. package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts +5 -6
  55. package/dist/types/buildIntlayerDictionary/writeMergedDictionary.d.ts.map +1 -1
  56. package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts +4 -5
  57. package/dist/types/buildIntlayerDictionary/writeNestedDictionary.d.ts.map +1 -1
  58. package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts +3 -4
  59. package/dist/types/buildIntlayerDictionary/writeRemoteDictionary.d.ts.map +1 -1
  60. package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts +4 -5
  61. package/dist/types/buildIntlayerDictionary/writeUnmergedDictionary.d.ts.map +1 -1
  62. package/dist/types/cleanOutputDir.d.ts +1 -2
  63. package/dist/types/cleanOutputDir.d.ts.map +1 -1
  64. package/dist/types/cleanRemovedContentDeclaration.d.ts +1 -2
  65. package/dist/types/cleanRemovedContentDeclaration.d.ts.map +1 -1
  66. package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts +2 -3
  67. package/dist/types/createDictionaryEntryPoint/createDictionaryEntryPoint.d.ts.map +1 -1
  68. package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts +1 -2
  69. package/dist/types/createDictionaryEntryPoint/generateDictionaryListContent.d.ts.map +1 -1
  70. package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts +1 -2
  71. package/dist/types/createDictionaryEntryPoint/getBuiltDictionariesPath.d.ts.map +1 -1
  72. package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts +1 -2
  73. package/dist/types/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.d.ts.map +1 -1
  74. package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts +1 -2
  75. package/dist/types/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.d.ts.map +1 -1
  76. package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts +1 -2
  77. package/dist/types/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.d.ts.map +1 -1
  78. package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts +1 -2
  79. package/dist/types/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.d.ts.map +1 -1
  80. package/dist/types/createType/createModuleAugmentation.d.ts +4 -5
  81. package/dist/types/createType/createModuleAugmentation.d.ts.map +1 -1
  82. package/dist/types/createType/createType.d.ts +2 -3
  83. package/dist/types/createType/createType.d.ts.map +1 -1
  84. package/dist/types/detectFormatCommand.d.ts +1 -2
  85. package/dist/types/detectFormatCommand.d.ts.map +1 -1
  86. package/dist/types/docReview/alignBlocks.d.ts +1 -2
  87. package/dist/types/docReview/alignBlocks.d.ts.map +1 -1
  88. package/dist/types/docReview/computeSimilarity.d.ts +2 -3
  89. package/dist/types/docReview/computeSimilarity.d.ts.map +1 -1
  90. package/dist/types/docReview/fingerprintBlock.d.ts +1 -2
  91. package/dist/types/docReview/fingerprintBlock.d.ts.map +1 -1
  92. package/dist/types/docReview/mapChangedLinesToBlocks.d.ts +1 -2
  93. package/dist/types/docReview/mapChangedLinesToBlocks.d.ts.map +1 -1
  94. package/dist/types/docReview/normalizeBlock.d.ts +1 -2
  95. package/dist/types/docReview/normalizeBlock.d.ts.map +1 -1
  96. package/dist/types/docReview/pipeline.d.ts +4 -4
  97. package/dist/types/docReview/pipeline.d.ts.map +1 -1
  98. package/dist/types/docReview/planActions.d.ts +1 -2
  99. package/dist/types/docReview/planActions.d.ts.map +1 -1
  100. package/dist/types/docReview/rebuildDocument.d.ts +5 -6
  101. package/dist/types/docReview/rebuildDocument.d.ts.map +1 -1
  102. package/dist/types/docReview/reviewReport.d.ts +8 -9
  103. package/dist/types/docReview/reviewReport.d.ts.map +1 -1
  104. package/dist/types/docReview/segmentDocument.d.ts +2 -3
  105. package/dist/types/docReview/segmentDocument.d.ts.map +1 -1
  106. package/dist/types/docReview/types.d.ts +9 -10
  107. package/dist/types/docReview/types.d.ts.map +1 -1
  108. package/dist/types/fetchDistantDictionaries.d.ts +1 -2
  109. package/dist/types/fetchDistantDictionaries.d.ts.map +1 -1
  110. package/dist/types/filterInvalidDictionaries.d.ts +2 -3
  111. package/dist/types/filterInvalidDictionaries.d.ts.map +1 -1
  112. package/dist/types/formatDictionary.d.ts +6 -8
  113. package/dist/types/formatDictionary.d.ts.map +1 -1
  114. package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts +1 -2
  115. package/dist/types/getContentDeclarationFileTemplate/getContentDeclarationFileTemplate.d.ts.map +1 -1
  116. package/dist/types/handleAdditionalContentDeclarationFile.d.ts +1 -2
  117. package/dist/types/handleAdditionalContentDeclarationFile.d.ts.map +1 -1
  118. package/dist/types/handleContentDeclarationFileChange.d.ts +1 -2
  119. package/dist/types/handleContentDeclarationFileChange.d.ts.map +1 -1
  120. package/dist/types/handleContentDeclarationFileMoved.d.ts +1 -2
  121. package/dist/types/handleContentDeclarationFileMoved.d.ts.map +1 -1
  122. package/dist/types/handleUnlinkedContentDeclarationFile.d.ts +1 -2
  123. package/dist/types/handleUnlinkedContentDeclarationFile.d.ts.map +1 -1
  124. package/dist/types/init/cms.d.ts +8 -9
  125. package/dist/types/init/cms.d.ts.map +1 -1
  126. package/dist/types/init/frameworkSetup/index.d.ts +2 -2
  127. package/dist/types/init/frameworkSetup/index.d.ts.map +1 -1
  128. package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts +4 -4
  129. package/dist/types/init/frameworkSetup/nextAppRouter/detect.d.ts.map +1 -1
  130. package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts +1 -2
  131. package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts.map +1 -1
  132. package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts +5 -6
  133. package/dist/types/init/frameworkSetup/nextAppRouter/restructure.d.ts.map +1 -1
  134. package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts +8 -9
  135. package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts.map +1 -1
  136. package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts +2 -3
  137. package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts.map +1 -1
  138. package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts +3 -4
  139. package/dist/types/init/frameworkSetup/tanstackStart/detect.d.ts.map +1 -1
  140. package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts +1 -2
  141. package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts.map +1 -1
  142. package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts +7 -8
  143. package/dist/types/init/frameworkSetup/tanstackStart/restructure.d.ts.map +1 -1
  144. package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts +3 -4
  145. package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts.map +1 -1
  146. package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts +2 -3
  147. package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts.map +1 -1
  148. package/dist/types/init/frameworkSetup/types.d.ts +2 -3
  149. package/dist/types/init/frameworkSetup/types.d.ts.map +1 -1
  150. package/dist/types/init/index.d.ts +4 -5
  151. package/dist/types/init/index.d.ts.map +1 -1
  152. package/dist/types/init/utils/astImports.d.ts +3 -4
  153. package/dist/types/init/utils/astImports.d.ts.map +1 -1
  154. package/dist/types/init/utils/configManipulation.d.ts +19 -20
  155. package/dist/types/init/utils/configManipulation.d.ts.map +1 -1
  156. package/dist/types/init/utils/devScript.d.ts +49 -0
  157. package/dist/types/init/utils/devScript.d.ts.map +1 -0
  158. package/dist/types/init/utils/fileSystem.d.ts +11 -12
  159. package/dist/types/init/utils/fileSystem.d.ts.map +1 -1
  160. package/dist/types/init/utils/githubActions.d.ts +7 -8
  161. package/dist/types/init/utils/githubActions.d.ts.map +1 -1
  162. package/dist/types/init/utils/index.d.ts +2 -1
  163. package/dist/types/init/utils/jsonParser.d.ts +1 -2
  164. package/dist/types/init/utils/jsonParser.d.ts.map +1 -1
  165. package/dist/types/init/utils/nextCompilerBabel.d.ts +2 -3
  166. package/dist/types/init/utils/nextCompilerBabel.d.ts.map +1 -1
  167. package/dist/types/init/utils/packageManager.d.ts +17 -18
  168. package/dist/types/init/utils/packageManager.d.ts.map +1 -1
  169. package/dist/types/init/utils/tsConfig.d.ts +1 -2
  170. package/dist/types/init/utils/tsConfig.d.ts.map +1 -1
  171. package/dist/types/init/utils/version.d.ts +1 -2
  172. package/dist/types/init/utils/version.d.ts.map +1 -1
  173. package/dist/types/initConfig/index.d.ts +2 -3
  174. package/dist/types/initConfig/index.d.ts.map +1 -1
  175. package/dist/types/installLSP.d.ts +1 -2
  176. package/dist/types/installLSP.d.ts.map +1 -1
  177. package/dist/types/installMCP/installMCP.d.ts +2 -3
  178. package/dist/types/installMCP/installMCP.d.ts.map +1 -1
  179. package/dist/types/installSkills/index.d.ts +9 -10
  180. package/dist/types/installSkills/index.d.ts.map +1 -1
  181. package/dist/types/listDictionariesPath.d.ts +2 -3
  182. package/dist/types/listDictionariesPath.d.ts.map +1 -1
  183. package/dist/types/listGitFiles.d.ts +5 -6
  184. package/dist/types/listGitFiles.d.ts.map +1 -1
  185. package/dist/types/listProjects.d.ts +3 -4
  186. package/dist/types/listProjects.d.ts.map +1 -1
  187. package/dist/types/loadDictionaries/getIntlayerBundle.d.ts +1 -2
  188. package/dist/types/loadDictionaries/getIntlayerBundle.d.ts.map +1 -1
  189. package/dist/types/loadDictionaries/loadContentDeclaration.d.ts +4 -5
  190. package/dist/types/loadDictionaries/loadContentDeclaration.d.ts.map +1 -1
  191. package/dist/types/loadDictionaries/loadDictionaries.d.ts +2 -3
  192. package/dist/types/loadDictionaries/loadDictionaries.d.ts.map +1 -1
  193. package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts +1 -2
  194. package/dist/types/loadDictionaries/loadLocalDictionaries.d.ts.map +1 -1
  195. package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts +2 -2
  196. package/dist/types/loadDictionaries/loadMarkdownContentDeclaration.d.ts.map +1 -1
  197. package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts +2 -3
  198. package/dist/types/loadDictionaries/loadRemoteDictionaries.d.ts.map +1 -1
  199. package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts +1 -2
  200. package/dist/types/loadDictionaries/loadYamlContentDeclaration.d.ts.map +1 -1
  201. package/dist/types/loadDictionaries/log.d.ts +1 -2
  202. package/dist/types/loadDictionaries/log.d.ts.map +1 -1
  203. package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts +1 -2
  204. package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts.map +1 -1
  205. package/dist/types/logConfigDetails.d.ts +1 -2
  206. package/dist/types/logConfigDetails.d.ts.map +1 -1
  207. package/dist/types/prepareIntlayer.d.ts +1 -2
  208. package/dist/types/prepareIntlayer.d.ts.map +1 -1
  209. package/dist/types/reduceDictionaryContent/applyMask.d.ts +1 -2
  210. package/dist/types/reduceDictionaryContent/applyMask.d.ts.map +1 -1
  211. package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts +1 -2
  212. package/dist/types/reduceDictionaryContent/reduceDictionaryContent.d.ts.map +1 -1
  213. package/dist/types/scan/analyzeBundleContent.d.ts +1 -2
  214. package/dist/types/scan/analyzeBundleContent.d.ts.map +1 -1
  215. package/dist/types/scan/calculateScore.d.ts +6 -7
  216. package/dist/types/scan/calculateScore.d.ts.map +1 -1
  217. package/dist/types/scan/checks.d.ts +8 -9
  218. package/dist/types/scan/checks.d.ts.map +1 -1
  219. package/dist/types/scan/parseHtml.d.ts +13 -14
  220. package/dist/types/scan/parseHtml.d.ts.map +1 -1
  221. package/dist/types/scan/scanWebsite.d.ts +1 -2
  222. package/dist/types/scan/scanWebsite.d.ts.map +1 -1
  223. package/dist/types/scan/types.d.ts +9 -10
  224. package/dist/types/scan/types.d.ts.map +1 -1
  225. package/dist/types/syncPluginKit/createFileAdapter.d.ts +4 -5
  226. package/dist/types/syncPluginKit/createFileAdapter.d.ts.map +1 -1
  227. package/dist/types/syncPluginKit/createSyncPlugin.d.ts +1 -2
  228. package/dist/types/syncPluginKit/createSyncPlugin.d.ts.map +1 -1
  229. package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts +1 -2
  230. package/dist/types/syncPluginKit/extractKeyAndLocaleFromPath.d.ts.map +1 -1
  231. package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts +1 -2
  232. package/dist/types/syncPluginKit/filePathPatternHelpers.d.ts.map +1 -1
  233. package/dist/types/syncPluginKit/index.d.ts +2 -2
  234. package/dist/types/syncPluginKit/types.d.ts +28 -15
  235. package/dist/types/syncPluginKit/types.d.ts.map +1 -1
  236. package/dist/types/utils/autoDecorateContent.d.ts +1 -2
  237. package/dist/types/utils/autoDecorateContent.d.ts.map +1 -1
  238. package/dist/types/utils/babelParser.d.ts +3 -3
  239. package/dist/types/utils/babelParser.d.ts.map +1 -1
  240. package/dist/types/utils/buildComponentFilesList.d.ts +1 -2
  241. package/dist/types/utils/buildComponentFilesList.d.ts.map +1 -1
  242. package/dist/types/utils/buildFilesList.d.ts +3 -4
  243. package/dist/types/utils/buildFilesList.d.ts.map +1 -1
  244. package/dist/types/utils/chunkArray.d.ts +1 -2
  245. package/dist/types/utils/chunkArray.d.ts.map +1 -1
  246. package/dist/types/utils/chunkJSON.d.ts +5 -6
  247. package/dist/types/utils/chunkJSON.d.ts.map +1 -1
  248. package/dist/types/utils/contentWatcherLock.d.ts +113 -0
  249. package/dist/types/utils/contentWatcherLock.d.ts.map +1 -0
  250. package/dist/types/utils/formatter.d.ts +2 -3
  251. package/dist/types/utils/formatter.d.ts.map +1 -1
  252. package/dist/types/utils/getChunk.d.ts +1 -2
  253. package/dist/types/utils/getChunk.d.ts.map +1 -1
  254. package/dist/types/utils/getContentExtension.d.ts +1 -2
  255. package/dist/types/utils/getContentExtension.d.ts.map +1 -1
  256. package/dist/types/utils/getFormatFromExtension.d.ts +4 -5
  257. package/dist/types/utils/getFormatFromExtension.d.ts.map +1 -1
  258. package/dist/types/utils/getPathHash.d.ts +1 -2
  259. package/dist/types/utils/getPathHash.d.ts.map +1 -1
  260. package/dist/types/utils/index.d.ts +4 -1
  261. package/dist/types/utils/mergeChunks.d.ts +1 -2
  262. package/dist/types/utils/mergeChunks.d.ts.map +1 -1
  263. package/dist/types/utils/pLimit.d.ts +2 -3
  264. package/dist/types/utils/pLimit.d.ts.map +1 -1
  265. package/dist/types/utils/parallelize.d.ts +1 -2
  266. package/dist/types/utils/parallelize.d.ts.map +1 -1
  267. package/dist/types/utils/parallelizeGlobal.d.ts +3 -4
  268. package/dist/types/utils/parallelizeGlobal.d.ts.map +1 -1
  269. package/dist/types/utils/parseContentDeclarationFileName.d.ts +23 -0
  270. package/dist/types/utils/parseContentDeclarationFileName.d.ts.map +1 -0
  271. package/dist/types/utils/readDictionariesFromDisk.d.ts +1 -2
  272. package/dist/types/utils/readDictionariesFromDisk.d.ts.map +1 -1
  273. package/dist/types/utils/reduceObjectFormat.d.ts +4 -5
  274. package/dist/types/utils/reduceObjectFormat.d.ts.map +1 -1
  275. package/dist/types/utils/resolveObjectPromises.d.ts +1 -2
  276. package/dist/types/utils/resolveObjectPromises.d.ts.map +1 -1
  277. package/dist/types/utils/resolveRelativePath.d.ts +1 -2
  278. package/dist/types/utils/resolveRelativePath.d.ts.map +1 -1
  279. package/dist/types/utils/runOnce.d.ts +2 -3
  280. package/dist/types/utils/runOnce.d.ts.map +1 -1
  281. package/dist/types/utils/runParallel/bin.d.ts +1 -2
  282. package/dist/types/utils/runParallel/bin.d.ts.map +1 -1
  283. package/dist/types/utils/runParallel/bootstrap.d.ts +1 -2
  284. package/dist/types/utils/runParallel/bootstrap.d.ts.map +1 -1
  285. package/dist/types/utils/runParallel/index.d.ts +2 -3
  286. package/dist/types/utils/runParallel/index.d.ts.map +1 -1
  287. package/dist/types/utils/runParallel/pidTree.d.ts +1 -2
  288. package/dist/types/utils/runParallel/pidTree.d.ts.map +1 -1
  289. package/dist/types/utils/runParallel/ps.d.ts +1 -2
  290. package/dist/types/utils/runParallel/ps.d.ts.map +1 -1
  291. package/dist/types/utils/runParallel/runTask.d.ts +1 -2
  292. package/dist/types/utils/runParallel/runTask.d.ts.map +1 -1
  293. package/dist/types/utils/runParallel/spawnPosix.d.ts +1 -2
  294. package/dist/types/utils/runParallel/spawnPosix.d.ts.map +1 -1
  295. package/dist/types/utils/runParallel/spawnWin32.d.ts +1 -2
  296. package/dist/types/utils/runParallel/spawnWin32.d.ts.map +1 -1
  297. package/dist/types/utils/runParallel/wmic.d.ts +1 -2
  298. package/dist/types/utils/runParallel/wmic.d.ts.map +1 -1
  299. package/dist/types/utils/sortAlphabetically.d.ts +1 -2
  300. package/dist/types/utils/sortAlphabetically.d.ts.map +1 -1
  301. package/dist/types/utils/splitTextByLine.d.ts +1 -2
  302. package/dist/types/utils/splitTextByLine.d.ts.map +1 -1
  303. package/dist/types/utils/verifyIdenticObjectFormat.d.ts +1 -2
  304. package/dist/types/utils/verifyIdenticObjectFormat.d.ts.map +1 -1
  305. package/dist/types/utils/withFileLock.d.ts +44 -0
  306. package/dist/types/utils/withFileLock.d.ts.map +1 -0
  307. package/dist/types/watcher.d.ts +2 -3
  308. package/dist/types/watcher.d.ts.map +1 -1
  309. package/dist/types/writeConfiguration/generateConfigurationContent.d.ts +1 -2
  310. package/dist/types/writeConfiguration/generateConfigurationContent.d.ts.map +1 -1
  311. package/dist/types/writeConfiguration/index.d.ts +2 -3
  312. package/dist/types/writeConfiguration/index.d.ts.map +1 -1
  313. package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts +1 -2
  314. package/dist/types/writeContentDeclaration/detectExportedComponentName.d.ts.map +1 -1
  315. package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts +1 -2
  316. package/dist/types/writeContentDeclaration/dictionaryStatus.d.ts.map +1 -1
  317. package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts +1 -2
  318. package/dist/types/writeContentDeclaration/processContentDeclarationContent.d.ts.map +1 -1
  319. package/dist/types/writeContentDeclaration/transformJSFile.d.ts +1 -2
  320. package/dist/types/writeContentDeclaration/transformJSFile.d.ts.map +1 -1
  321. package/dist/types/writeContentDeclaration/transformJSONFile.d.ts +1 -2
  322. package/dist/types/writeContentDeclaration/transformJSONFile.d.ts.map +1 -1
  323. package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts +1 -2
  324. package/dist/types/writeContentDeclaration/writeContentDeclaration.d.ts.map +1 -1
  325. package/dist/types/writeContentDeclaration/writeJSFile.d.ts +1 -2
  326. package/dist/types/writeContentDeclaration/writeJSFile.d.ts.map +1 -1
  327. package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts +1 -2
  328. package/dist/types/writeContentDeclaration/writeMarkdownFile.d.ts.map +1 -1
  329. package/dist/types/writeContentDeclaration/writeYamlFile.d.ts +1 -2
  330. package/dist/types/writeContentDeclaration/writeYamlFile.d.ts.map +1 -1
  331. package/dist/types/writeFileIfChanged.d.ts +2 -3
  332. package/dist/types/writeFileIfChanged.d.ts.map +1 -1
  333. package/dist/types/writeJsonIfChanged.d.ts +1 -2
  334. package/dist/types/writeJsonIfChanged.d.ts.map +1 -1
  335. package/package.json +12 -12
  336. package/dist/types/intlayer/dist/types/index.d.ts +0 -14
@@ -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":";;;;KAYY,cAAc;;;;;;;;cA0Fb,+BAA4B,iBACxB,mBACE,MACX;;;;;;;;;cA0CK,kCAA+B,iBAC3B,mBACE;;;;;;;;;cA0CN,6BAA0B;;;;;;;;cA+Q1B,wBAAqB;cAIrB,mBAAgB,iBACZ;cAoBJ,oBAAiB,iBACb;cAoBJ,mBAAgB,iBACZ;;;;;;;;;;;;;cA2EJ,oBAAiB,iBACb;;;;;;;cA2EJ,yBAAsB;cAgBtB,mBAAgB;;;;;cA6DhB,6BAA0B,iBACtB;;;;;;cA8BJ,kCAA+B,iBAC3B,mBACE,cACH;;;;;;;;;;cAiCH,sCAAmC,iBAC/B,oBACG,2BACO;;;;;cAqGd,mCAAgC,iBAC5B;;;;;cAcJ,gCAA6B;;;;;cA+D7B,iCAA8B,iBAC1B;;;;;;;cAgBJ,8BAA2B,iBACvB;;;;;;cAgQJ,qCAAkC,iBAC9B,mBACE,YACL"}
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"}
@@ -0,0 +1,49 @@
1
+ //#region src/init/utils/devScript.d.ts
2
+ /**
3
+ * Frameworks with no Intlayer bundler plugin to host the content watcher.
4
+ *
5
+ * Their dev server is a plain Node process, so the only way to rebuild
6
+ * `.intlayer` on a content change is to run the watcher next to it.
7
+ */
8
+ export declare const BACKEND_INTLAYER_PACKAGES: string[];
9
+ export type ResolveDevScriptParams = {
10
+ /** The project's current `dev` script, if it has one. */
11
+ devScript?: string;
12
+ /** Combined prod + dev dependencies of the project. */
13
+ allDeps: Record<string, string>;
14
+ /** Whether a `next.config.*` file was found in the project. */
15
+ isNextJsProject: boolean;
16
+ };
17
+ /**
18
+ * Resolves the `dev` script `intlayer init` should write, or `null` when the
19
+ * project's script must be left alone.
20
+ *
21
+ * A Next.js app is always left alone: `withIntlayer` starts the content watcher
22
+ * itself — through `IntlayerPlugin` on webpack and `startContentWatcher` on
23
+ * Turbopack — so wrapping the dev server in `intlayer watch --with` would only
24
+ * add a second watcher rebuilding the same dictionaries. This is checked on the
25
+ * `next` dependency as well as on the config file, since `next.config.*` is
26
+ * optional, and it takes precedence over the backend list, which a Next.js app
27
+ * with a custom server (or a monorepo root) can match too.
28
+ *
29
+ * @example a backend project gets its dev server wrapped
30
+ * ```ts
31
+ * resolveDevScript({
32
+ * devScript: 'node ./src/index.ts',
33
+ * allDeps: { 'express-intlayer': '9.0.0' },
34
+ * isNextJsProject: false,
35
+ * }); // → "intlayer watch --with 'node ./src/index.ts'"
36
+ * ```
37
+ *
38
+ * @example a Next.js project keeps its own script
39
+ * ```ts
40
+ * resolveDevScript({
41
+ * devScript: 'next dev',
42
+ * allDeps: { next: '16.0.0' },
43
+ * isNextJsProject: true,
44
+ * }); // → null
45
+ * ```
46
+ */
47
+ export declare const resolveDevScript: ({ devScript, allDeps, isNextJsProject }: ResolveDevScriptParams) => string | null;
48
+ //#endregion
49
+ //# sourceMappingURL=devScript.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"devScript.d.ts","names":[],"sources":["../../../../src/init/utils/devScript.ts"],"mappings":";;;;;;;qBAMa;YAQD;;EAEV;;EAEA,SAAS;;EAET;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAiCW,qBAAgB,WAAA,SAAA,mBAI1B"}
@@ -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":";;;;cASa,SAAM,iBAAyB,qBAAkB;;;;cAYjD,mBAAgB,iBAAyB,qBAAkB;;;;cAM3D,kBAAe,iBACX,kBACC,oBACD;;;;cAMJ,kBAAe,iBAAyB,oBAAiB;;;;;;KAa1D;;;;;;KAOA;EACV,MAAM;;;;;;EAMN;;;;EAIA;;;;;;;;;;;cA4CW,0BAAuB,oBAEjC,QAAQ;;;;;KA8EC;;EAEV;;;;;;;;EAQA;;EAEA;;;;;;;;;;;;;cAcW,6BAA0B,oBAEpC,QAAQ;;;;;KA4DC;;EAEV,MAAM;;;;;EAKN;;;;;;;;;;;;;;;;;;cAiCW,gCAA6B,oBAEvC,QAAQ"}
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":";;;KAMY;;EAEV;;EAEA;;;KAIU;;;;;;;;;EASV;;;;;;;EAOA;;;;;;KAOU;;;;;;EAMV;;EAEA,gBAAgB;;EAEhB,SAAS;;;;;;;;;;;;;;;;;;;;cAyCE,gCAA6B,iBACzB,uBACQ,mBACtB,QAAQ;;cA4SE;cACA;;;;;;;cAQA,qBAAkB,gBACb,gBAAc,UACrB,2BACR"}
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"}
@@ -1,10 +1,11 @@
1
1
  import { COMPAT_I18N_LIBRARIES, CompatI18nLibrary, CompatSyncConfig, CompatVitePluginConfig, DetectMissingPackagesOptions, IntlayerPackageAnalysis, PackageManager, detectCompatI18nLibraries, detectMissingIntlayerPackages, detectOutdatedIntlayerPackages, detectPackageManager, getInstalledPackageVersion, hasLintTooling, installPackages, isIntlayerPackageName, normalizeVersion, upgradePackages } from "./packageManager.js";
2
2
  import { RoutingMode, enableIntlayerEditorConfig, getMetroConfigTemplate, hasIntlayerVitePlugin, replaceViteConfigPluginImportSource, setIntlayerConfigCompilerOutput, setIntlayerConfigRoutingMode, updateAstroConfig, updateIntlayerConfigWithSyncPlugin, updateMetroConfig, updateNextConfig, updateNextConfigForNextI18next, updateNextConfigForNextIntl, updateNextConfigForNextTranslate, updateNuxtConfig, updateNuxtConfigForNuxtjsI18n, updateViteConfig, updateViteConfigForCompatPlugin, updateViteConfigForVueI18n } from "./configManipulation.js";
3
3
  import { ensureNamedImport, firstInsertIndex, isModuleScopeBinding } from "./astImports.js";
4
+ import { BACKEND_INTLAYER_PACKAGES, ResolveDevScriptParams, resolveDevScript } from "./devScript.js";
4
5
  import { JsonLocalePattern, JsonLocalePatternType, LinguiCatalogPattern, NextIntlMessagesPattern, detectJsonLocalePattern, detectLinguiCatalogPattern, detectNextIntlMessagesPattern, ensureDirectory, exists, readFileFromRoot, writeFileToRoot } from "./fileSystem.js";
5
6
  import { GITHUB_FILL_WORKFLOW_PATH, GITHUB_TEST_WORKFLOW_PATH, GithubWorkflowFile, GithubWorkflowsContext, GithubWorkflowsOptions, getGithubWorkflows, resolveGithubWorkflowsContext } from "./githubActions.js";
6
7
  import { parseJSONWithComments } from "./jsonParser.js";
7
8
  import { NEXT_INTLAYER_BABEL_CONFIG_CONTENT, setupNextCompilerBabelConfig } from "./nextCompilerBabel.js";
8
9
  import { findTsConfigFiles } from "./tsConfig.js";
9
10
  import { isVersionAtLeast } from "./version.js";
10
- export { COMPAT_I18N_LIBRARIES, CompatI18nLibrary, CompatSyncConfig, CompatVitePluginConfig, DetectMissingPackagesOptions, GITHUB_FILL_WORKFLOW_PATH, GITHUB_TEST_WORKFLOW_PATH, GithubWorkflowFile, GithubWorkflowsContext, GithubWorkflowsOptions, IntlayerPackageAnalysis, JsonLocalePattern, JsonLocalePatternType, LinguiCatalogPattern, NEXT_INTLAYER_BABEL_CONFIG_CONTENT, NextIntlMessagesPattern, PackageManager, RoutingMode, detectCompatI18nLibraries, detectJsonLocalePattern, detectLinguiCatalogPattern, detectMissingIntlayerPackages, detectNextIntlMessagesPattern, detectOutdatedIntlayerPackages, detectPackageManager, enableIntlayerEditorConfig, ensureDirectory, ensureNamedImport, exists, findTsConfigFiles, firstInsertIndex, getGithubWorkflows, getInstalledPackageVersion, getMetroConfigTemplate, hasIntlayerVitePlugin, hasLintTooling, installPackages, isIntlayerPackageName, isModuleScopeBinding, isVersionAtLeast, normalizeVersion, parseJSONWithComments, readFileFromRoot, replaceViteConfigPluginImportSource, resolveGithubWorkflowsContext, setIntlayerConfigCompilerOutput, setIntlayerConfigRoutingMode, setupNextCompilerBabelConfig, updateAstroConfig, updateIntlayerConfigWithSyncPlugin, updateMetroConfig, updateNextConfig, updateNextConfigForNextI18next, updateNextConfigForNextIntl, updateNextConfigForNextTranslate, updateNuxtConfig, updateNuxtConfigForNuxtjsI18n, updateViteConfig, updateViteConfigForCompatPlugin, updateViteConfigForVueI18n, upgradePackages, writeFileToRoot };
11
+ export { BACKEND_INTLAYER_PACKAGES, COMPAT_I18N_LIBRARIES, CompatI18nLibrary, CompatSyncConfig, CompatVitePluginConfig, DetectMissingPackagesOptions, GITHUB_FILL_WORKFLOW_PATH, GITHUB_TEST_WORKFLOW_PATH, GithubWorkflowFile, GithubWorkflowsContext, GithubWorkflowsOptions, IntlayerPackageAnalysis, JsonLocalePattern, JsonLocalePatternType, LinguiCatalogPattern, NEXT_INTLAYER_BABEL_CONFIG_CONTENT, NextIntlMessagesPattern, PackageManager, ResolveDevScriptParams, RoutingMode, detectCompatI18nLibraries, detectJsonLocalePattern, detectLinguiCatalogPattern, detectMissingIntlayerPackages, detectNextIntlMessagesPattern, detectOutdatedIntlayerPackages, detectPackageManager, enableIntlayerEditorConfig, ensureDirectory, ensureNamedImport, exists, findTsConfigFiles, firstInsertIndex, getGithubWorkflows, getInstalledPackageVersion, getMetroConfigTemplate, hasIntlayerVitePlugin, hasLintTooling, installPackages, isIntlayerPackageName, isModuleScopeBinding, isVersionAtLeast, normalizeVersion, parseJSONWithComments, readFileFromRoot, replaceViteConfigPluginImportSource, resolveDevScript, resolveGithubWorkflowsContext, setIntlayerConfigCompilerOutput, setIntlayerConfigRoutingMode, setupNextCompilerBabelConfig, updateAstroConfig, updateIntlayerConfigWithSyncPlugin, updateMetroConfig, updateNextConfig, updateNextConfigForNextI18next, updateNextConfigForNextIntl, updateNextConfigForNextTranslate, updateNuxtConfig, updateNuxtConfigForNuxtjsI18n, updateViteConfig, updateViteConfigForCompatPlugin, updateViteConfigForVueI18n, upgradePackages, writeFileToRoot };
@@ -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":";;;;cAGa,wBAAqB"}
1
+ {"version":3,"file":"jsonParser.d.ts","names":[],"sources":["../../../../src/init/utils/jsonParser.ts"],"mappings":";;;;qBAGa,wBAAqB"}
@@ -9,7 +9,7 @@ import { PackageManager } from "./packageManager.js";
9
9
  * on). `presets: ["next/babel"]` is required so Babel keeps compiling JSX/TS
10
10
  * the way Next.js does; without it the build breaks.
11
11
  */
12
- declare const NEXT_INTLAYER_BABEL_CONFIG_CONTENT = "const {\n intlayerExtractBabelPlugin,\n intlayerPurgeBabelPlugin,\n intlayerMinifyBabelPlugin,\n intlayerOptimizeBabelPlugin,\n getExtractPluginOptions,\n getPurgePluginOptions,\n getMinifyPluginOptions,\n getOptimizePluginOptions,\n} = require(\"@intlayer/babel\");\n\nmodule.exports = {\n presets: [\"next/babel\"],\n plugins: [\n // Extract: compile .content.ts files → .intlayer/**/*.json\n [intlayerExtractBabelPlugin, getExtractPluginOptions()],\n\n // Purge: remove unused fields from .intlayer/**/*.json\n // (reads intlayer.config.ts build.purge flag)\n [intlayerPurgeBabelPlugin, getPurgePluginOptions()],\n\n // Minify: rename field keys in JSON + source code\n // (reads intlayer.config.ts build.minify flag)\n [intlayerMinifyBabelPlugin, getMinifyPluginOptions()],\n\n // Optimize: rewrite useIntlayer('key') → useDictionary(hash)\n // Must come last because it erases the dictionary key.\n [intlayerOptimizeBabelPlugin, getOptimizePluginOptions()],\n ],\n};\n";
12
+ export declare const NEXT_INTLAYER_BABEL_CONFIG_CONTENT = "const {\n intlayerExtractBabelPlugin,\n intlayerPurgeBabelPlugin,\n intlayerMinifyBabelPlugin,\n intlayerOptimizeBabelPlugin,\n getExtractPluginOptions,\n getPurgePluginOptions,\n getMinifyPluginOptions,\n getOptimizePluginOptions,\n} = require(\"@intlayer/babel\");\n\nmodule.exports = {\n presets: [\"next/babel\"],\n plugins: [\n // Extract: compile .content.ts files → .intlayer/**/*.json\n [intlayerExtractBabelPlugin, getExtractPluginOptions()],\n\n // Purge: remove unused fields from .intlayer/**/*.json\n // (reads intlayer.config.ts build.purge flag)\n [intlayerPurgeBabelPlugin, getPurgePluginOptions()],\n\n // Minify: rename field keys in JSON + source code\n // (reads intlayer.config.ts build.minify flag)\n [intlayerMinifyBabelPlugin, getMinifyPluginOptions()],\n\n // Optimize: rewrite useIntlayer('key') → useDictionary(hash)\n // Must come last because it erases the dictionary key.\n [intlayerOptimizeBabelPlugin, getOptimizePluginOptions()],\n ],\n};\n";
13
13
  /**
14
14
  * Wires the Intlayer compiler + build-optimization Babel plugins into a Next.js
15
15
  * project that already uses Babel.
@@ -36,12 +36,11 @@ declare const NEXT_INTLAYER_BABEL_CONFIG_CONTENT = "const {\n intlayerExtractBa
36
36
  * @param allDeps - Combined prod + dev dependencies, used to skip a redundant install.
37
37
  * @param skipInstall - When `true`, dependency installation is skipped.
38
38
  */
39
- declare const setupNextCompilerBabelConfig: ({ rootDir, packageManager, allDeps, skipInstall }: {
39
+ export declare const setupNextCompilerBabelConfig: ({ rootDir, packageManager, allDeps, skipInstall }: {
40
40
  rootDir: string;
41
41
  packageManager: PackageManager;
42
42
  allDeps: Record<string, string>;
43
43
  skipInstall: boolean;
44
44
  }) => Promise<void>;
45
45
  //#endregion
46
- export { NEXT_INTLAYER_BABEL_CONFIG_CONTENT, setupNextCompilerBabelConfig };
47
46
  //# sourceMappingURL=nextCompilerBabel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nextCompilerBabel.d.ts","names":[],"sources":["../../../../src/init/utils/nextCompilerBabel.ts"],"mappings":";;;;;;;;;;;cAca;;;;;;;;;;;;;;;;;;;;;;;;;;;cAwFA,iCAA4B,SAAA,gBAAA,SAAA;EAMvC;EACA,gBAAgB;EAChB,SAAS;EACT;MACE"}
1
+ {"version":3,"file":"nextCompilerBabel.d.ts","names":[],"sources":["../../../../src/init/utils/nextCompilerBabel.ts"],"mappings":";;;;;;;;;;;qBAca;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAwFA,iCAA4B,SAAA,gBAAA,SAAA;EAMvC;EACA,gBAAgB;EAChB,SAAS;EACT;MACE"}
@@ -1,11 +1,11 @@
1
1
  //#region src/init/utils/packageManager.d.ts
2
2
  /** Package managers supported for dependency installation. */
3
- type PackageManager = 'bun' | 'pnpm' | 'yarn' | 'npm';
3
+ export type PackageManager = 'bun' | 'pnpm' | 'yarn' | 'npm';
4
4
  /**
5
5
  * Configuration for the syncJSON plugin injected into intlayer.config
6
6
  * when a compat i18n library is detected.
7
7
  */
8
- type CompatSyncConfig = {
8
+ export type CompatSyncConfig = {
9
9
  /**
10
10
  * Which sync plugin ingests the catalogs:
11
11
  * - `'json'` → `syncJSON` from `@intlayer/sync-json-plugin` (default).
@@ -44,7 +44,7 @@ type CompatSyncConfig = {
44
44
  * The plugin replaces the generic `intlayer` plugin for libraries that
45
45
  * require alias injection (e.g. `vue-i18n` → `@intlayer/vue-i18n`).
46
46
  */
47
- type CompatVitePluginConfig = {
47
+ export type CompatVitePluginConfig = {
48
48
  /** Exported function name from the plugin package, e.g. `'vueI18nVitePlugin'`. */
49
49
  pluginFunctionName: string;
50
50
  /** Import path for the plugin package, e.g. `'@intlayer/vue-i18n/plugin'`. */
@@ -64,7 +64,7 @@ type CompatVitePluginConfig = {
64
64
  };
65
65
  };
66
66
  /** Result of analyzing project dependencies for intlayer package gaps. */
67
- type IntlayerPackageAnalysis = {
67
+ export type IntlayerPackageAnalysis = {
68
68
  /** Intlayer packages that are referenced but not yet installed. */
69
69
  packagesToInstall: string[];
70
70
  /** Intlayer dev packages that are referenced but not yet installed. */
@@ -86,14 +86,14 @@ type IntlayerPackageAnalysis = {
86
86
  * Detects the package manager in use by checking for lock files in the
87
87
  * project root. Falls back to npm when no lock file is found.
88
88
  */
89
- declare const detectPackageManager: (rootDir: string) => PackageManager;
89
+ export declare const detectPackageManager: (rootDir: string) => PackageManager;
90
90
  /**
91
91
  * Analyzes existing project dependencies to determine which intlayer packages
92
92
  * are missing and what syncJSON configuration to inject when compat i18n
93
93
  * libraries are present.
94
94
  */
95
95
  /** Extra signals (from a filesystem scan) that refine compat detection. */
96
- type DetectMissingPackagesOptions = {
96
+ export type DetectMissingPackagesOptions = {
97
97
  /**
98
98
  * Catalog format detected for a lingui project (`'po'` or `'json'`), or
99
99
  * `null`/undefined when none was found. Decides which sync plugin + dev
@@ -102,7 +102,7 @@ type DetectMissingPackagesOptions = {
102
102
  linguiCatalogFormat?: 'po' | 'json' | null;
103
103
  };
104
104
  /** An existing i18n library Intlayer ships a compat adapter for. */
105
- type CompatI18nLibrary = {
105
+ export type CompatI18nLibrary = {
106
106
  /** Human-readable name, used to report the detection back to the user. */
107
107
  label: string;
108
108
  /**
@@ -118,7 +118,7 @@ type CompatI18nLibrary = {
118
118
  * {@link detectMissingIntlayerPackages}: a library listed here is one that
119
119
  * detection will wire up on its own once its package is in `package.json`.
120
120
  */
121
- declare const COMPAT_I18N_LIBRARIES: readonly CompatI18nLibrary[];
121
+ export declare const COMPAT_I18N_LIBRARIES: readonly CompatI18nLibrary[];
122
122
  /**
123
123
  * Returns the labels of the compat i18n libraries present in `dependencies`.
124
124
  *
@@ -128,7 +128,7 @@ declare const COMPAT_I18N_LIBRARIES: readonly CompatI18nLibrary[];
128
128
  *
129
129
  * @param dependencies - Merged dependencies of the target project.
130
130
  */
131
- declare const detectCompatI18nLibraries: (dependencies: Record<string, string>) => string[];
131
+ export declare const detectCompatI18nLibraries: (dependencies: Record<string, string>) => string[];
132
132
  /**
133
133
  * True when the project already lints, and so has something to plug the
134
134
  * Intlayer lint rules into.
@@ -140,13 +140,13 @@ declare const detectCompatI18nLibraries: (dependencies: Record<string, string>)
140
140
  *
141
141
  * @param dependencies - Merged dependencies of the target project.
142
142
  */
143
- declare const hasLintTooling: (dependencies: Record<string, string>) => boolean;
144
- declare const detectMissingIntlayerPackages: (allDependencies: Record<string, string>, options?: DetectMissingPackagesOptions) => IntlayerPackageAnalysis;
143
+ export declare const hasLintTooling: (dependencies: Record<string, string>) => boolean;
144
+ export declare const detectMissingIntlayerPackages: (allDependencies: Record<string, string>, options?: DetectMissingPackagesOptions) => IntlayerPackageAnalysis;
145
145
  /**
146
146
  * Runs the package install command synchronously.
147
147
  * Throws if the install process exits with a non-zero code.
148
148
  */
149
- declare const installPackages: (rootDir: string, packages: string[], packageManager: PackageManager, isDev?: boolean) => void;
149
+ export declare const installPackages: (rootDir: string, packages: string[], packageManager: PackageManager, isDev?: boolean) => void;
150
150
  /**
151
151
  * Determines whether a dependency name belongs to the Intlayer ecosystem.
152
152
  *
@@ -155,7 +155,7 @@ declare const installPackages: (rootDir: string, packages: string[], packageMana
155
155
  * runtime integrations that follow the `<framework>-intlayer` convention
156
156
  * (e.g. `next-intlayer`, `react-intlayer`, `express-intlayer`).
157
157
  */
158
- declare const isIntlayerPackageName: (packageName: string) => boolean;
158
+ export declare const isIntlayerPackageName: (packageName: string) => boolean;
159
159
  /**
160
160
  * Reduces a semver range or full version to its `major.minor.patch` core,
161
161
  * stripping range prefixes (`^`, `~`), pre-release identifiers and build
@@ -163,26 +163,25 @@ declare const isIntlayerPackageName: (packageName: string) => boolean;
163
163
  *
164
164
  * @example normalizeVersion('^9.0.0-canary.3') // '9.0.0'
165
165
  */
166
- declare const normalizeVersion: (version?: string) => string | null;
166
+ export declare const normalizeVersion: (version?: string) => string | null;
167
167
  /**
168
168
  * Reads the installed version of a package from its `package.json` inside the
169
169
  * project's `node_modules`. Returns `null` when the package is not installed or
170
170
  * its manifest cannot be read.
171
171
  */
172
- declare const getInstalledPackageVersion: (rootDir: string, packageName: string) => string | null;
172
+ export declare const getInstalledPackageVersion: (rootDir: string, packageName: string) => string | null;
173
173
  /**
174
174
  * Returns the Intlayer packages from `dependencies` whose installed version is
175
175
  * behind `targetVersion` (compared on `major.minor.patch`). Packages that are
176
176
  * not installed yet are ignored — those are handled by
177
177
  * {@link detectMissingIntlayerPackages}.
178
178
  */
179
- declare const detectOutdatedIntlayerPackages: (rootDir: string, dependencies: Record<string, string>, targetVersion: string) => string[];
179
+ export declare const detectOutdatedIntlayerPackages: (rootDir: string, dependencies: Record<string, string>, targetVersion: string) => string[];
180
180
  /**
181
181
  * Upgrades the given packages to `targetVersion` synchronously, preserving the
182
182
  * dependency type via the `isDev` flag. Throws if the install process exits
183
183
  * with a non-zero code.
184
184
  */
185
- declare const upgradePackages: (rootDir: string, packages: string[], packageManager: PackageManager, targetVersion: string, isDev?: boolean) => void;
185
+ export declare const upgradePackages: (rootDir: string, packages: string[], packageManager: PackageManager, targetVersion: string, isDev?: boolean) => void;
186
186
  //#endregion
187
- export { COMPAT_I18N_LIBRARIES, CompatI18nLibrary, CompatSyncConfig, CompatVitePluginConfig, DetectMissingPackagesOptions, IntlayerPackageAnalysis, PackageManager, detectCompatI18nLibraries, detectMissingIntlayerPackages, detectOutdatedIntlayerPackages, detectPackageManager, getInstalledPackageVersion, hasLintTooling, installPackages, isIntlayerPackageName, normalizeVersion, upgradePackages };
188
187
  //# sourceMappingURL=packageManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageManager.d.ts","names":[],"sources":["../../../../src/init/utils/packageManager.ts"],"mappings":";;KAMY;;;;;KAMA;;;;;;;EAOV;;;;;EAKA;;;;;EAKA;;;;;;;;;;;;;;;EAeA;;;;;;;KAQU;;EAEV;;EAEA;;;;;;;;EAQA;;IAEE;;IAEA;;;;KAKQ;;EAEV;;EAEA;;;;;;EAMA,kBAAkB;;;;;;EAMlB,wBAAwB;;;;;;cAOb,uBAAoB,oBAAsB;;;;;;;KA2C3C;;;;;;EAMV;;;KAIU;;EAEV;;;;;;EAMA;;;;;;;;cASW,gCAAgC;;;;;;;;;;cA0EhC,4BAAyB,cACtB;;;;;;;;;;;;cAiBH,iBAAc,cAAkB;cAGhC,gCAA6B,iBACvB,wBAAsB,UAC9B,iCACR;;;;;cAiVU,kBAAe,iBACX,oBACG,gBACF,gBAAc;;;;;;;;;cAenB,wBAAqB;;;;;;;;cAYrB,mBAAgB;;;;;;cAWhB,6BAA0B,iBACtB;;;;;;;cAwBJ,iCAA8B,iBAC1B,cACD,wBAAsB;;;;;;cAuBzB,kBAAe,iBACX,oBACG,gBACF,gBAAc,uBACT"}
1
+ {"version":3,"file":"packageManager.d.ts","names":[],"sources":["../../../../src/init/utils/packageManager.ts"],"mappings":";;YAMY;;;;;YAMA;;;;;;;EAOV;;;;;EAKA;;;;;EAKA;;;;;;;;;;;;;;;EAeA;;;;;;;YAQU;;EAEV;;EAEA;;;;;;;;EAQA;;IAEE;;IAEA;;;;YAKQ;;EAEV;;EAEA;;;;;;EAMA,kBAAkB;;;;;;EAMlB,wBAAwB;;;;;;qBAOb,uBAAoB,oBAAsB;;;;;;;YA2C3C;;;;;;EAMV;;;YAIU;;EAEV;;;;;;EAMA;;;;;;;;qBASW,gCAAgC;;;;;;;;;;qBA0EhC,4BAAyB,cACtB;;;;;;;;;;;;qBAiBH,iBAAc,cAAkB;qBAGhC,gCAA6B,iBACvB,wBAAsB,UAC9B,iCACR;;;;;qBAiVU,kBAAe,iBACX,oBACG,gBACF,gBAAc;;;;;;;;;qBAenB,wBAAqB;;;;;;;;qBAYrB,mBAAgB;;;;;;qBAWhB,6BAA0B,iBACtB;;;;;;;qBAwBJ,iCAA8B,iBAC1B,cACD,wBAAsB;;;;;;qBAuBzB,kBAAe,iBACX,oBACG,gBACF,gBAAc,uBACT"}
@@ -2,7 +2,6 @@
2
2
  /**
3
3
  * Helper to find all tsconfig files (tsconfig.json, tsconfig.*.json)
4
4
  */
5
- declare const findTsConfigFiles: (rootDir: string) => Promise<string[]>;
5
+ export declare const findTsConfigFiles: (rootDir: string) => Promise<string[]>;
6
6
  //#endregion
7
- export { findTsConfigFiles };
8
7
  //# sourceMappingURL=tsConfig.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tsConfig.d.ts","names":[],"sources":["../../../../src/init/utils/tsConfig.ts"],"mappings":";;;;cAKa,oBAAiB,oBAA4B"}
1
+ {"version":3,"file":"tsConfig.d.ts","names":[],"sources":["../../../../src/init/utils/tsConfig.ts"],"mappings":";;;;qBAKa,oBAAiB,oBAA4B"}
@@ -3,7 +3,6 @@
3
3
  * Returns true when the dependency `version` range targets a major >= `major`.
4
4
  * Tolerant of leading range characters, e.g. `^16.0.0`, `~16`, `16.1.0`.
5
5
  */
6
- declare const isVersionAtLeast: (version: string | undefined, major: number) => boolean;
6
+ export declare const isVersionAtLeast: (version: string | undefined, major: number) => boolean;
7
7
  //#endregion
8
- export { isVersionAtLeast };
9
8
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","names":[],"sources":["../../../../src/init/utils/version.ts"],"mappings":";;;;;cAIa,mBAAgB,6BACA"}
1
+ {"version":3,"file":"version.d.ts","names":[],"sources":["../../../../src/init/utils/version.ts"],"mappings":";;;;;qBAIa,mBAAgB,6BACA"}
@@ -1,7 +1,7 @@
1
1
  import { configurationFilesCandidates } from "@intlayer/config/node";
2
2
  //#region src/initConfig/index.d.ts
3
3
  /** Values injected into the configuration file template. */
4
- type InitConfigOptions = {
4
+ export type InitConfigOptions = {
5
5
  /** Locales detected in the project, inserted into `internationalization.locales`. */
6
6
  locales?: string[];
7
7
  /**
@@ -14,7 +14,6 @@ type InitConfigOptions = {
14
14
  * Initialize the Intlayer configuration file. No-ops when a configuration file
15
15
  * already exists at `baseDir`.
16
16
  */
17
- declare const initConfig: (format: (typeof configurationFilesCandidates)[number], baseDir: string, options?: InitConfigOptions) => Promise<void>;
17
+ export declare const initConfig: (format: (typeof configurationFilesCandidates)[number], baseDir: string, options?: InitConfigOptions) => Promise<void>;
18
18
  //#endregion
19
- export { InitConfigOptions, initConfig };
20
19
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/initConfig/index.ts"],"mappings":";;;KA6BY;;EAEV;;;;;EAKA;;;;;;cAOW,aAAU,gBACL,uCAAqC,iBACtC,UACL,sBAAiB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/initConfig/index.ts"],"mappings":";;;YA6BY;;EAEV;;;;;EAKA;;;;;;qBAOW,aAAU,gBACL,uCAAqC,iBACtC,UACL,sBAAiB"}
@@ -6,7 +6,6 @@
6
6
  *
7
7
  * Returns a human-readable summary of what was done plus next-step instructions.
8
8
  */
9
- declare const installLSP: (projectRoot: string) => Promise<string>;
9
+ export declare const installLSP: (projectRoot: string) => Promise<string>;
10
10
  //#endregion
11
- export { installLSP };
12
11
  //# sourceMappingURL=installLSP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"installLSP.d.ts","names":[],"sources":["../../src/installLSP.ts"],"mappings":";;;;;;;;cAkBa,aAAU,wBAAgC"}
1
+ {"version":3,"file":"installLSP.d.ts","names":[],"sources":["../../src/installLSP.ts"],"mappings":";;;;;;;;qBAkBa,aAAU,wBAAgC"}
@@ -1,10 +1,9 @@
1
1
  import { Platform } from "../installSkills/index.js";
2
2
  //#region src/installMCP/installMCP.d.ts
3
- type MCPTransport = 'stdio' | 'sse';
3
+ export type MCPTransport = 'stdio' | 'sse';
4
4
  /**
5
5
  * Installs the Intlayer MCP server configuration for a specific platform.
6
6
  */
7
- declare const installMCP: (projectRoot: string, platform: Platform, transport: MCPTransport) => Promise<string>;
7
+ export declare const installMCP: (projectRoot: string, platform: Platform, transport: MCPTransport) => Promise<string>;
8
8
  //#endregion
9
- export { MCPTransport, installMCP };
10
9
  //# sourceMappingURL=installMCP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"installMCP.d.ts","names":[],"sources":["../../../src/installMCP/installMCP.ts"],"mappings":";;KAKY;;;;cAsBC,aAAU,qBACF,UACT,UAAQ,WACP,iBACV"}
1
+ {"version":3,"file":"installMCP.d.ts","names":[],"sources":["../../../src/installMCP/installMCP.ts"],"mappings":";;YAKY;;;;qBAsBC,aAAU,qBACF,UACT,UAAQ,WACP,iBACV"}