@intlayer/engine 9.5.9-canary.0 → 9.5.10

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 (248) hide show
  1. package/dist/cjs/_virtual/_utils_asset.cjs +1 -1
  2. package/dist/cjs/build.cjs +4 -4
  3. package/dist/cjs/buildIntlayerDictionary/writeDynamicDictionary.cjs +2 -2
  4. package/dist/cjs/buildIntlayerDictionary/writeFetchDictionary.cjs +3 -3
  5. package/dist/cjs/buildIntlayerDictionary/writeMergedDictionary.cjs +1 -1
  6. package/dist/cjs/buildIntlayerDictionary/writeNestedDictionary.cjs +3 -3
  7. package/dist/cjs/buildIntlayerDictionary/writeRemoteDictionary.cjs +2 -2
  8. package/dist/cjs/buildIntlayerDictionary/writeUnmergedDictionary.cjs +2 -2
  9. package/dist/cjs/cleanOutputDir.cjs +1 -1
  10. package/dist/cjs/cleanRemovedContentDeclaration.cjs +1 -1
  11. package/dist/cjs/cli.cjs +10 -3
  12. package/dist/cjs/createDictionaryEntryPoint/createDictionaryEntryPoint.cjs +1 -1
  13. package/dist/cjs/createDictionaryEntryPoint/getBuiltDictionariesPath.cjs +2 -2
  14. package/dist/cjs/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.cjs +2 -2
  15. package/dist/cjs/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.cjs +2 -2
  16. package/dist/cjs/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.cjs +2 -2
  17. package/dist/cjs/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.cjs +2 -2
  18. package/dist/cjs/createType/createModuleAugmentation.cjs +3 -3
  19. package/dist/cjs/createType/createType.cjs +1 -1
  20. package/dist/cjs/docReview/index.cjs +5 -5
  21. package/dist/cjs/docReview/pipeline.cjs +4 -4
  22. package/dist/cjs/docReview/reviewReport.cjs.map +1 -1
  23. package/dist/cjs/fetchDistantDictionaries.cjs +1 -1
  24. package/dist/cjs/handleContentDeclarationFileChange.cjs +2 -2
  25. package/dist/cjs/handleUnlinkedContentDeclarationFile.cjs +1 -1
  26. package/dist/cjs/init/cms.cjs +35 -0
  27. package/dist/cjs/init/cms.cjs.map +1 -1
  28. package/dist/cjs/init/documentationRouter.cjs +141 -0
  29. package/dist/cjs/init/documentationRouter.cjs.map +1 -0
  30. package/dist/cjs/init/frameworkSetup/backend/index.cjs +138 -0
  31. package/dist/cjs/init/frameworkSetup/backend/index.cjs.map +1 -0
  32. package/dist/cjs/init/frameworkSetup/backend/transforms.cjs +223 -0
  33. package/dist/cjs/init/frameworkSetup/backend/transforms.cjs.map +1 -0
  34. package/dist/cjs/init/frameworkSetup/index.cjs +9 -3
  35. package/dist/cjs/init/frameworkSetup/index.cjs.map +1 -1
  36. package/dist/cjs/init/frameworkSetup/localeRouting.cjs +13 -0
  37. package/dist/cjs/init/frameworkSetup/localeRouting.cjs.map +1 -0
  38. package/dist/cjs/init/frameworkSetup/nextAppRouter/index.cjs +34 -7
  39. package/dist/cjs/init/frameworkSetup/nextAppRouter/index.cjs.map +1 -1
  40. package/dist/cjs/init/frameworkSetup/nextAppRouter/restructure.cjs +1 -1
  41. package/dist/cjs/init/frameworkSetup/nextAppRouter/templates.cjs +56 -0
  42. package/dist/cjs/init/frameworkSetup/nextAppRouter/templates.cjs.map +1 -1
  43. package/dist/cjs/init/frameworkSetup/nextAppRouter/transforms.cjs +2 -2
  44. package/dist/cjs/init/frameworkSetup/nextAppRouter/transforms.cjs.map +1 -1
  45. package/dist/cjs/init/frameworkSetup/tanstackStart/index.cjs +32 -3
  46. package/dist/cjs/init/frameworkSetup/tanstackStart/index.cjs.map +1 -1
  47. package/dist/cjs/init/frameworkSetup/tanstackStart/restructure.cjs +1 -1
  48. package/dist/cjs/init/frameworkSetup/tanstackStart/templates.cjs +58 -0
  49. package/dist/cjs/init/frameworkSetup/tanstackStart/templates.cjs.map +1 -1
  50. package/dist/cjs/init/frameworkSetup/tanstackStart/transforms.cjs +94 -14
  51. package/dist/cjs/init/frameworkSetup/tanstackStart/transforms.cjs.map +1 -1
  52. package/dist/cjs/init/index.cjs +46 -159
  53. package/dist/cjs/init/index.cjs.map +1 -1
  54. package/dist/cjs/init/utils/configManipulation.cjs +39 -0
  55. package/dist/cjs/init/utils/configManipulation.cjs.map +1 -1
  56. package/dist/cjs/init/utils/fileSystem.cjs +1 -1
  57. package/dist/cjs/init/utils/githubActions.cjs +1 -1
  58. package/dist/cjs/init/utils/index.cjs +10 -0
  59. package/dist/cjs/init/utils/intlayerDependencies.cjs +1 -1
  60. package/dist/cjs/init/utils/lintConfig.cjs +52 -0
  61. package/dist/cjs/init/utils/lintConfig.cjs.map +1 -0
  62. package/dist/cjs/init/utils/packageManager.cjs +63 -14
  63. package/dist/cjs/init/utils/packageManager.cjs.map +1 -1
  64. package/dist/cjs/init/utils/urlRoutingFramework.cjs +41 -0
  65. package/dist/cjs/init/utils/urlRoutingFramework.cjs.map +1 -0
  66. package/dist/cjs/initConfig/index.cjs +5 -2
  67. package/dist/cjs/initConfig/index.cjs.map +1 -1
  68. package/dist/cjs/installLSP.cjs +1 -1
  69. package/dist/cjs/installMCP/installMCP.cjs +1 -1
  70. package/dist/cjs/installSkills/index.cjs +1 -1
  71. package/dist/cjs/listDictionariesPath.cjs +1 -1
  72. package/dist/cjs/listGitFiles.cjs +1 -1
  73. package/dist/cjs/loadDictionaries/getIntlayerBundle.cjs +2 -2
  74. package/dist/cjs/loadDictionaries/index.cjs +1 -1
  75. package/dist/cjs/loadDictionaries/loadContentDeclaration.cjs +2 -2
  76. package/dist/cjs/loadDictionaries/loadDictionaries.cjs +1 -1
  77. package/dist/cjs/loadDictionaries/loadLocalDictionaries.cjs +1 -1
  78. package/dist/cjs/loadDictionaries/loadMarkdownContentDeclaration.cjs +1 -1
  79. package/dist/cjs/loadDictionaries/logTypeScriptErrors.cjs +104 -43
  80. package/dist/cjs/loadDictionaries/logTypeScriptErrors.cjs.map +1 -1
  81. package/dist/cjs/logConfigDetails.cjs +1 -1
  82. package/dist/cjs/prepareIntlayer.cjs +4 -4
  83. package/dist/cjs/scan/index.cjs +1 -1
  84. package/dist/cjs/scan/scanWebsite.cjs +1 -1
  85. package/dist/cjs/syncPluginKit/createFileAdapter.cjs +1 -1
  86. package/dist/cjs/syncPluginKit/index.cjs +1 -1
  87. package/dist/cjs/utils/buildComponentFilesList.cjs +1 -1
  88. package/dist/cjs/utils/contentWatcherLock.cjs +2 -2
  89. package/dist/cjs/utils/index.cjs +4 -4
  90. package/dist/cjs/utils/readDictionariesFromDisk.cjs +1 -1
  91. package/dist/cjs/utils/runOnce.cjs +1 -1
  92. package/dist/cjs/utils/runParallel/pidTree.cjs +1 -1
  93. package/dist/cjs/utils/withFileLock.cjs +1 -1
  94. package/dist/cjs/watcher.cjs +6 -6
  95. package/dist/cjs/writeConfiguration/index.cjs +1 -1
  96. package/dist/cjs/writeContentDeclaration/processContentDeclarationContent.cjs +2 -2
  97. package/dist/cjs/writeContentDeclaration/transformJSFile.cjs +1 -1
  98. package/dist/cjs/writeContentDeclaration/writeContentDeclaration.cjs +4 -4
  99. package/dist/cjs/writeContentDeclaration/writeJSFile.cjs +3 -3
  100. package/dist/cjs/writeContentDeclaration/writeMarkdownFile.cjs +1 -1
  101. package/dist/cjs/writeContentDeclaration/writeYamlFile.cjs +1 -1
  102. package/dist/cjs/writeFileIfChanged.cjs +1 -1
  103. package/dist/esm/_virtual/_utils_asset.mjs +1 -1
  104. package/dist/esm/build.mjs +4 -4
  105. package/dist/esm/buildIntlayerDictionary/writeDynamicDictionary.mjs +2 -2
  106. package/dist/esm/buildIntlayerDictionary/writeFetchDictionary.mjs +3 -3
  107. package/dist/esm/buildIntlayerDictionary/writeMergedDictionary.mjs +1 -1
  108. package/dist/esm/buildIntlayerDictionary/writeNestedDictionary.mjs +3 -3
  109. package/dist/esm/buildIntlayerDictionary/writeRemoteDictionary.mjs +2 -2
  110. package/dist/esm/buildIntlayerDictionary/writeUnmergedDictionary.mjs +2 -2
  111. package/dist/esm/cleanOutputDir.mjs +1 -1
  112. package/dist/esm/cleanRemovedContentDeclaration.mjs +1 -1
  113. package/dist/esm/cli.mjs +8 -6
  114. package/dist/esm/createDictionaryEntryPoint/createDictionaryEntryPoint.mjs +1 -1
  115. package/dist/esm/createDictionaryEntryPoint/getBuiltDictionariesPath.mjs +2 -2
  116. package/dist/esm/createDictionaryEntryPoint/getBuiltDynamicDictionariesPath.mjs +2 -2
  117. package/dist/esm/createDictionaryEntryPoint/getBuiltFetchDictionariesPath.mjs +2 -2
  118. package/dist/esm/createDictionaryEntryPoint/getBuiltRemoteDictionariesPath.mjs +2 -2
  119. package/dist/esm/createDictionaryEntryPoint/getBuiltUnmergedDictionariesPath.mjs +2 -2
  120. package/dist/esm/createType/createModuleAugmentation.mjs +3 -3
  121. package/dist/esm/createType/createType.mjs +1 -1
  122. package/dist/esm/docReview/index.mjs +5 -5
  123. package/dist/esm/docReview/pipeline.mjs +4 -4
  124. package/dist/esm/docReview/reviewReport.mjs.map +1 -1
  125. package/dist/esm/fetchDistantDictionaries.mjs +1 -1
  126. package/dist/esm/handleContentDeclarationFileChange.mjs +2 -2
  127. package/dist/esm/handleUnlinkedContentDeclarationFile.mjs +1 -1
  128. package/dist/esm/init/cms.mjs +35 -2
  129. package/dist/esm/init/cms.mjs.map +1 -1
  130. package/dist/esm/init/documentationRouter.mjs +139 -0
  131. package/dist/esm/init/documentationRouter.mjs.map +1 -0
  132. package/dist/esm/init/frameworkSetup/backend/index.mjs +130 -0
  133. package/dist/esm/init/frameworkSetup/backend/index.mjs.map +1 -0
  134. package/dist/esm/init/frameworkSetup/backend/transforms.mjs +216 -0
  135. package/dist/esm/init/frameworkSetup/backend/transforms.mjs.map +1 -0
  136. package/dist/esm/init/frameworkSetup/index.mjs +9 -3
  137. package/dist/esm/init/frameworkSetup/index.mjs.map +1 -1
  138. package/dist/esm/init/frameworkSetup/localeRouting.mjs +12 -0
  139. package/dist/esm/init/frameworkSetup/localeRouting.mjs.map +1 -0
  140. package/dist/esm/init/frameworkSetup/nextAppRouter/index.mjs +36 -9
  141. package/dist/esm/init/frameworkSetup/nextAppRouter/index.mjs.map +1 -1
  142. package/dist/esm/init/frameworkSetup/nextAppRouter/restructure.mjs +1 -1
  143. package/dist/esm/init/frameworkSetup/nextAppRouter/templates.mjs +54 -1
  144. package/dist/esm/init/frameworkSetup/nextAppRouter/templates.mjs.map +1 -1
  145. package/dist/esm/init/frameworkSetup/nextAppRouter/transforms.mjs +2 -2
  146. package/dist/esm/init/frameworkSetup/nextAppRouter/transforms.mjs.map +1 -1
  147. package/dist/esm/init/frameworkSetup/tanstackStart/index.mjs +35 -6
  148. package/dist/esm/init/frameworkSetup/tanstackStart/index.mjs.map +1 -1
  149. package/dist/esm/init/frameworkSetup/tanstackStart/restructure.mjs +1 -1
  150. package/dist/esm/init/frameworkSetup/tanstackStart/templates.mjs +56 -1
  151. package/dist/esm/init/frameworkSetup/tanstackStart/templates.mjs.map +1 -1
  152. package/dist/esm/init/frameworkSetup/tanstackStart/transforms.mjs +94 -15
  153. package/dist/esm/init/frameworkSetup/tanstackStart/transforms.mjs.map +1 -1
  154. package/dist/esm/init/index.mjs +42 -158
  155. package/dist/esm/init/index.mjs.map +1 -1
  156. package/dist/esm/init/utils/configManipulation.mjs +38 -1
  157. package/dist/esm/init/utils/configManipulation.mjs.map +1 -1
  158. package/dist/esm/init/utils/fileSystem.mjs +1 -1
  159. package/dist/esm/init/utils/githubActions.mjs +1 -1
  160. package/dist/esm/init/utils/index.mjs +5 -3
  161. package/dist/esm/init/utils/intlayerDependencies.mjs +1 -1
  162. package/dist/esm/init/utils/lintConfig.mjs +50 -0
  163. package/dist/esm/init/utils/lintConfig.mjs.map +1 -0
  164. package/dist/esm/init/utils/packageManager.mjs +61 -15
  165. package/dist/esm/init/utils/packageManager.mjs.map +1 -1
  166. package/dist/esm/init/utils/urlRoutingFramework.mjs +40 -0
  167. package/dist/esm/init/utils/urlRoutingFramework.mjs.map +1 -0
  168. package/dist/esm/initConfig/index.mjs +5 -2
  169. package/dist/esm/initConfig/index.mjs.map +1 -1
  170. package/dist/esm/installLSP.mjs +1 -1
  171. package/dist/esm/installMCP/installMCP.mjs +1 -1
  172. package/dist/esm/installSkills/index.mjs +1 -1
  173. package/dist/esm/listDictionariesPath.mjs +1 -1
  174. package/dist/esm/listGitFiles.mjs +1 -1
  175. package/dist/esm/loadDictionaries/getIntlayerBundle.mjs +2 -2
  176. package/dist/esm/loadDictionaries/index.mjs +1 -1
  177. package/dist/esm/loadDictionaries/loadContentDeclaration.mjs +2 -2
  178. package/dist/esm/loadDictionaries/loadDictionaries.mjs +1 -1
  179. package/dist/esm/loadDictionaries/loadLocalDictionaries.mjs +1 -1
  180. package/dist/esm/loadDictionaries/loadMarkdownContentDeclaration.mjs +1 -1
  181. package/dist/esm/loadDictionaries/logTypeScriptErrors.mjs +105 -44
  182. package/dist/esm/loadDictionaries/logTypeScriptErrors.mjs.map +1 -1
  183. package/dist/esm/logConfigDetails.mjs +1 -1
  184. package/dist/esm/prepareIntlayer.mjs +4 -4
  185. package/dist/esm/scan/index.mjs +1 -1
  186. package/dist/esm/scan/scanWebsite.mjs +1 -1
  187. package/dist/esm/syncPluginKit/createFileAdapter.mjs +1 -1
  188. package/dist/esm/syncPluginKit/index.mjs +1 -1
  189. package/dist/esm/utils/buildComponentFilesList.mjs +1 -1
  190. package/dist/esm/utils/contentWatcherLock.mjs +2 -2
  191. package/dist/esm/utils/index.mjs +4 -4
  192. package/dist/esm/utils/readDictionariesFromDisk.mjs +1 -1
  193. package/dist/esm/utils/runOnce.mjs +1 -1
  194. package/dist/esm/utils/runParallel/pidTree.mjs +1 -1
  195. package/dist/esm/utils/withFileLock.mjs +1 -1
  196. package/dist/esm/watcher.mjs +6 -6
  197. package/dist/esm/writeConfiguration/index.mjs +1 -1
  198. package/dist/esm/writeContentDeclaration/processContentDeclarationContent.mjs +2 -2
  199. package/dist/esm/writeContentDeclaration/transformJSFile.mjs +1 -1
  200. package/dist/esm/writeContentDeclaration/writeContentDeclaration.mjs +4 -4
  201. package/dist/esm/writeContentDeclaration/writeJSFile.mjs +3 -3
  202. package/dist/esm/writeContentDeclaration/writeMarkdownFile.mjs +1 -1
  203. package/dist/esm/writeContentDeclaration/writeYamlFile.mjs +1 -1
  204. package/dist/esm/writeFileIfChanged.mjs +1 -1
  205. package/dist/types/cli.d.ts +5 -3
  206. package/dist/types/docReview/reviewReport.d.ts.map +1 -1
  207. package/dist/types/formatDictionary.d.ts +2 -2
  208. package/dist/types/init/cms.d.ts +11 -0
  209. package/dist/types/init/cms.d.ts.map +1 -1
  210. package/dist/types/init/documentationRouter.d.ts +64 -0
  211. package/dist/types/init/documentationRouter.d.ts.map +1 -0
  212. package/dist/types/init/frameworkSetup/backend/index.d.ts +16 -0
  213. package/dist/types/init/frameworkSetup/backend/index.d.ts.map +1 -0
  214. package/dist/types/init/frameworkSetup/backend/transforms.d.ts +37 -0
  215. package/dist/types/init/frameworkSetup/backend/transforms.d.ts.map +1 -0
  216. package/dist/types/init/frameworkSetup/index.d.ts.map +1 -1
  217. package/dist/types/init/frameworkSetup/localeRouting.d.ts +11 -0
  218. package/dist/types/init/frameworkSetup/localeRouting.d.ts.map +1 -0
  219. package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts +5 -5
  220. package/dist/types/init/frameworkSetup/nextAppRouter/index.d.ts.map +1 -1
  221. package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts +12 -0
  222. package/dist/types/init/frameworkSetup/nextAppRouter/templates.d.ts.map +1 -1
  223. package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts +10 -1
  224. package/dist/types/init/frameworkSetup/nextAppRouter/transforms.d.ts.map +1 -1
  225. package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts +3 -2
  226. package/dist/types/init/frameworkSetup/tanstackStart/index.d.ts.map +1 -1
  227. package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts +10 -0
  228. package/dist/types/init/frameworkSetup/tanstackStart/templates.d.ts.map +1 -1
  229. package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts +12 -0
  230. package/dist/types/init/frameworkSetup/tanstackStart/transforms.d.ts.map +1 -1
  231. package/dist/types/init/frameworkSetup/types.d.ts +6 -0
  232. package/dist/types/init/frameworkSetup/types.d.ts.map +1 -1
  233. package/dist/types/init/index.d.ts +15 -1
  234. package/dist/types/init/index.d.ts.map +1 -1
  235. package/dist/types/init/utils/configManipulation.d.ts +14 -0
  236. package/dist/types/init/utils/configManipulation.d.ts.map +1 -1
  237. package/dist/types/init/utils/index.d.ts +5 -3
  238. package/dist/types/init/utils/lintConfig.d.ts +28 -0
  239. package/dist/types/init/utils/lintConfig.d.ts.map +1 -0
  240. package/dist/types/init/utils/packageManager.d.ts +29 -6
  241. package/dist/types/init/utils/packageManager.d.ts.map +1 -1
  242. package/dist/types/init/utils/urlRoutingFramework.d.ts +9 -0
  243. package/dist/types/init/utils/urlRoutingFramework.d.ts.map +1 -0
  244. package/dist/types/initConfig/index.d.ts +3 -1
  245. package/dist/types/initConfig/index.d.ts.map +1 -1
  246. package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts +4 -0
  247. package/dist/types/loadDictionaries/logTypeScriptErrors.d.ts.map +1 -1
  248. package/package.json +8 -8
@@ -22,5 +22,15 @@ export declare const buildLocaleRouteTemplate: (localeSegment: string) => string
22
22
  export declare const buildRootTemplateTs: (localeSegment: string) => string;
23
23
  /** JavaScript counterpart of {@link buildRootTemplateTs}. */
24
24
  export declare const buildRootTemplateJs: (localeSegment: string) => string;
25
+ /**
26
+ * Module-scope server function resolving the request locale from the locale
27
+ * cookie / headers (`Accept-Language` fallback). Shared by the unprefixed root
28
+ * template and the root transform.
29
+ */
30
+ export declare const REQUEST_LOCALE_SERVER_FUNCTION = "const getRequestLocale = createServerFn().handler(() =>\n getLocale({\n getCookie: (name) => getCookie(name, getRequestHeader(\"cookie\")),\n getHeader: (name) => getRequestHeader(name),\n })\n);";
31
+ /** {@link buildUnprefixedRootTemplate} for TypeScript projects. */
32
+ export declare const UNPREFIXED_ROOT_TEMPLATE_TS: string;
33
+ /** {@link buildUnprefixedRootTemplate} for JavaScript projects. */
34
+ export declare const UNPREFIXED_ROOT_TEMPLATE_JS: string;
25
35
  //#endregion
26
36
  //# sourceMappingURL=templates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/templates.ts"],"mappings":";;;;;;;;;;;;qBAYa,2BAAwB;;;;;;;;;qBAgCxB,sBAAmB;;qBAkCnB,sBAAmB"}
1
+ {"version":3,"file":"templates.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/templates.ts"],"mappings":";;;;;;;;;;;;qBAYa,2BAAwB;;;;;;;;;qBAgCxB,sBAAmB;;qBAkCnB,sBAAmB;;;;;;qBAqCnB;;qBAmDA;;qBAKA"}
@@ -4,6 +4,18 @@ export type TransformResult = {
4
4
  code: string;
5
5
  status: 'wrapped' | 'already' | 'skipped';
6
6
  };
7
+ /**
8
+ * Wraps the `{children}` of a TanStack Start root document with
9
+ * `IntlayerProvider` for routing modes without a locale path segment. The
10
+ * locale is resolved per request by a server function exposed through the root
11
+ * `loader`, and read with `Route.useLoaderData()`. Safe and idempotent: bails
12
+ * when the provider is already present, when no `<html>` document or
13
+ * `{children}` is found, or when the root route cannot safely take a loader
14
+ * (no `Route` binding, no options object, or an existing `loader`).
15
+ *
16
+ * @param code Source of the project's `__root` document.
17
+ */
18
+ export declare const wrapRootWithRequestLocaleProvider: (code: string) => TransformResult;
7
19
  /**
8
20
  * Wraps the `{children}` of a TanStack Start root document with
9
21
  * `IntlayerProvider`, deriving the locale from the locale segment route params.
@@ -1 +1 @@
1
- {"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/transforms.ts"],"mappings":";;YAkBY;EACV;EACA;;;;;;;;;;;;;qBAoMW,uBAAoB,cACnB,0BAEX"}
1
+ {"version":3,"file":"transforms.d.ts","names":[],"sources":["../../../../../src/init/frameworkSetup/tanstackStart/transforms.ts"],"mappings":";;YAmBY;EACV;EACA;;;;;;;;;;;;;qBA6QW,oCAAiC,iBAE3C;;;;;;;;;;;;qBAsFU,uBAAoB,cACnB,0BAEX"}
@@ -21,6 +21,12 @@ export type FrameworkSetupContext = {
21
21
  * (`prefix-no-default` → `{-$locale}`).
22
22
  */
23
23
  routingMode: RoutingMode;
24
+ /**
25
+ * Whether locale routing goes through the Intlayer proxy (middleware), i.e.
26
+ * the effective `routing.enableProxy`. When `false`, adapters scaffold no
27
+ * proxy file and no locale route segment.
28
+ */
29
+ enableProxy: boolean;
24
30
  };
25
31
  /**
26
32
  * A framework integration adapter. Each adapter knows how to recognize a
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/init/frameworkSetup/types.ts"],"mappings":";;;;;;;YAOY;;EAEV;;EAEA,SAAS;;EAET,gBAAgB;;EAEhB;;;;;;;EAOA,aAAa;;;;;;EAMb;;;;;;;YAQU;;EAEV;;;;;EAKA,SAAS,SAAS,oCAAoC;;;;;;EAMtD,QAAQ,SAAS,0BAA0B"}
@@ -1,4 +1,5 @@
1
1
  import { RoutingMode } from "./utils/configManipulation.js";
2
+ import { DocumentationRouter, DocumentationRouterType, getDocumentationUrl } from "./documentationRouter.js";
2
3
  import "./utils/index.js";
3
4
  //#region src/init/index.d.ts
4
5
  /**
@@ -43,6 +44,8 @@ export type InitOptions = {
43
44
  * enabled.
44
45
  */
45
46
  noFrameworkSetup?: boolean;
47
+ /** Skip logging the final success message and documentation link. */
48
+ skipFinalMessage?: boolean;
46
49
  /**
47
50
  * Version to install the missing Intlayer packages at (typically the running
48
51
  * CLI version). Already declared Intlayer packages are upgraded to the latest
@@ -55,6 +58,13 @@ export type InitOptions = {
55
58
  * (`prefix-no-default`) is kept.
56
59
  */
57
60
  routingMode?: RoutingMode;
61
+ /**
62
+ * Whether the app routes by locale through the Intlayer proxy (middleware).
63
+ * Written to `routing.enableProxy` in the configuration file and drives the
64
+ * framework scaffolding: `false` skips the proxy file and any locale route
65
+ * segment. When omitted, the configured value is kept (unset means enabled).
66
+ */
67
+ enableProxy?: boolean;
58
68
  /**
59
69
  * Content organization strategy chosen by the interactive init prompt. Drives
60
70
  * the `compiler.output` template (`centralized`) or the injection of the
@@ -66,6 +76,10 @@ export type InitOptions = {
66
76
  /**
67
77
  * MAIN LOGIC
68
78
  */
69
- export declare const initIntlayer: (rootDir: string, options?: InitOptions) => Promise<void>;
79
+ export declare const initIntlayer: (rootDir: string, options?: InitOptions) => Promise<{
80
+ guideUrl: string;
81
+ }>;
82
+ export declare const logInitSuccessMessage: (guideUrl: string) => void;
70
83
  //#endregion
84
+ export { DocumentationRouter, type DocumentationRouterType, getDocumentationUrl };
71
85
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/init/index.ts"],"mappings":";;;;;;;;;qBA6Oa,2BAAwB,cACrB;;;;;;;;;;YAsBJ;;;;YAQA;EACV;;EAEA;;;;;EAKA;;EAEA;;EAEA;;EAEA;;;;;;;EAOA;;;;;;EAMA;;;;;;EAMA,cAAc;;;;;;;EAOd,kBAAkB;;;;;qBAMP,eAAY,iBAAyB,UAAY,gBAAW"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/init/index.ts"],"mappings":";;;;;;;;;;qBA6Ea,2BAAwB,cACrB;;;;;;;;;;YAsBJ;;;;YAQA;EACV;;EAEA;;;;;EAKA;;EAEA;;EAEA;;EAEA;;;;;;;EAOA;;EAEA;;;;;;EAMA;;;;;;EAMA,cAAc;;;;;;;EAOd;;;;;;;EAOA,kBAAkB;;;;;qBAMP,eAAY,iBAAyB,UAAY,gBAAW;;;qBA6kC5D,wBAAqB"}
@@ -11,6 +11,20 @@ export type RoutingMode = RoutingConfig['mode'];
11
11
  * TypeScript recast parser.
12
12
  */
13
13
  export declare const setIntlayerConfigRoutingMode: (content: string, extension: string, mode: RoutingMode) => string;
14
+ /**
15
+ * Sets `routing.enableProxy` in an Intlayer configuration file. Idempotent and
16
+ * comment-preserving: an existing property only has its value swapped. Supports
17
+ * `.ts`, `.mjs`, `.js`, `.cjs` and `.json` configs.
18
+ */
19
+ export declare const setIntlayerConfigEnableProxy: (content: string, extension: string, enableProxy: boolean) => string;
20
+ /**
21
+ * Reduces `routing` in an Intlayer configuration file to its `storage` entry,
22
+ * for projects without URL routing (backend-only, React Native…) where the
23
+ * routing mode and the locale proxy have no effect. An existing `storage`
24
+ * value is kept; otherwise `['cookie', 'header']` is written. JSON configs are
25
+ * returned unchanged.
26
+ */
27
+ export declare const setIntlayerConfigRoutingStorageOnly: (content: string, extension: string) => string;
14
28
  /**
15
29
  * Sets `compiler.output` in an Intlayer configuration file to the given path
16
30
  * template (the `{{variable}}` string form, e.g.
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"configManipulation.d.ts","names":[],"sources":["../../../../src/init/utils/configManipulation.ts"],"mappings":";;;;YAYY,cAAc;;;;;;;;qBA0Fb,+BAA4B,iBACxB,mBACE,MACX;;;;;;qBAuCK,+BAA4B,iBACxB,mBACE;;;;;;;;qBA+CN,sCAAmC,iBAC/B;;;;;;;;;qBAgDJ,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"}
@@ -1,12 +1,14 @@
1
- import { COMPAT_I18N_LIBRARIES, COMPAT_PACKAGE_REPLACEMENTS, CompatI18nLibrary, CompatSyncConfig, CompatVitePluginConfig, DetectMissingPackagesOptions, IntlayerPackageAnalysis, PackageManager, detectCompatI18nLibraries, detectMissingIntlayerPackages, detectPackageManager, findLockFileDir, hasLintTooling, installPackages, isIntlayerPackageName, moveCompatPackagesToDevDependencies, normalizeVersion, runPackageInstall } from "./packageManager.js";
2
- import { RoutingMode, enableIntlayerEditorConfig, getMetroConfigTemplate, hasIntlayerVitePlugin, replaceViteConfigPluginImportSource, setIntlayerConfigCompilerOutput, setIntlayerConfigRoutingMode, updateAstroConfig, updateIntlayerConfigWithSyncPlugin, updateMetroConfig, updateNextConfig, updateNextConfigForNextI18next, updateNextConfigForNextIntl, updateNextConfigForNextTranslate, updateNuxtConfig, updateNuxtConfigForNuxtjsI18n, updateViteConfig, updateViteConfigForCompatPlugin, updateViteConfigForVueI18n } from "./configManipulation.js";
1
+ import { COMPAT_I18N_LIBRARIES, COMPAT_PACKAGE_REPLACEMENTS, CompatI18nLibrary, CompatSyncConfig, CompatVitePluginConfig, DetectMissingPackagesOptions, IntlayerPackageAnalysis, MINIMUM_ESLINT_MAJOR, PENDING_COMPAT_ADAPTERS, PackageManager, detectCompatI18nLibraries, detectMissingIntlayerPackages, detectPackageManager, findLockFileDir, hasLegacyEslint, hasLintTooling, installPackages, isIntlayerPackageName, moveCompatPackagesToDevDependencies, normalizeVersion, runPackageInstall } from "./packageManager.js";
2
+ import { RoutingMode, enableIntlayerEditorConfig, getMetroConfigTemplate, hasIntlayerVitePlugin, replaceViteConfigPluginImportSource, setIntlayerConfigCompilerOutput, setIntlayerConfigEnableProxy, setIntlayerConfigRoutingMode, setIntlayerConfigRoutingStorageOnly, 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
4
  import { BACKEND_INTLAYER_PACKAGES, ResolveDevScriptParams, resolveDevScript } from "./devScript.js";
5
5
  import { JsonLocalePattern, JsonLocalePatternType, LinguiCatalogPattern, NextIntlMessagesPattern, detectJsonLocalePattern, detectLinguiCatalogPattern, detectNextIntlMessagesPattern, ensureDirectory, exists, readFileFromRoot, writeFileToRoot } from "./fileSystem.js";
6
6
  import { GITHUB_FILL_WORKFLOW_PATH, GITHUB_TEST_WORKFLOW_PATH, GithubWorkflowFile, GithubWorkflowsContext, GithubWorkflowsOptions, getGithubWorkflows, resolveGithubWorkflowsContext } from "./githubActions.js";
7
7
  import { IntlayerDependency, IntlayerDependencyUpgrade, PackageJsonIntlayerDependencies, fetchLatestPackageVersion, findPackageJsonFiles, getIntlayerDependencies, getIntlayerDependencyUpgrades, listIntlayerDependencies, toRange, writeIntlayerDependencyUpgrades } from "./intlayerDependencies.js";
8
8
  import { parseJSONWithComments } from "./jsonParser.js";
9
+ import { LINT_PLUGIN_PACKAGE_NAME, OxlintConfig, addIntlayerRulesToOxlintConfig } from "./lintConfig.js";
9
10
  import { NEXT_INTLAYER_BABEL_CONFIG_CONTENT, setupNextCompilerBabelConfig } from "./nextCompilerBabel.js";
10
11
  import { findTsConfigFiles } from "./tsConfig.js";
12
+ import { hasUrlRoutingFramework } from "./urlRoutingFramework.js";
11
13
  import { isVersionAtLeast } from "./version.js";
12
- export { BACKEND_INTLAYER_PACKAGES, COMPAT_I18N_LIBRARIES, COMPAT_PACKAGE_REPLACEMENTS, CompatI18nLibrary, CompatSyncConfig, CompatVitePluginConfig, DetectMissingPackagesOptions, GITHUB_FILL_WORKFLOW_PATH, GITHUB_TEST_WORKFLOW_PATH, GithubWorkflowFile, GithubWorkflowsContext, GithubWorkflowsOptions, IntlayerDependency, IntlayerDependencyUpgrade, IntlayerPackageAnalysis, JsonLocalePattern, JsonLocalePatternType, LinguiCatalogPattern, NEXT_INTLAYER_BABEL_CONFIG_CONTENT, NextIntlMessagesPattern, PackageJsonIntlayerDependencies, PackageManager, ResolveDevScriptParams, RoutingMode, detectCompatI18nLibraries, detectJsonLocalePattern, detectLinguiCatalogPattern, detectMissingIntlayerPackages, detectNextIntlMessagesPattern, detectPackageManager, enableIntlayerEditorConfig, ensureDirectory, ensureNamedImport, exists, fetchLatestPackageVersion, findLockFileDir, findPackageJsonFiles, findTsConfigFiles, firstInsertIndex, getGithubWorkflows, getIntlayerDependencies, getIntlayerDependencyUpgrades, getMetroConfigTemplate, hasIntlayerVitePlugin, hasLintTooling, installPackages, isIntlayerPackageName, isModuleScopeBinding, isVersionAtLeast, listIntlayerDependencies, moveCompatPackagesToDevDependencies, normalizeVersion, parseJSONWithComments, readFileFromRoot, replaceViteConfigPluginImportSource, resolveDevScript, resolveGithubWorkflowsContext, runPackageInstall, setIntlayerConfigCompilerOutput, setIntlayerConfigRoutingMode, setupNextCompilerBabelConfig, toRange, updateAstroConfig, updateIntlayerConfigWithSyncPlugin, updateMetroConfig, updateNextConfig, updateNextConfigForNextI18next, updateNextConfigForNextIntl, updateNextConfigForNextTranslate, updateNuxtConfig, updateNuxtConfigForNuxtjsI18n, updateViteConfig, updateViteConfigForCompatPlugin, updateViteConfigForVueI18n, writeFileToRoot, writeIntlayerDependencyUpgrades };
14
+ export { BACKEND_INTLAYER_PACKAGES, COMPAT_I18N_LIBRARIES, COMPAT_PACKAGE_REPLACEMENTS, CompatI18nLibrary, CompatSyncConfig, CompatVitePluginConfig, DetectMissingPackagesOptions, GITHUB_FILL_WORKFLOW_PATH, GITHUB_TEST_WORKFLOW_PATH, GithubWorkflowFile, GithubWorkflowsContext, GithubWorkflowsOptions, IntlayerDependency, IntlayerDependencyUpgrade, IntlayerPackageAnalysis, JsonLocalePattern, JsonLocalePatternType, LINT_PLUGIN_PACKAGE_NAME, LinguiCatalogPattern, MINIMUM_ESLINT_MAJOR, NEXT_INTLAYER_BABEL_CONFIG_CONTENT, NextIntlMessagesPattern, OxlintConfig, PENDING_COMPAT_ADAPTERS, PackageJsonIntlayerDependencies, PackageManager, ResolveDevScriptParams, RoutingMode, addIntlayerRulesToOxlintConfig, detectCompatI18nLibraries, detectJsonLocalePattern, detectLinguiCatalogPattern, detectMissingIntlayerPackages, detectNextIntlMessagesPattern, detectPackageManager, enableIntlayerEditorConfig, ensureDirectory, ensureNamedImport, exists, fetchLatestPackageVersion, findLockFileDir, findPackageJsonFiles, findTsConfigFiles, firstInsertIndex, getGithubWorkflows, getIntlayerDependencies, getIntlayerDependencyUpgrades, getMetroConfigTemplate, hasIntlayerVitePlugin, hasLegacyEslint, hasLintTooling, hasUrlRoutingFramework, installPackages, isIntlayerPackageName, isModuleScopeBinding, isVersionAtLeast, listIntlayerDependencies, moveCompatPackagesToDevDependencies, normalizeVersion, parseJSONWithComments, readFileFromRoot, replaceViteConfigPluginImportSource, resolveDevScript, resolveGithubWorkflowsContext, runPackageInstall, setIntlayerConfigCompilerOutput, setIntlayerConfigEnableProxy, setIntlayerConfigRoutingMode, setIntlayerConfigRoutingStorageOnly, setupNextCompilerBabelConfig, toRange, updateAstroConfig, updateIntlayerConfigWithSyncPlugin, updateMetroConfig, updateNextConfig, updateNextConfigForNextI18next, updateNextConfigForNextIntl, updateNextConfigForNextTranslate, updateNuxtConfig, updateNuxtConfigForNuxtjsI18n, updateViteConfig, updateViteConfigForCompatPlugin, updateViteConfigForVueI18n, writeFileToRoot, writeIntlayerDependencyUpgrades };
@@ -0,0 +1,28 @@
1
+ //#region src/init/utils/lintConfig.d.ts
2
+ /**
3
+ * The Intlayer lint setup, as `intlayer init` writes it into `.oxlintrc.json`.
4
+ *
5
+ * Declared locally on purpose: `@intlayer/engine` is installed by every Intlayer
6
+ * user, so it must not depend on a lint plugin to write a handful of strings
7
+ * into a JSON file. oxlint resolves a plugin's *rules* but not its shipped
8
+ * *configs*, so the preset cannot be referenced by name there either.
9
+ *
10
+ * Mirrors the `recommended` preset of `eslint-plugin-intlayer`; keep in sync
11
+ * when a rule is enabled by default there.
12
+ */
13
+ export declare const LINT_PLUGIN_PACKAGE_NAME = "eslint-plugin-intlayer";
14
+ /** The `.oxlintrc.json` fields init reads and writes. */
15
+ export type OxlintConfig = {
16
+ jsPlugins?: string[];
17
+ rules?: Record<string, unknown>;
18
+ ignorePatterns?: string[];
19
+ };
20
+ /**
21
+ * Adds the Intlayer plugin, the `recommended` rules and the generated-output
22
+ * ignore to an oxlint config, in place. Rules the user already set are kept.
23
+ *
24
+ * @returns Whether anything was added.
25
+ */
26
+ export declare const addIntlayerRulesToOxlintConfig: (oxlintConfig: OxlintConfig) => boolean;
27
+ //#endregion
28
+ //# sourceMappingURL=lintConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lintConfig.d.ts","names":[],"sources":["../../../../src/init/utils/lintConfig.ts"],"mappings":";;;;;;;;;;;;qBAWa;;YAaD;EACV;EACA,QAAQ;EACR;;;;;;;;qBASW,iCAA8B,cAC3B"}
@@ -83,7 +83,20 @@ export type IntlayerPackageAnalysis = {
83
83
  * library requires alias injection.
84
84
  */
85
85
  compatVitePluginConfig: CompatVitePluginConfig | undefined;
86
+ /**
87
+ * Compat adapters the project would need but that are not published yet
88
+ * (see {@link PENDING_COMPAT_ADAPTERS}). The original library is kept as is;
89
+ * only its catalogs are synced.
90
+ */
91
+ pendingCompatAdapters: string[];
86
92
  };
93
+ /**
94
+ * Compat adapters that live in `compat-comming/` and are not published to npm
95
+ * yet. Installing one fails the whole install command, so init keeps the
96
+ * original library, skips the adapter and its bundler / framework wiring, and
97
+ * only syncs the catalogs. Remove an entry once its package is released.
98
+ */
99
+ export declare const PENDING_COMPAT_ADAPTERS: ReadonlySet<string>;
87
100
  /**
88
101
  * Detects the package manager in use by checking for lock files in the
89
102
  * project root, then the `packageManager` field of its `package.json`. Falls
@@ -166,14 +179,24 @@ export declare const moveCompatPackagesToDevDependencies: (packageJson: Record<s
166
179
  * @param dependencies - Merged dependencies of the target project.
167
180
  */
168
181
  export declare const detectCompatI18nLibraries: (dependencies: Record<string, string>) => string[];
182
+ /** Lowest ESLint major `eslint-plugin-intlayer` supports (flat config). */
183
+ export declare const MINIMUM_ESLINT_MAJOR = 9;
184
+ /**
185
+ * True when the project pins ESLint below {@link MINIMUM_ESLINT_MAJOR}.
186
+ * Installing the plugin there fails on its `eslint` peer range (and takes the
187
+ * whole install command down with it). Ranges without a version number
188
+ * (`latest`, `*`, `catalog:`) are assumed current.
189
+ *
190
+ * @param dependencies - Merged dependencies of the target project.
191
+ */
192
+ export declare const hasLegacyEslint: (dependencies: Record<string, string>) => boolean;
169
193
  /**
170
- * True when the project already lints, and so has something to plug the
171
- * Intlayer lint rules into.
194
+ * True when the project already lints with a linter the Intlayer rules can
195
+ * plug into: oxlint, or ESLint 9+.
172
196
  *
173
- * `eslint-plugin-intlayer` loads in both ESLint and oxlint, so either linter is
174
- * enough. Shared with the init flow so that installing the plugin and wiring up
175
- * its configuration are gated on exactly the same condition — a project that
176
- * does not lint is left alone entirely.
197
+ * Shared with the init flow so that installing the plugin and wiring up its
198
+ * configuration are gated on exactly the same condition — a project that does
199
+ * not lint, or lints with ESLint 8, is left alone.
177
200
  *
178
201
  * @param dependencies - Merged dependencies of the target project.
179
202
  */
@@ -1 +1 @@
1
- {"version":3,"file":"packageManager.d.ts","names":[],"sources":["../../../../src/init/utils/packageManager.ts"],"mappings":";;YAKY;;;;;YAMA;;;;;;;EAOV;;;;;EAKA;;;;;EAKA;;;;;;;;;;;;;;;EAeA;;;;;;;YAQU;;EAEV;;EAEA;;;;;;;;EAQA;;IAEE;;IAEA;;;;YAKQ;;EAEV;;EAEA;;EAEA;;;;;;EAMA,kBAAkB;;;;;;EAMlB,wBAAwB;;;;;;;qBA8Cb,uBAAoB,oBAAsB;;;;;;qBAY1C,kBAAe;;;;;;;YA2ChB;;;;;;EAMV;;;;;;EAMA,eAAe;;;;EAIf,kBAAkB;;;YAIR;;EAEV;;;;;;EAMA;;;;;EAKA,cAAc;;;;;;;;qBASH,gCAAgC;;;;;qBA+GhC,6BAA6B;;;;;;;;qBAc7B,sCAAmC,aACjC;;;;;;;;;;qBA8BF,4BAAyB,cACtB;;;;;;;;;;;;qBAiBH,iBAAc,cAAkB;qBAGhC,gCAA6B,iBACvB,wBAAsB,UAC9B,iCACR;;;;;qBA4VU,kBAAe,iBACX,oBACG,gBACF,gBAAc;;;;;;;;;;qBAgBnB,wBAAqB;;;;;;;;qBAarB,mBAAgB;;;;;;qBAahB,oBAAiB,iBACb,gBACC"}
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;;EAEA;;;;;;EAMA,kBAAkB;;;;;;EAMlB,wBAAwB;;;;;;EAMxB;;;;;;;;qBASW,yBAAyB;;;;;;qBAiDzB,uBAAoB,oBAAsB;;;;;;qBAY1C,kBAAe;;;;;;;YA2ChB;;;;;;EAMV;;;;;;EAMA,eAAe;;;;EAIf,kBAAkB;;;YAIR;;EAEV;;;;;;EAMA;;;;;EAKA,cAAc;;;;;;;;qBASH,gCAAgC;;;;;qBA+GhC,6BAA6B;;;;;;;;qBAc7B,sCAAmC,aACjC;;;;;;;;;;qBA8BF,4BAAyB,cACtB;;qBAOH;;;;;;;;;qBAUA,kBAAe,cACZ;;;;;;;;;;;qBAiBH,iBAAc,cAAkB;qBAIhC,gCAA6B,iBACvB,wBAAsB,UAC9B,iCACR;;;;;qBAyZU,kBAAe,iBACX,oBACG,gBACF,gBAAc;;;;;;;;;;qBAgBnB,wBAAqB;;;;;;;;qBAarB,mBAAgB;;;;;;qBAahB,oBAAiB,iBACb,gBACC"}
@@ -0,0 +1,9 @@
1
+ //#region src/init/utils/urlRoutingFramework.d.ts
2
+ /**
3
+ * Returns true when the project is a web frontend for which locale routing is
4
+ * meaningful. React Native / Expo apps are excluded (no URL routing), as are
5
+ * backend-only and plain Node projects.
6
+ */
7
+ export declare const hasUrlRoutingFramework: (dependencies: Record<string, string>) => boolean;
8
+ //#endregion
9
+ //# sourceMappingURL=urlRoutingFramework.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"urlRoutingFramework.d.ts","names":[],"sources":["../../../../src/init/utils/urlRoutingFramework.ts"],"mappings":";;;;;;qBAgCa,yBAAsB,cACnB"}
@@ -13,7 +13,9 @@ export type InitConfigOptions = {
13
13
  /**
14
14
  * Initialize the Intlayer configuration file. No-ops when a configuration file
15
15
  * already exists at `baseDir`.
16
+ *
17
+ * @returns `true` when the file was created, `false` when one already existed.
16
18
  */
17
- export declare const initConfig: (format: (typeof configurationFilesCandidates)[number], baseDir: string, options?: InitConfigOptions) => Promise<void>;
19
+ export declare const initConfig: (format: (typeof configurationFilesCandidates)[number], baseDir: string, options?: InitConfigOptions) => Promise<boolean>;
18
20
  //#endregion
19
21
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/initConfig/index.ts"],"mappings":";;;YA6BY;;EAEV;;;;;EAKA;;;;;;qBAOW,aAAU,gBACL,uCAAqC,iBACtC,UACL,sBAAiB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/initConfig/index.ts"],"mappings":";;;YA6BY;;EAEV;;;;;EAKA;;;;;;;;qBASW,aAAU,gBACL,uCAAqC,iBACtC,UACL,sBACT"}
@@ -1,5 +1,9 @@
1
1
  import { IntlayerConfig } from "@intlayer/types/config";
2
2
  //#region src/loadDictionaries/logTypeScriptErrors.d.ts
3
+ /**
4
+ * Type-checks content declaration files and logs errors as warnings.
5
+ * Supports both the classic (`typescript` <= 6) and native (>= 7) compilers.
6
+ */
3
7
  export declare const logTypeScriptErrors: (filePaths: string[], configuration: IntlayerConfig) => Promise<void>;
4
8
  //#endregion
5
9
  //# sourceMappingURL=logTypeScriptErrors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logTypeScriptErrors.d.ts","names":[],"sources":["../../../src/loadDictionaries/logTypeScriptErrors.ts"],"mappings":";;qBAIa,sBAAmB,qBACX,eACJ,mBAAc"}
1
+ {"version":3,"file":"logTypeScriptErrors.d.ts","names":[],"sources":["../../../src/loadDictionaries/logTypeScriptErrors.ts"],"mappings":";;;;;;qBAoQa,sBAAmB,qBACX,eACJ,mBACd"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/engine",
3
- "version": "9.5.9-canary.0",
3
+ "version": "9.5.10",
4
4
  "private": false,
5
5
  "description": "Scans and builds Intlayer declaration files into dictionaries based on Intlayer configuration.",
6
6
  "keywords": [
@@ -142,11 +142,11 @@
142
142
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
143
143
  },
144
144
  "dependencies": {
145
- "@intlayer/api": "9.5.8",
146
- "@intlayer/config": "9.5.8",
147
- "@intlayer/core": "9.5.8",
148
- "@intlayer/dictionaries-entry": "9.5.8",
149
- "@intlayer/types": "9.5.8",
145
+ "@intlayer/api": "9.5.10",
146
+ "@intlayer/config": "9.5.10",
147
+ "@intlayer/core": "9.5.10",
148
+ "@intlayer/dictionaries-entry": "9.5.10",
149
+ "@intlayer/types": "9.5.10",
150
150
  "@parcel/watcher": "2.6.0",
151
151
  "defu": "6.1.7",
152
152
  "fast-glob": "3.3.3",
@@ -162,11 +162,11 @@
162
162
  "rimraf": "6.1.3",
163
163
  "tsdown": "0.23.0",
164
164
  "typescript": "7.0.2",
165
- "vitest": "5.0.1",
165
+ "vitest": "5.0.2",
166
166
  "zod": "4.6.5"
167
167
  },
168
168
  "peerDependencies": {
169
- "@intlayer/babel": "9.5.8"
169
+ "@intlayer/babel": "9.5.10"
170
170
  },
171
171
  "peerDependenciesMeta": {
172
172
  "@intlayer/babel": {