polen 0.8.0-next.9 → 0.8.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 (561) hide show
  1. package/README.md +25 -0
  2. package/build/api/api.d.ts +3 -3
  3. package/build/api/api.js +3 -3
  4. package/build/api/builder/builder.d.ts +1 -1
  5. package/build/api/builder/builder.d.ts.map +1 -1
  6. package/build/api/builder/builder.js +12 -4
  7. package/build/api/builder/builder.js.map +1 -1
  8. package/build/api/builder/index.d.ts +1 -1
  9. package/build/api/builder/index.js +1 -1
  10. package/build/api/config/config.d.ts +4 -4
  11. package/build/api/config/config.js +4 -4
  12. package/build/api/config/configurator.d.ts +21 -4
  13. package/build/api/config/configurator.d.ts.map +1 -1
  14. package/build/api/config/configurator.js +6 -2
  15. package/build/api/config/configurator.js.map +1 -1
  16. package/build/api/config/define.d.ts +1 -1
  17. package/build/api/config/index.d.ts +1 -1
  18. package/build/api/config/index.js +1 -1
  19. package/build/api/config/load.d.ts +1 -1
  20. package/build/api/config/load.d.ts.map +1 -1
  21. package/build/api/config/load.js +71 -19
  22. package/build/api/config/load.js.map +1 -1
  23. package/build/api/config/merge.d.ts +1 -1
  24. package/build/api/config/merge.js +1 -1
  25. package/build/api/config/merge.js.map +1 -1
  26. package/build/api/config-resolver/config-resolver.d.ts +2 -2
  27. package/build/api/config-resolver/config-resolver.js +2 -2
  28. package/build/api/config-resolver/index.d.ts +1 -1
  29. package/build/api/config-resolver/index.js +1 -1
  30. package/build/api/config-resolver/resolve.d.ts +3 -3
  31. package/build/api/config-resolver/resolve.d.ts.map +1 -1
  32. package/build/api/config-resolver/resolve.js +8 -5
  33. package/build/api/config-resolver/resolve.js.map +1 -1
  34. package/build/api/config-resolver/vite.d.ts +2 -2
  35. package/build/api/config-resolver/vite.d.ts.map +1 -1
  36. package/build/api/config-resolver/vite.js +2 -2
  37. package/build/api/config-resolver/vite.js.map +1 -1
  38. package/build/api/index.d.ts +1 -1
  39. package/build/api/index.js +1 -1
  40. package/build/api/schema/data-sources/data-sources.d.ts +3 -3
  41. package/build/api/schema/data-sources/data-sources.js +3 -3
  42. package/build/api/schema/data-sources/index.d.ts +1 -1
  43. package/build/api/schema/data-sources/index.js +1 -1
  44. package/build/api/schema/data-sources/memory/memory.d.ts +1 -1
  45. package/build/api/schema/data-sources/memory/memory.js +2 -2
  46. package/build/api/schema/data-sources/memory/memory.js.map +1 -1
  47. package/build/api/schema/data-sources/schema-directory/file-name-expression/index.d.ts +1 -1
  48. package/build/api/schema/data-sources/schema-directory/file-name-expression/index.js +1 -1
  49. package/build/api/schema/data-sources/schema-directory/schema-directory.d.ts +1 -1
  50. package/build/api/schema/data-sources/schema-directory/schema-directory.js +5 -5
  51. package/build/api/schema/data-sources/schema-directory/schema-directory.js.map +1 -1
  52. package/build/api/schema/data-sources/schema-file/schema-file.d.ts +1 -1
  53. package/build/api/schema/data-sources/schema-file/schema-file.js +2 -2
  54. package/build/api/schema/data-sources/schema-file/schema-file.js.map +1 -1
  55. package/build/api/schema/index.d.ts +1 -1
  56. package/build/api/schema/index.js +1 -1
  57. package/build/api/schema/read.d.ts +2 -2
  58. package/build/api/schema/read.js +1 -1
  59. package/build/api/schema/schema.d.ts +3 -3
  60. package/build/api/schema/schema.d.ts.map +1 -1
  61. package/build/api/schema/schema.js +2 -2
  62. package/build/api/schema-augmentation/augmentations/description.d.ts +2 -2
  63. package/build/api/schema-augmentation/augmentations/description.d.ts.map +1 -1
  64. package/build/api/schema-augmentation/augmentations/description.js +1 -1
  65. package/build/api/schema-augmentation/index.d.ts +1 -1
  66. package/build/api/schema-augmentation/index.js +1 -1
  67. package/build/api/schema-augmentation/schema-augmentation.d.ts +2 -2
  68. package/build/api/schema-augmentation/schema-augmentation.d.ts.map +1 -1
  69. package/build/api/schema-augmentation/schema-augmentation.js +1 -1
  70. package/build/api/schema-augmentation/target.d.ts +1 -1
  71. package/build/api/schema-augmentation/target.d.ts.map +1 -1
  72. package/build/api/schema-augmentation/target.js +1 -1
  73. package/build/api/schema-augmentation/target.js.map +1 -1
  74. package/build/api/singletons/markdown/index.d.ts +1 -1
  75. package/build/api/singletons/markdown/index.js +1 -1
  76. package/build/api/vite/log-filters.d.ts +1 -1
  77. package/build/api/vite/log-filters.d.ts.map +1 -1
  78. package/build/api/vite/log-filters.js +1 -1
  79. package/build/api/vite/log-filters.js.map +1 -1
  80. package/build/api/vite/logger.d.ts +1 -1
  81. package/build/api/vite/logger.d.ts.map +1 -1
  82. package/build/api/vite/logger.js +21 -7
  83. package/build/api/vite/logger.js.map +1 -1
  84. package/build/api/vite/plugins/build.d.ts +2 -2
  85. package/build/api/vite/plugins/build.d.ts.map +1 -1
  86. package/build/api/vite/plugins/build.js +14 -6
  87. package/build/api/vite/plugins/build.js.map +1 -1
  88. package/build/api/vite/plugins/core.d.ts +3 -3
  89. package/build/api/vite/plugins/core.d.ts.map +1 -1
  90. package/build/api/vite/plugins/core.js +148 -208
  91. package/build/api/vite/plugins/core.js.map +1 -1
  92. package/build/api/vite/plugins/main.d.ts +2 -2
  93. package/build/api/vite/plugins/main.d.ts.map +1 -1
  94. package/build/api/vite/plugins/main.js +3 -3
  95. package/build/api/vite/plugins/pages-tree.d.ts +16 -0
  96. package/build/api/vite/plugins/pages-tree.d.ts.map +1 -0
  97. package/build/api/vite/plugins/pages-tree.js +152 -0
  98. package/build/api/vite/plugins/pages-tree.js.map +1 -0
  99. package/build/api/vite/plugins/serve.d.ts +2 -2
  100. package/build/api/vite/plugins/serve.d.ts.map +1 -1
  101. package/build/api/vite/plugins/serve.js +41 -26
  102. package/build/api/vite/plugins/serve.js.map +1 -1
  103. package/build/api/vite/vi.d.ts +2 -2
  104. package/build/api/vite/vi.d.ts.map +1 -1
  105. package/build/api/vite/vi.js +2 -2
  106. package/build/api/vite/vi.js.map +1 -1
  107. package/build/cli/_/self-contained-mode.d.ts +16 -0
  108. package/build/cli/_/self-contained-mode.d.ts.map +1 -0
  109. package/build/cli/_/self-contained-mode.js +58 -0
  110. package/build/cli/_/self-contained-mode.js.map +1 -0
  111. package/build/cli/commands/build.js +2 -2
  112. package/build/cli/commands/build.js.map +1 -1
  113. package/build/cli/commands/dev.js +3 -4
  114. package/build/cli/commands/dev.js.map +1 -1
  115. package/build/cli/commands/open.js +4 -4
  116. package/build/cli/commands/open.js.map +1 -1
  117. package/build/dep/graphql-inspector/index.d.ts +1 -1
  118. package/build/dep/graphql-inspector/index.js +1 -1
  119. package/build/dep/hono/hono.d.ts +1 -1
  120. package/build/dep/hono/hono.js +1 -1
  121. package/build/dep/hono/index.d.ts +1 -1
  122. package/build/dep/hono/index.js +1 -1
  123. package/build/dep/superjson/index.d.ts +1 -1
  124. package/build/dep/superjson/index.js +1 -1
  125. package/build/dep/tiny-globby/index.d.ts +1 -1
  126. package/build/dep/tiny-globby/index.js +1 -1
  127. package/build/dep/vite/index.d.ts +1 -1
  128. package/build/dep/vite/index.js +1 -1
  129. package/build/exports/index.d.ts +1 -1
  130. package/build/exports/index.js +1 -1
  131. package/build/exports/polen.d.ts +3 -3
  132. package/build/exports/polen.d.ts.map +1 -1
  133. package/build/exports/polen.js +3 -3
  134. package/build/exports/polen.js.map +1 -1
  135. package/build/lib/apple-touch-icon/index.d.ts +1 -1
  136. package/build/lib/apple-touch-icon/index.js +1 -1
  137. package/build/lib/debug/debug.d.ts +3 -3
  138. package/build/lib/debug/debug.d.ts.map +1 -1
  139. package/build/lib/debug/debug.js +39 -10
  140. package/build/lib/debug/debug.js.map +1 -1
  141. package/build/lib/debug/environment-variable.d.ts +2 -1
  142. package/build/lib/debug/environment-variable.d.ts.map +1 -1
  143. package/build/lib/debug/environment-variable.js +27 -7
  144. package/build/lib/debug/environment-variable.js.map +1 -1
  145. package/build/lib/debug/index.d.ts +1 -1
  146. package/build/lib/debug/index.js +1 -1
  147. package/build/lib/errors/ContextualAggregateError.d.ts +1 -1
  148. package/build/lib/errors/ContextualAggregateError.js +1 -1
  149. package/build/lib/errors/ContextualError.d.ts +1 -1
  150. package/build/lib/errors/ErrorInternal.d.ts +2 -2
  151. package/build/lib/errors/ErrorInternal.js +1 -1
  152. package/build/lib/errors/errors.d.ts +4 -4
  153. package/build/lib/errors/errors.js +4 -4
  154. package/build/lib/errors/index.d.ts +1 -1
  155. package/build/lib/errors/index.js +1 -1
  156. package/build/lib/errors/types.d.ts +1 -1
  157. package/build/lib/favicon/index.d.ts +1 -1
  158. package/build/lib/favicon/index.js +1 -1
  159. package/build/lib/file-router/diagnostic-reporter.d.ts +3 -0
  160. package/build/lib/file-router/diagnostic-reporter.d.ts.map +1 -0
  161. package/build/lib/file-router/diagnostic-reporter.js +18 -0
  162. package/build/lib/file-router/diagnostic-reporter.js.map +1 -0
  163. package/build/lib/file-router/file-router.d.ts +5 -3
  164. package/build/lib/file-router/file-router.d.ts.map +1 -1
  165. package/build/lib/file-router/file-router.js +5 -3
  166. package/build/lib/file-router/file-router.js.map +1 -1
  167. package/build/lib/file-router/index.d.ts +1 -1
  168. package/build/lib/file-router/index.js +1 -1
  169. package/build/lib/file-router/linter.d.ts +25 -2
  170. package/build/lib/file-router/linter.d.ts.map +1 -1
  171. package/build/lib/file-router/linter.js +44 -3
  172. package/build/lib/file-router/linter.js.map +1 -1
  173. package/build/lib/file-router/route.d.ts +1 -0
  174. package/build/lib/file-router/route.d.ts.map +1 -1
  175. package/build/lib/file-router/route.js +1 -1
  176. package/build/lib/file-router/route.js.map +1 -1
  177. package/build/lib/file-router/scan-tree.d.ts +20 -0
  178. package/build/lib/file-router/scan-tree.d.ts.map +1 -0
  179. package/build/lib/file-router/scan-tree.js +158 -0
  180. package/build/lib/file-router/scan-tree.js.map +1 -0
  181. package/build/lib/file-router/scan.d.ts +2 -2
  182. package/build/lib/file-router/scan.d.ts.map +1 -1
  183. package/build/lib/file-router/scan.js +26 -10
  184. package/build/lib/file-router/scan.js.map +1 -1
  185. package/build/lib/file-router/sidebar/index.d.ts +3 -0
  186. package/build/lib/file-router/sidebar/index.d.ts.map +1 -0
  187. package/build/lib/file-router/sidebar/index.js +4 -0
  188. package/build/lib/file-router/sidebar/index.js.map +1 -0
  189. package/build/lib/file-router/sidebar/sidebar-tree.d.ts +9 -0
  190. package/build/lib/file-router/sidebar/sidebar-tree.d.ts.map +1 -0
  191. package/build/lib/file-router/sidebar/sidebar-tree.js +85 -0
  192. package/build/lib/file-router/sidebar/sidebar-tree.js.map +1 -0
  193. package/build/lib/file-router/sidebar/types.d.ts +17 -0
  194. package/build/lib/file-router/sidebar/types.d.ts.map +1 -0
  195. package/build/lib/file-router/sidebar/types.js +2 -0
  196. package/build/lib/file-router/sidebar/types.js.map +1 -0
  197. package/build/lib/grafaid/_Nodes.d.ts +1 -1
  198. package/build/lib/grafaid/_Nodes.js +1 -1
  199. package/build/lib/grafaid/document/OperationTypeNode.d.ts +1 -1
  200. package/build/lib/grafaid/document/OperationTypeNode.js +1 -1
  201. package/build/lib/grafaid/document/kind.d.ts +1 -1
  202. package/build/lib/grafaid/document/kind.js +1 -1
  203. package/build/lib/grafaid/document.d.ts +4 -4
  204. package/build/lib/grafaid/document.js +6 -6
  205. package/build/lib/grafaid/grafaid.d.ts +4 -4
  206. package/build/lib/grafaid/grafaid.js +4 -4
  207. package/build/lib/grafaid/graphql.d.ts +2 -2
  208. package/build/lib/grafaid/graphql.js +2 -2
  209. package/build/lib/grafaid/http/__.d.ts +1 -1
  210. package/build/lib/grafaid/http/__.js +1 -1
  211. package/build/lib/grafaid/http/http.js +1 -1
  212. package/build/lib/grafaid/index.d.ts +1 -1
  213. package/build/lib/grafaid/index.js +1 -1
  214. package/build/lib/grafaid/schema/KindMap/_.d.ts +3 -3
  215. package/build/lib/grafaid/schema/KindMap/_.js +4 -4
  216. package/build/lib/grafaid/schema/KindMap/__.d.ts +2 -2
  217. package/build/lib/grafaid/schema/KindMap/__.js +1 -1
  218. package/build/lib/grafaid/schema/OperationType/__.d.ts +2 -2
  219. package/build/lib/grafaid/schema/OperationType/__.js +1 -1
  220. package/build/lib/grafaid/schema/RootDetails.d.ts +3 -3
  221. package/build/lib/grafaid/schema/RootDetails.js +2 -2
  222. package/build/lib/grafaid/schema/RootTypeMap.d.ts +2 -2
  223. package/build/lib/grafaid/schema/RootTypeMap.js +2 -2
  224. package/build/lib/grafaid/schema/nodes-like.d.ts +1 -1
  225. package/build/lib/grafaid/schema/nodes-like.js +1 -1
  226. package/build/lib/grafaid/schema/schema.d.ts +14 -14
  227. package/build/lib/grafaid/schema/schema.js +15 -15
  228. package/build/lib/grafaid/schema/type-kind-name.d.ts +1 -1
  229. package/build/lib/grafaid/schema/type-kind-name.js +1 -1
  230. package/build/lib/grafaid/schema/type.d.ts +1 -1
  231. package/build/lib/grafaid/schema/typeGuards.js +1 -1
  232. package/build/lib/grafaid-old/grafaid.d.ts +1 -1
  233. package/build/lib/grafaid-old/grafaid.js +1 -1
  234. package/build/lib/grafaid-old/index.d.ts +1 -1
  235. package/build/lib/grafaid-old/index.js +1 -1
  236. package/build/lib/graphql-change/graphql-change.d.ts +2 -2
  237. package/build/lib/graphql-change/graphql-change.d.ts.map +1 -1
  238. package/build/lib/graphql-change/graphql-change.js +1 -1
  239. package/build/lib/graphql-change/graphql-change.js.map +1 -1
  240. package/build/lib/graphql-change/index.d.ts +1 -1
  241. package/build/lib/graphql-change/index.js +1 -1
  242. package/build/lib/graphql-changeset/graphql-changeset.d.ts +2 -2
  243. package/build/lib/graphql-changeset/graphql-changeset.d.ts.map +1 -1
  244. package/build/lib/graphql-changeset/index.d.ts +1 -1
  245. package/build/lib/graphql-changeset/index.js +1 -1
  246. package/build/lib/graphql-schema-loader/graphql-schema-loader.d.ts +1 -1
  247. package/build/lib/graphql-schema-loader/graphql-schema-loader.d.ts.map +1 -1
  248. package/build/lib/graphql-schema-loader/graphql-schema-loader.js +1 -1
  249. package/build/lib/graphql-schema-loader/graphql-schema-loader.js.map +1 -1
  250. package/build/lib/graphql-schema-loader/index.d.ts +1 -1
  251. package/build/lib/graphql-schema-loader/index.js +1 -1
  252. package/build/lib/hono-aid/hono-aid.d.ts +1 -1
  253. package/build/lib/hono-aid/hono-aid.d.ts.map +1 -1
  254. package/build/lib/hono-aid/index.d.ts +1 -1
  255. package/build/lib/hono-aid/index.js +1 -1
  256. package/build/lib/kit-temp.d.ts +6 -0
  257. package/build/lib/kit-temp.d.ts.map +1 -1
  258. package/build/lib/kit-temp.js +3 -0
  259. package/build/lib/kit-temp.js.map +1 -1
  260. package/build/lib/react-router-aid/get-paths-patterns.d.ts +1 -1
  261. package/build/lib/react-router-aid/get-paths-patterns.d.ts.map +1 -1
  262. package/build/lib/react-router-aid/index.d.ts +1 -1
  263. package/build/lib/react-router-aid/index.js +1 -1
  264. package/build/lib/react-router-aid/react-router-aid.d.ts +2 -2
  265. package/build/lib/react-router-aid/react-router-aid.d.ts.map +1 -1
  266. package/build/lib/react-router-aid/react-router-aid.js +1 -1
  267. package/build/lib/react-router-loader/react-router-loader.js +1 -1
  268. package/build/lib/stack-processor/index.d.ts +1 -1
  269. package/build/lib/stack-processor/index.js +1 -1
  270. package/build/lib/superjson-codec/codec.d.ts +1 -1
  271. package/build/lib/superjson-codec/codec.d.ts.map +1 -1
  272. package/build/lib/superjson-codec/codecs/graphql-schema.d.ts +2 -2
  273. package/build/lib/superjson-codec/codecs/graphql-schema.d.ts.map +1 -1
  274. package/build/lib/superjson-codec/codecs/graphql-schema.js +2 -2
  275. package/build/lib/superjson-codec/codecs/graphql-schema.js.map +1 -1
  276. package/build/lib/superjson-codec/exports.d.ts +2 -2
  277. package/build/lib/superjson-codec/exports.js +2 -2
  278. package/build/lib/superjson-codec/index.d.ts +1 -1
  279. package/build/lib/superjson-codec/index.js +1 -1
  280. package/build/lib/tree/index.d.ts +3 -0
  281. package/build/lib/tree/index.d.ts.map +1 -0
  282. package/build/lib/tree/index.js +2 -0
  283. package/build/lib/tree/index.js.map +1 -0
  284. package/build/lib/tree/tree.d.ts +62 -0
  285. package/build/lib/tree/tree.d.ts.map +1 -0
  286. package/build/lib/tree/tree.js +134 -0
  287. package/build/lib/tree/tree.js.map +1 -0
  288. package/build/lib/vite-plugin-config/vite-plugin-config.d.ts +1 -1
  289. package/build/lib/vite-plugin-config/vite-plugin-config.d.ts.map +1 -1
  290. package/build/lib/vite-plugin-mdx/index.d.ts +1 -1
  291. package/build/lib/vite-plugin-mdx/index.d.ts.map +1 -1
  292. package/build/lib/vite-plugin-mdx/index.js +1 -3
  293. package/build/lib/vite-plugin-mdx/index.js.map +1 -1
  294. package/build/lib/vite-plugin-mdx/vite-plugin-mdx.d.ts +22 -0
  295. package/build/lib/vite-plugin-mdx/vite-plugin-mdx.d.ts.map +1 -1
  296. package/build/lib/vite-plugin-mdx/vite-plugin-mdx.js +55 -71
  297. package/build/lib/vite-plugin-mdx/vite-plugin-mdx.js.map +1 -1
  298. package/build/lib/vite-plugins/index.d.ts +1 -1
  299. package/build/lib/vite-plugins/index.js +1 -1
  300. package/build/lib/vite-plugins/vite-plugins.d.ts +1 -1
  301. package/build/lib/vite-plugins/vite-plugins.js +1 -1
  302. package/build/lib/vite-virtual/debug.d.ts +3 -0
  303. package/build/lib/vite-virtual/debug.d.ts.map +1 -0
  304. package/build/lib/vite-virtual/debug.js +3 -0
  305. package/build/lib/vite-virtual/debug.js.map +1 -0
  306. package/build/lib/vite-virtual/hooks.d.ts +1 -1
  307. package/build/lib/vite-virtual/hooks.d.ts.map +1 -1
  308. package/build/lib/vite-virtual/identified-loader.d.ts +3 -3
  309. package/build/lib/vite-virtual/identified-loader.d.ts.map +1 -1
  310. package/build/lib/vite-virtual/identified-loader.js +2 -2
  311. package/build/lib/vite-virtual/identified-loader.js.map +1 -1
  312. package/build/lib/vite-virtual/identifier.js +1 -1
  313. package/build/lib/vite-virtual/index.d.ts +1 -1
  314. package/build/lib/vite-virtual/index.js +1 -1
  315. package/build/lib/vite-virtual/vite-virtual.d.ts +3 -3
  316. package/build/lib/vite-virtual/vite-virtual.js +3 -3
  317. package/build/package-paths.d.ts +7 -0
  318. package/build/package-paths.d.ts.map +1 -1
  319. package/build/package-paths.js +12 -1
  320. package/build/package-paths.js.map +1 -1
  321. package/build/project-data.d.ts +4 -20
  322. package/build/project-data.d.ts.map +1 -1
  323. package/build/singletons/debug.d.ts +3 -0
  324. package/build/singletons/debug.d.ts.map +1 -0
  325. package/build/singletons/debug.js +3 -0
  326. package/build/singletons/debug.js.map +1 -0
  327. package/build/singletons/superjson.d.ts +1 -1
  328. package/build/singletons/superjson.d.ts.map +1 -1
  329. package/build/singletons/superjson.js +2 -2
  330. package/build/singletons/superjson.js.map +1 -1
  331. package/build/template/components/ArgumentListAnnotation.jsx +1 -1
  332. package/build/template/components/ArgumentListAnnotation.jsx.map +1 -1
  333. package/build/template/components/Changelog.d.ts +1 -1
  334. package/build/template/components/Changelog.jsx +2 -2
  335. package/build/template/components/Changelog.jsx.map +1 -1
  336. package/build/template/components/DeprecationReason.d.ts +1 -1
  337. package/build/template/components/DeprecationReason.d.ts.map +1 -1
  338. package/build/template/components/Description.d.ts +1 -1
  339. package/build/template/components/Description.d.ts.map +1 -1
  340. package/build/template/components/Field.d.ts +1 -1
  341. package/build/template/components/Field.d.ts.map +1 -1
  342. package/build/template/components/Field.jsx +1 -1
  343. package/build/template/components/Field.jsx.map +1 -1
  344. package/build/template/components/FieldList.d.ts +1 -1
  345. package/build/template/components/FieldList.d.ts.map +1 -1
  346. package/build/template/components/FieldList.jsx +1 -1
  347. package/build/template/components/FieldList.jsx.map +1 -1
  348. package/build/template/components/FieldListSection.jsx +1 -1
  349. package/build/template/components/FieldListSection.jsx.map +1 -1
  350. package/build/template/components/Markdown.jsx +1 -1
  351. package/build/template/components/Markdown.jsx.map +1 -1
  352. package/build/template/components/Sidebar.d.ts +2 -2
  353. package/build/template/components/Sidebar.d.ts.map +1 -1
  354. package/build/template/components/Sidebar.jsx +2 -2
  355. package/build/template/components/Sidebar.jsx.map +1 -1
  356. package/build/template/components/TypeIndex.jsx +1 -1
  357. package/build/template/components/TypeIndex.jsx.map +1 -1
  358. package/build/template/components/graphql/type-kind-icon.d.ts +2 -2
  359. package/build/template/components/graphql/type-kind-icon.d.ts.map +1 -1
  360. package/build/template/components/graphql/type-kind-icon.jsx +1 -1
  361. package/build/template/components/graphql/type-link.d.ts +1 -1
  362. package/build/template/components/graphql/type-link.d.ts.map +1 -1
  363. package/build/template/components/graphql/type-link.jsx +2 -2
  364. package/build/template/components/graphql/type-link.jsx.map +1 -1
  365. package/build/template/entry.client.jsx +1 -1
  366. package/build/template/entry.client.jsx.map +1 -1
  367. package/build/template/routes/changelog.d.ts +1 -1
  368. package/build/template/routes/changelog.jsx +2 -2
  369. package/build/template/routes/changelog.jsx.map +1 -1
  370. package/build/template/routes/index.d.ts +1 -1
  371. package/build/template/routes/index.d.ts.map +1 -1
  372. package/build/template/routes/index.jsx +1 -1
  373. package/build/template/routes/index.jsx.map +1 -1
  374. package/build/template/routes/reference.$type.$field.jsx +3 -3
  375. package/build/template/routes/reference.$type.$field.jsx.map +1 -1
  376. package/build/template/routes/reference.$type.jsx +2 -2
  377. package/build/template/routes/reference.$type.jsx.map +1 -1
  378. package/build/template/routes/reference.jsx +2 -2
  379. package/build/template/routes/reference.jsx.map +1 -1
  380. package/build/template/routes/root.d.ts +1 -1
  381. package/build/template/routes/root.d.ts.map +1 -1
  382. package/build/template/routes/root.jsx +3 -3
  383. package/build/template/routes/root.jsx.map +1 -1
  384. package/build/template/server/app.d.ts +1 -1
  385. package/build/template/server/app.d.ts.map +1 -1
  386. package/build/template/server/app.js +5 -4
  387. package/build/template/server/app.js.map +1 -1
  388. package/build/template/server/main.js +3 -3
  389. package/build/template/server/manifest.d.ts +1 -1
  390. package/build/template/server/manifest.d.ts.map +1 -1
  391. package/build/template/server/render-page.d.ts +1 -1
  392. package/build/template/server/render-page.d.ts.map +1 -1
  393. package/build/template/server/render-page.jsx +2 -2
  394. package/build/template/server/ssg/generate.d.ts +1 -1
  395. package/build/template/server/ssg/generate.d.ts.map +1 -1
  396. package/build/template/server/ssg/generate.js +3 -3
  397. package/build/template/server/ssg/generate.js.map +1 -1
  398. package/build/template/server/ssg/get-route-paths.js +2 -2
  399. package/build/template/server/ssg/get-route-paths.js.map +1 -1
  400. package/package.json +70 -54
  401. package/src/api/api.ts +3 -3
  402. package/src/api/builder/builder.ts +3 -3
  403. package/src/api/builder/index.ts +1 -1
  404. package/src/api/config/config.ts +4 -4
  405. package/src/api/config/configurator.ts +27 -5
  406. package/src/api/config/define.ts +1 -1
  407. package/src/api/config/index.ts +1 -1
  408. package/src/api/config/load.ts +74 -23
  409. package/src/api/config/merge.ts +2 -2
  410. package/src/api/config-resolver/config-resolver.ts +2 -2
  411. package/src/api/config-resolver/index.ts +1 -1
  412. package/src/api/config-resolver/resolve.ts +8 -5
  413. package/src/api/config-resolver/vite.ts +3 -3
  414. package/src/api/index.ts +1 -1
  415. package/src/api/schema/data-sources/data-sources.ts +3 -3
  416. package/src/api/schema/data-sources/index.ts +1 -1
  417. package/src/api/schema/data-sources/memory/memory.ts +4 -4
  418. package/src/api/schema/data-sources/schema-directory/file-name-expression/index.ts +1 -1
  419. package/src/api/schema/data-sources/schema-directory/schema-directory.ts +7 -7
  420. package/src/api/schema/data-sources/schema-file/schema-file.ts +4 -4
  421. package/src/api/schema/index.ts +1 -1
  422. package/src/api/schema/read.ts +2 -2
  423. package/src/api/schema/schema.ts +3 -3
  424. package/src/api/schema-augmentation/augmentations/description.ts +3 -3
  425. package/src/api/schema-augmentation/index.ts +1 -1
  426. package/src/api/schema-augmentation/schema-augmentation.ts +2 -2
  427. package/src/api/schema-augmentation/target.ts +1 -1
  428. package/src/api/singletons/markdown/index.ts +1 -1
  429. package/src/api/vite/log-filters.ts +1 -1
  430. package/src/api/vite/logger.ts +23 -7
  431. package/src/api/vite/plugins/build.ts +6 -6
  432. package/src/api/vite/plugins/core.ts +165 -245
  433. package/src/api/vite/plugins/main.ts +5 -5
  434. package/src/api/vite/plugins/pages-tree.ts +186 -0
  435. package/src/api/vite/plugins/serve.ts +52 -29
  436. package/src/api/vite/vi.ts +2 -2
  437. package/src/cli/_/self-contained-mode.ts +85 -0
  438. package/src/cli/commands/build.ts +2 -2
  439. package/src/cli/commands/dev.ts +3 -4
  440. package/src/cli/commands/open.ts +4 -4
  441. package/src/dep/graphql-inspector/index.ts +1 -1
  442. package/src/dep/hono/hono.ts +1 -1
  443. package/src/dep/hono/index.ts +1 -1
  444. package/src/dep/superjson/index.ts +1 -1
  445. package/src/dep/tiny-globby/index.ts +1 -1
  446. package/src/dep/vite/index.ts +1 -1
  447. package/src/exports/index.ts +1 -1
  448. package/src/exports/polen.ts +3 -3
  449. package/src/lib/apple-touch-icon/index.ts +1 -1
  450. package/src/lib/debug/debug.ts +45 -18
  451. package/src/lib/debug/environment-variable.ts +28 -7
  452. package/src/lib/debug/index.ts +1 -1
  453. package/src/lib/errors/ContextualAggregateError.ts +1 -1
  454. package/src/lib/errors/ContextualError.ts +1 -1
  455. package/src/lib/errors/ErrorInternal.ts +2 -2
  456. package/src/lib/errors/errors.ts +4 -4
  457. package/src/lib/errors/index.ts +1 -1
  458. package/src/lib/errors/types.ts +1 -1
  459. package/src/lib/favicon/index.ts +1 -1
  460. package/src/lib/file-router/diagnostic-reporter.ts +22 -0
  461. package/src/lib/file-router/file-router.ts +5 -3
  462. package/src/lib/file-router/index.test.ts +2 -2
  463. package/src/lib/file-router/index.ts +1 -1
  464. package/src/lib/file-router/linter.test.ts +115 -0
  465. package/src/lib/file-router/linter.ts +78 -4
  466. package/src/lib/file-router/route.ts +2 -1
  467. package/src/lib/file-router/scan-tree.test.ts +189 -0
  468. package/src/lib/file-router/scan-tree.ts +205 -0
  469. package/src/lib/file-router/scan.ts +27 -12
  470. package/src/lib/file-router/sidebar/index.ts +3 -0
  471. package/src/lib/file-router/sidebar/sidebar-tree.test.ts +123 -0
  472. package/src/lib/file-router/sidebar/sidebar-tree.ts +110 -0
  473. package/src/lib/file-router/sidebar/types.ts +19 -0
  474. package/src/lib/grafaid/_Nodes.ts +1 -1
  475. package/src/lib/grafaid/document/OperationTypeNode.ts +1 -1
  476. package/src/lib/grafaid/document/kind.ts +1 -1
  477. package/src/lib/grafaid/document.ts +6 -6
  478. package/src/lib/grafaid/grafaid.ts +4 -4
  479. package/src/lib/grafaid/graphql.ts +3 -3
  480. package/src/lib/grafaid/http/__.ts +1 -1
  481. package/src/lib/grafaid/http/http.ts +1 -1
  482. package/src/lib/grafaid/index.ts +1 -1
  483. package/src/lib/grafaid/schema/KindMap/_.ts +6 -6
  484. package/src/lib/grafaid/schema/KindMap/__.ts +2 -2
  485. package/src/lib/grafaid/schema/OperationType/__.ts +2 -2
  486. package/src/lib/grafaid/schema/RootDetails.ts +3 -3
  487. package/src/lib/grafaid/schema/RootTypeMap.ts +2 -2
  488. package/src/lib/grafaid/schema/nodes-like.ts +2 -2
  489. package/src/lib/grafaid/schema/schema.ts +15 -15
  490. package/src/lib/grafaid/schema/type-kind-name.ts +1 -1
  491. package/src/lib/grafaid/schema/type.ts +1 -1
  492. package/src/lib/grafaid/schema/typeGuards.ts +1 -1
  493. package/src/lib/grafaid-old/grafaid.ts +1 -1
  494. package/src/lib/grafaid-old/index.ts +1 -1
  495. package/src/lib/graphql-change/graphql-change.ts +2 -2
  496. package/src/lib/graphql-change/index.ts +1 -1
  497. package/src/lib/graphql-changeset/graphql-changeset.ts +2 -2
  498. package/src/lib/graphql-changeset/index.ts +1 -1
  499. package/src/lib/graphql-schema-loader/graphql-schema-loader.ts +1 -1
  500. package/src/lib/graphql-schema-loader/index.ts +1 -1
  501. package/src/lib/hono-aid/hono-aid.ts +1 -1
  502. package/src/lib/hono-aid/index.ts +1 -1
  503. package/src/lib/kit-temp.ts +10 -0
  504. package/src/lib/react-router-aid/get-paths-patterns.ts +1 -1
  505. package/src/lib/react-router-aid/index.ts +1 -1
  506. package/src/lib/react-router-aid/react-router-aid.ts +2 -2
  507. package/src/lib/react-router-loader/react-router-loader.ts +1 -1
  508. package/src/lib/stack-processor/index.ts +1 -1
  509. package/src/lib/superjson-codec/codec.ts +1 -1
  510. package/src/lib/superjson-codec/codecs/graphql-schema.ts +2 -2
  511. package/src/lib/superjson-codec/exports.ts +2 -2
  512. package/src/lib/superjson-codec/index.ts +1 -1
  513. package/src/lib/tree/index.ts +2 -0
  514. package/src/lib/tree/tree.test.ts +117 -0
  515. package/src/lib/tree/tree.ts +183 -0
  516. package/src/lib/vite-plugin-config/vite-plugin-config.ts +1 -1
  517. package/src/lib/vite-plugin-mdx/index.ts +1 -2
  518. package/src/lib/vite-plugin-mdx/vite-plugin-mdx.ts +80 -70
  519. package/src/lib/vite-plugins/index.ts +1 -1
  520. package/src/lib/vite-plugins/vite-plugins.ts +1 -1
  521. package/src/lib/vite-virtual/debug.ts +3 -0
  522. package/src/lib/vite-virtual/hooks.ts +1 -1
  523. package/src/lib/vite-virtual/identified-loader.ts +5 -5
  524. package/src/lib/vite-virtual/identifier.ts +1 -1
  525. package/src/lib/vite-virtual/index.ts +1 -1
  526. package/src/lib/vite-virtual/vite-virtual.ts +3 -3
  527. package/src/package-paths.ts +22 -1
  528. package/src/project-data.ts +4 -24
  529. package/src/singletons/debug.ts +3 -0
  530. package/src/singletons/superjson.ts +2 -2
  531. package/src/template/components/ArgumentListAnnotation.tsx +1 -1
  532. package/src/template/components/Changelog.tsx +6 -6
  533. package/src/template/components/DeprecationReason.tsx +1 -1
  534. package/src/template/components/Description.tsx +1 -1
  535. package/src/template/components/Field.tsx +1 -1
  536. package/src/template/components/FieldList.tsx +1 -1
  537. package/src/template/components/FieldListSection.tsx +1 -1
  538. package/src/template/components/Markdown.tsx +1 -1
  539. package/src/template/components/Sidebar.tsx +7 -6
  540. package/src/template/components/TypeIndex.tsx +1 -1
  541. package/src/template/components/graphql/type-kind-icon.tsx +3 -3
  542. package/src/template/components/graphql/type-kind-tokens.ts +1 -1
  543. package/src/template/components/graphql/type-link.tsx +2 -2
  544. package/src/template/entry.client.tsx +1 -1
  545. package/src/template/routes/changelog.tsx +2 -2
  546. package/src/template/routes/index.tsx +1 -1
  547. package/src/template/routes/reference.$type.$field.tsx +3 -3
  548. package/src/template/routes/reference.$type.tsx +2 -2
  549. package/src/template/routes/reference.tsx +2 -2
  550. package/src/template/routes/root.tsx +4 -5
  551. package/src/template/server/app.ts +6 -4
  552. package/src/template/server/main.ts +3 -3
  553. package/src/template/server/manifest.ts +1 -1
  554. package/src/template/server/render-page.tsx +4 -4
  555. package/src/template/server/ssg/generate.ts +4 -4
  556. package/src/template/server/ssg/get-route-paths.ts +2 -2
  557. package/build/lib/file-router/sidebar.d.ts +0 -2
  558. package/build/lib/file-router/sidebar.d.ts.map +0 -1
  559. package/build/lib/file-router/sidebar.js +0 -2
  560. package/build/lib/file-router/sidebar.js.map +0 -1
  561. package/src/lib/file-router/sidebar.ts +0 -0
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Generic tree data structure and utilities
3
+ */
4
+ export interface TreeNode<T> {
5
+ value: T;
6
+ children: TreeNode<T>[];
7
+ }
8
+ export type TreeVisitor<T, R = void> = (node: TreeNode<T>, depth: number, path: T[]) => R;
9
+ export type TreeMapper<T, U> = (value: T, depth: number, path: T[]) => U;
10
+ export type TreePredicate<T> = (value: T, depth: number, path: T[]) => boolean;
11
+ /**
12
+ * Create a new tree node
13
+ */
14
+ export declare const node: <T>(value: T, children?: TreeNode<T>[]) => TreeNode<T>;
15
+ /**
16
+ * Map over a tree, transforming each node's value
17
+ */
18
+ export declare const map: <T, U>(tree: TreeNode<T>, mapper: TreeMapper<T, U>, depth?: number, path?: T[]) => TreeNode<U>;
19
+ /**
20
+ * Visit each node in the tree (depth-first)
21
+ */
22
+ export declare const visit: <T>(tree: TreeNode<T>, visitor: TreeVisitor<T>, depth?: number, path?: T[]) => void;
23
+ /**
24
+ * Find a node in the tree
25
+ */
26
+ export declare const find: <T>(tree: TreeNode<T>, predicate: TreePredicate<T>, depth?: number, path?: T[]) => TreeNode<T> | undefined;
27
+ /**
28
+ * Filter tree nodes (keeps structure, removes non-matching nodes)
29
+ */
30
+ export declare const filter: <T>(tree: TreeNode<T>, predicate: TreePredicate<T>, depth?: number, path?: T[]) => TreeNode<T> | undefined;
31
+ /**
32
+ * Sort a tree's children at each level
33
+ */
34
+ export declare const sort: <T>(tree: TreeNode<T>, compareFn: (a: T, b: T) => number) => TreeNode<T>;
35
+ /**
36
+ * Flatten a tree into an array (depth-first)
37
+ */
38
+ export declare const flatten: <T>(tree: TreeNode<T>) => T[];
39
+ /**
40
+ * Get the depth of the tree
41
+ */
42
+ export declare const depth: <T>(tree: TreeNode<T>) => number;
43
+ /**
44
+ * Count total nodes in the tree
45
+ */
46
+ export declare const count: <T>(tree: TreeNode<T>) => number;
47
+ /**
48
+ * Check if a node is a leaf (has no children)
49
+ */
50
+ export declare const isLeaf: <T>(node: TreeNode<T>) => boolean;
51
+ /**
52
+ * Get all leaf nodes
53
+ */
54
+ export declare const leaves: <T>(tree: TreeNode<T>) => TreeNode<T>[];
55
+ /**
56
+ * Build a tree from a flat list with parent references
57
+ */
58
+ export declare const fromList: <T extends {
59
+ id: string;
60
+ parentId?: string;
61
+ }>(items: T[], rootId?: string) => TreeNode<T>[];
62
+ //# sourceMappingURL=tree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tree.d.ts","sourceRoot":"","sources":["../../../src/lib/tree/tree.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,QAAQ,CAAC,CAAC;IACzB,KAAK,EAAE,CAAC,CAAA;IACR,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAA;CACxB;AAED,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC,CAAA;AAEzF,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EA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AAE,CAAC,EAAE,CAAC,KAAK,MAAM,KAChC,QAAQ,CAAC,CAAC,CAKX,CAAA;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC,CAAC,KAAG,CAAC,EAM/C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC,CAAC,KAAG,MAG5C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,KAAK,GAAI,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC,CAAC,KAAG,MAE5C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC,CAAC,KAAG,OAE7C,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,EAAE,MAAM,QAAQ,CAAC,CAAC,CAAC,KAAG,QAAQ,CAAC,CAAC,CAAC,EAGxD,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,EAClE,OAAO,CAAC,EAAE,EACV,SAAS,MAAM,KACd,QAAQ,CAAC,CAAC,CAAC,EAwBb,CAAA"}
@@ -0,0 +1,134 @@
1
+ /**
2
+ * Generic tree data structure and utilities
3
+ */
4
+ /**
5
+ * Create a new tree node
6
+ */
7
+ export const node = (value, children = []) => ({
8
+ value,
9
+ children,
10
+ });
11
+ /**
12
+ * Map over a tree, transforming each node's value
13
+ */
14
+ export const map = (tree, mapper, depth = 0, path = []) => {
15
+ const newPath = [...path, tree.value];
16
+ return {
17
+ value: mapper(tree.value, depth, path),
18
+ children: tree.children.map(child => map(child, mapper, depth + 1, newPath)),
19
+ };
20
+ };
21
+ /**
22
+ * Visit each node in the tree (depth-first)
23
+ */
24
+ export const visit = (tree, visitor, depth = 0, path = []) => {
25
+ visitor(tree, depth, path);
26
+ const newPath = [...path, tree.value];
27
+ tree.children.forEach(child => visit(child, visitor, depth + 1, newPath));
28
+ };
29
+ /**
30
+ * Find a node in the tree
31
+ */
32
+ export const find = (tree, predicate, depth = 0, path = []) => {
33
+ if (predicate(tree.value, depth, path)) {
34
+ return tree;
35
+ }
36
+ const newPath = [...path, tree.value];
37
+ for (const child of tree.children) {
38
+ const found = find(child, predicate, depth + 1, newPath);
39
+ if (found)
40
+ return found;
41
+ }
42
+ return undefined;
43
+ };
44
+ /**
45
+ * Filter tree nodes (keeps structure, removes non-matching nodes)
46
+ */
47
+ export const filter = (tree, predicate, depth = 0, path = []) => {
48
+ const newPath = [...path, tree.value];
49
+ const filteredChildren = tree.children
50
+ .map(child => filter(child, predicate, depth + 1, newPath))
51
+ .filter((child) => child !== undefined);
52
+ // Keep node if it matches or has matching children
53
+ if (predicate(tree.value, depth, path) || filteredChildren.length > 0) {
54
+ return {
55
+ value: tree.value,
56
+ children: filteredChildren,
57
+ };
58
+ }
59
+ return undefined;
60
+ };
61
+ /**
62
+ * Sort a tree's children at each level
63
+ */
64
+ export const sort = (tree, compareFn) => ({
65
+ value: tree.value,
66
+ children: tree.children
67
+ .map(child => sort(child, compareFn))
68
+ .sort((a, b) => compareFn(a.value, b.value)),
69
+ });
70
+ /**
71
+ * Flatten a tree into an array (depth-first)
72
+ */
73
+ export const flatten = (tree) => {
74
+ const result = [tree.value];
75
+ tree.children.forEach(child => {
76
+ result.push(...flatten(child));
77
+ });
78
+ return result;
79
+ };
80
+ /**
81
+ * Get the depth of the tree
82
+ */
83
+ export const depth = (tree) => {
84
+ if (tree.children.length === 0)
85
+ return 0;
86
+ return 1 + Math.max(...tree.children.map(depth));
87
+ };
88
+ /**
89
+ * Count total nodes in the tree
90
+ */
91
+ export const count = (tree) => {
92
+ return 1 + tree.children.reduce((sum, child) => sum + count(child), 0);
93
+ };
94
+ /**
95
+ * Check if a node is a leaf (has no children)
96
+ */
97
+ export const isLeaf = (node) => {
98
+ return node.children.length === 0;
99
+ };
100
+ /**
101
+ * Get all leaf nodes
102
+ */
103
+ export const leaves = (tree) => {
104
+ if (isLeaf(tree))
105
+ return [tree];
106
+ return tree.children.flatMap(leaves);
107
+ };
108
+ /**
109
+ * Build a tree from a flat list with parent references
110
+ */
111
+ export const fromList = (items, rootId) => {
112
+ const itemMap = new Map(items.map(item => [item.id, item]));
113
+ const roots = [];
114
+ const nodeMap = new Map();
115
+ // Create all nodes
116
+ items.forEach(item => {
117
+ nodeMap.set(item.id, node(item));
118
+ });
119
+ // Build hierarchy
120
+ items.forEach(item => {
121
+ const itemNode = nodeMap.get(item.id);
122
+ if (item.parentId === rootId) {
123
+ roots.push(itemNode);
124
+ }
125
+ else if (item.parentId) {
126
+ const parent = nodeMap.get(item.parentId);
127
+ if (parent) {
128
+ parent.children.push(itemNode);
129
+ }
130
+ }
131
+ });
132
+ return roots;
133
+ };
134
+ //# sourceMappingURL=tree.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tree.js","sourceRoot":"","sources":["../../../src/lib/tree/tree.ts"],"names":[],"mappings":"AAAA;;GAEG;AAaH;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAI,KAAQ,EAAE,WAA0B,EAAE,EAAe,EAAE,CAAC,CAAC;IAC/E,KAAK;IACL,QAAQ;CACT,CAAC,CAAA;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,CACjB,IAAiB,EACjB,MAAwB,EACxB,KAAK,GAAG,CAAC,EACT,OAAY,EAAE,EACD,EAAE;IACf,MAAM,OAAO,GAAG,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAA;IACrC,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC;QACtC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,C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,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,CAAA;IAC3D,MAAM,KAAK,GAAkB,EAAE,CAAA;IAC/B,MAAM,OAAO,GAAG,IAAI,GAAG,EAAuB,CAAA;IAE9C,mBAAmB;IACnB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACnB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;IAClC,CAAC,CAAC,CAAA;IAEF,kBAAkB;IAClB,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACnB,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAE,CAAA;QACtC,IAAI,IAAI,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;YAC7B,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACtB,CAAC;aAAM,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YACzB,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YACzC,IAAI,MAAM,EAAE,CAAC;gBACX,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;YAChC,CAAC;QACH,CAAC;IACH,CAAC,CAAC,CAAA;IAEF,OAAO,KAAK,CAAA;AACd,CAAC,CAAA"}
@@ -1,3 +1,3 @@
1
- import type { Vite } from '#dep/vite/index.js';
1
+ import type { Vite } from '#dep/vite/index';
2
2
  export declare const ViteConfig: (config: Vite.UserConfig) => Vite.Plugin;
3
3
  //# sourceMappingURL=vite-plugin-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vite-plugin-config.d.ts","sourceRoot":"","sources":["../../../src/lib/vite-plugin-config/vite-plugin-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C,eAAO,MAAM,UAAU,GAAI,QAAQ,IAAI,CAAC,UAAU,KAAG,IAAI,CAAC,MAQzD,CAAA"}
1
+ {"version":3,"file":"vite-plugin-config.d.ts","sourceRoot":"","sources":["../../../src/lib/vite-plugin-config/vite-plugin-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE3C,eAAO,MAAM,UAAU,GAAI,QAAQ,IAAI,CAAC,UAAU,KAAG,IAAI,CAAC,MAQzD,CAAA"}
@@ -1,2 +1,2 @@
1
- export {};
1
+ export * from './vite-plugin-mdx.ts';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/vite-plugin-mdx/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/vite-plugin-mdx/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -1,4 +1,2 @@
1
- export {};
2
- // export { VitePluginMdx as mdxRolldown } from './vite-plugin-mdx.js'
3
- // export type { Options as MdxOptions } from './vite-plugin-mdx.js'
1
+ export * from "./vite-plugin-mdx.js";
4
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/vite-plugin-mdx/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,oEAAoE"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/vite-plugin-mdx/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -1,2 +1,24 @@
1
+ import type { CompileOptions } from '@mdx-js/mdx';
2
+ import { type FilterPattern } from '@rollup/pluginutils';
3
+ import type { Plugin } from 'vite';
4
+ type ApplicableOptions = Omit<CompileOptions, `SourceMapGenerator`>;
5
+ interface ExtraOptions {
6
+ /**
7
+ * Picomatch patterns to exclude (optional).
8
+ */
9
+ exclude?: FilterPattern | null | undefined;
10
+ /**
11
+ * Picomatch patterns to include (optional).
12
+ */
13
+ include?: FilterPattern | null | undefined;
14
+ }
15
+ export type Options = ApplicableOptions & ExtraOptions;
16
+ export declare const createConfig: (options?: Readonly<Options> | null | undefined) => Options;
17
+ /**
18
+ * Plugin to compile MDX.
19
+ *
20
+ * Uses Rolldown.
21
+ */
22
+ export declare function VitePluginMdx(options?: Readonly<Options> | null): Plugin;
1
23
  export {};
2
24
  //# sourceMappingURL=vite-plugin-mdx.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vite-plugin-mdx.d.ts","sourceRoot":"","sources":["../../../src/lib/vite-plugin-mdx/vite-plugin-mdx.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"vite-plugin-mdx.d.ts","sourceRoot":"","sources":["../../../src/lib/vite-plugin-mdx/vite-plugin-mdx.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAKjD,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAItE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAElC,KAAK,iBAAiB,GAAG,IAAI,CAAC,cAAc,EAAE,oBAAoB,CAAC,CAAA;AAEnE,UAAU,YAAY;IACpB;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,CAAA;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI,GAAG,SAAS,CAAA;CAC3C;AAED,MAAM,MAAM,OAAO,GAAG,iBAAiB,GAAG,YAAY,CAAA;AAGtD,eAAO,MAAM,YAAY,GAAI,UAAU,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,KAAG,OAY7E,CAAA;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,GAAG,MAAM,CAwCxE"}
@@ -1,74 +1,58 @@
1
1
  // TODO: use this or similar once transform hook can change module type and have result re-processed
2
2
  // @see https://github.com/rolldown/rolldown/issues/4004
3
- export {};
4
- // import type { CompileOptions } from '@mdx-js/mdx'
5
- // import {
6
- // createFormatAwareProcessors,
7
- // type FormatAwareProcessors,
8
- // } from '@mdx-js/mdx/internal-create-format-aware-processors'
9
- // import { createFilter, type FilterPattern } from '@rollup/pluginutils'
10
- // import type { SourceDescription } from 'rolldown'
11
- // import { SourceMapGenerator } from 'source-map'
12
- // import { VFile } from 'vfile'
13
- // import type { Plugin } from 'vite'
14
- // type ApplicableOptions = Omit<CompileOptions, `SourceMapGenerator`>
15
- // interface ExtraOptions {
16
- // /**
17
- // * Picomatch patterns to exclude (optional).
18
- // */
19
- // exclude?: FilterPattern | null | undefined
20
- // /**
21
- // * Picomatch patterns to include (optional).
22
- // */
23
- // include?: FilterPattern | null | undefined
24
- // }
25
- // export type Options = ApplicableOptions & ExtraOptions
26
- // /**
27
- // * Plugin to compile MDX w/ rolldown.
28
- // */
29
- // export function VitePluginMdx(options?: Readonly<Options> | null): Plugin {
30
- // const {
31
- // exclude,
32
- // include = /\.mdx?$/, // Default to .md and .mdx files
33
- // ...rest
34
- // } = options ?? {}
35
- // let formatAwareProcessors: FormatAwareProcessors
36
- // const filter = createFilter(include, exclude)
37
- // return {
38
- // name: `@mdx-js/rolldown`,
39
- // enforce: `pre`, // Run before other transforms
40
- // config(config, env) {
41
- // // Initialize processors with Vite environment info
42
- // formatAwareProcessors = createFormatAwareProcessors({
43
- // SourceMapGenerator,
44
- // development: env.mode === `development`,
45
- // ...rest,
46
- // })
47
- // },
48
- // async transform(value: string, id: string): Promise<SourceDescription | undefined> {
49
- // // Ensure processors are initialized
50
- // // if (!formatAwareProcessors) {
51
- // // formatAwareProcessors = createFormatAwareProcessors({
52
- // // SourceMapGenerator,
53
- // // ...rest,
54
- // // })
55
- // // }
56
- // const file = new VFile({ path: id, value })
57
- // if (
58
- // file.extname
59
- // && filter(file.path)
60
- // && formatAwareProcessors.extnames.includes(file.extname)
61
- // ) {
62
- // const compiled = await formatAwareProcessors.process(file)
63
- // const code = String(compiled.value)
64
- // const result: SourceDescription = {
65
- // code,
66
- // // When MDX compiles to JS (not JSX), we don't need to set moduleType
67
- // map: compiled.map,
68
- // }
69
- // return result
70
- // }
71
- // },
72
- // }
73
- // }
3
+ // Note: This is adapted from `@mdx-js/mdx`
4
+ import { createFormatAwareProcessors, } from '@mdx-js/mdx/internal-create-format-aware-processors';
5
+ import { createFilter } from '@rollup/pluginutils';
6
+ import { SourceMapGenerator } from 'source-map';
7
+ import { VFile } from 'vfile';
8
+ // eslint-disable-next-line
9
+ export const createConfig = (options) => {
10
+ const { exclude, include = /\.mdx?$/, // Default to .md and .mdx files
11
+ ...rest } = options ?? {};
12
+ return {
13
+ exclude,
14
+ include,
15
+ ...rest,
16
+ };
17
+ };
18
+ /**
19
+ * Plugin to compile MDX.
20
+ *
21
+ * Uses Rolldown.
22
+ */
23
+ export function VitePluginMdx(options) {
24
+ const config = createConfig(options);
25
+ const filter = createFilter(config.include, config.exclude);
26
+ let formatAwareProcessors;
27
+ return {
28
+ name: `mdx`,
29
+ // TODO: should not be needed?
30
+ // enforce: `pre`, // Run before other transforms
31
+ config(__config, env) {
32
+ // Initialize processors with Vite environment info
33
+ formatAwareProcessors = createFormatAwareProcessors({
34
+ SourceMapGenerator,
35
+ jsx: true, // emit JSX, not JS
36
+ development: env.mode === `development`,
37
+ ...config,
38
+ });
39
+ },
40
+ async transform(value, id) {
41
+ const file = new VFile({ path: id, value });
42
+ if (file.extname
43
+ && filter(file.path)
44
+ && formatAwareProcessors.extnames.includes(file.extname)) {
45
+ const compiled = await formatAwareProcessors.process(file);
46
+ const code = String(compiled.value);
47
+ const sourceDescription = {
48
+ code,
49
+ moduleType: `jsx`,
50
+ // When MDX compiles to JS (not JSX), we don't need to set moduleType
51
+ map: compiled.map,
52
+ };
53
+ return sourceDescription;
54
+ }
55
+ },
56
+ };
57
+ }
74
58
  //# sourceMappingURL=vite-plugin-mdx.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vite-plugin-mdx.js","sourceRoot":"","sources":["../../../src/lib/vite-plugin-mdx/vite-plugin-mdx.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,yDAAyD;;AAEzD,oDAAoD;AACpD,WAAW;AACX,iCAAiC;AACjC,gCAAgC;AAChC,+DAA+D;AAC/D,yEAAyE;AACzE,oDAAoD;AACpD,kDAAkD;AAClD,gCAAgC;AAChC,qCAAqC;AAErC,sEAAsE;AAEtE,2BAA2B;AAC3B,QAAQ;AACR,iDAAiD;AACjD,QAAQ;AACR,+CAA+C;AAC/C,QAAQ;AACR,iDAAiD;AACjD,QAAQ;AACR,+CAA+C;AAC/C,IAAI;AAEJ,yDAAyD;AAEzD,MAAM;AACN,wCAAwC;AACxC,MAAM;AACN,8EAA8E;AAC9E,YAAY;AACZ,eAAe;AACf,4DAA4D;AAC5D,cAAc;AACd,sBAAsB;AACtB,qDAAqD;AACrD,kDAAkD;AAElD,aAAa;AACb,gCAAgC;AAChC,qDAAqD;AACrD,4BAA4B;AAC5B,4DAA4D;AAC5D,8DAA8D;AAC9D,8BAA8B;AAC9B,mDAAmD;AACnD,mBAAmB;AACnB,WAAW;AACX,SAAS;AACT,2FAA2F;AAC3F,6CAA6C;AAC7C,yCAAyC;AACzC,mEAAmE;AACnE,mCAAmC;AACnC,wBAAwB;AACxB,gBAAgB;AAChB,aAAa;AAEb,oDAAoD;AAEpD,aAAa;AACb,uBAAuB;AACvB,+BAA+B;AAC/B,mEAAmE;AACnE,YAAY;AACZ,qEAAqE;AACrE,8CAA8C;AAC9C,8CAA8C;AAC9C,kBAAkB;AAClB,kFAAkF;AAClF,+BAA+B;AAC/B,YAAY;AAEZ,wBAAwB;AACxB,UAAU;AACV,SAAS;AACT,MAAM;AACN,IAAI"}
1
+ {"version":3,"file":"vite-plugin-mdx.js","sourceRoot":"","sources":["../../../src/lib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CAAC,CAAA;YAE3C,IACE,IAAI,CAAC,OAAO;mBACT,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;mBACjB,qBAAqB,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,EACxD,CAAC;gBACD,MAAM,QAAQ,GAAG,MAAM,qBAAqB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;gBAC1D,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;gBACnC,MAAM,iBAAiB,GAAsB;oBAC3C,IAAI;oBACJ,UAAU,EAAE,KAAK;oBACjB,qEAAqE;oBACrE,GAAG,EAAE,QAAQ,CAAC,GAAG;iBAClB,CAAA;gBAED,OAAO,iBAAiB,CAAA;YAC1B,CAAC;QACH,CAAC;KACF,CAAA;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Export unified VitePlugins namespace
3
3
  */
4
- export * as VitePlugins from './vite-plugins.js';
4
+ export * as VitePlugins from './vite-plugins.ts';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Export unified VitePlugins namespace
3
3
  */
4
- export * as VitePlugins from './vite-plugins.js';
4
+ export * as VitePlugins from "./vite-plugins.js";
5
5
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- export * from './build-logger.js';
1
+ export * from './build-logger.ts';
2
2
  //# sourceMappingURL=vite-plugins.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from './build-logger.js';
1
+ export * from "./build-logger.js";
2
2
  //# sourceMappingURL=vite-plugins.js.map
@@ -0,0 +1,3 @@
1
+ import { Debug } from '#lib/debug/index';
2
+ export declare const debug: Debug.Debug;
3
+ //# sourceMappingURL=debug.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["../../../src/lib/vite-virtual/debug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAExC,eAAO,MAAM,KAAK,aAA+B,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { Debug } from '#lib/debug/index';
2
+ export const debug = Debug.create(`vite-virtual`);
3
+ //# sourceMappingURL=debug.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../src/lib/vite-virtual/debug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAExC,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Vite } from '#dep/vite/index.js';
1
+ import type { Vite } from '#dep/vite/index';
2
2
  export type HookLoad = Vite.HookLoadFnPure;
3
3
  export type HookResolveId = Vite.HookResolveIdFnPure;
4
4
  export type Hooks = Pick<Vite.Plugin, `resolveId` | `load`>;
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/lib/vite-virtual/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAE9C,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAA;AAE1C,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,CAAA;AAEpD,MAAM,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,CAAA"}
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/lib/vite-virtual/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAE3C,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,cAAc,CAAA;AAE1C,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,mBAAmB,CAAA;AAEpD,MAAM,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAAC,CAAA"}
@@ -1,6 +1,6 @@
1
- import type { Vite } from '#dep/vite/index.js';
2
- import type { HookLoad, HookResolveId } from './hooks.js';
3
- import type { Identifier } from './identifier.js';
1
+ import type { Vite } from '#dep/vite/index';
2
+ import type { HookLoad, HookResolveId } from './hooks.ts';
3
+ import type { Identifier } from './identifier.ts';
4
4
  export interface IdentifiedLoader {
5
5
  identifier: Identifier;
6
6
  loader: Vite.HookLoadFnPure;
@@ -1 +1 @@
1
- {"version":3,"file":"identified-loader.d.ts","sourceRoot":"","sources":["../../../src/lib/vite-virtual/identified-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAG9C,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,IAAI,CAAC,cAAc,CAAA;CAC5B;AAED,eAAO,MAAM,UAAU,GACrB,kBAAkB,gBAAgB,KACjC,QAeF,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,kBAAkB,gBAAgB,KAAG,aAOpE,CAAA;AAED,eAAO,MAAM,OAAO,GAClB,GAAG,mBAAmB,gBAAgB,EAAE,KACvC;IACD,SAAS,EAAE,IAAI,CAAC,mBAAmB,CAAA;IACnC,IAAI,EAAE,IAAI,CAAC,cAAc,CAAA;CAc1B,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,GAAG,mBAAmB,gBAAgB,EAAE,KAAG,IAAI,CAAC,MAKxE,CAAA"}
1
+ {"version":3,"file":"identified-loader.d.ts","sourceRoot":"","sources":["../../../src/lib/vite-virtual/identified-loader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAG3C,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,IAAI,CAAC,cAAc,CAAA;CAC5B;AAED,eAAO,MAAM,UAAU,GACrB,kBAAkB,gBAAgB,KACjC,QAeF,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,kBAAkB,gBAAgB,KAAG,aAOpE,CAAA;AAED,eAAO,MAAM,OAAO,GAClB,GAAG,mBAAmB,gBAAgB,EAAE,KACvC;IACD,SAAS,EAAE,IAAI,CAAC,mBAAmB,CAAA;IACnC,IAAI,EAAE,IAAI,CAAC,cAAc,CAAA;CAc1B,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,GAAG,mBAAmB,gBAAgB,EAAE,KAAG,IAAI,CAAC,MAKxE,CAAA"}
@@ -1,5 +1,5 @@
1
- import { debug } from '../debug/debug.js';
2
- import { StackProcessor } from '../stack-processor/index.js';
1
+ import { StackProcessor } from "../stack-processor/index.js";
2
+ import { debug } from "./debug.js";
3
3
  export const toHookLoad = (identifiedLoader) => {
4
4
  return async (...args) => {
5
5
  // debug(`load candidate`, { virtualIdentifier, args })
@@ -1 +1 @@
1
- {"version":3,"file":"identified-loader.js","sourceRoot":"","sources":["../../../src/lib/vite-virtual/identified-loader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAS5D,MAAM,CAAC,MAAM,UAAU,GAAG,CACxB,gBAAkC,EACxB,EAAE;IACZ,OAAO,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE;QACvB,uDAAuD;QACvD,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,gBAA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CAAC,QAAQ,CAAA;QAC7C,CAAC;QACD,OAAO,SAAS,CAAA;IAClB,CAAC,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,CACrB,GAAG,iBAAqC,EAIxC,EAAE;IACF,MAAM,SAAS,GAAG,cAAc,CAAC,YAAY,CAC3C,iBAAiB,CAAC,GAAG,CAAC,eAAe,CAAC,CACvC,CAAA;IAED,MAAM,IAAI,GAAG,cAAc,CAAC,YAAY,CACtC,iBAAiB,CAAC,GAAG,CAAC,UAAU,CAAC,CAClC,CAAA;IAED,OAAO;QACL,SAAS;QACT,IAAI;KACL,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,GAAG,iBAAqC,EAAe,EAAE;IAChF,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,GAAG,OAAO,CAAC,GAAG,iBAAiB,CAAC;KACjC,CAAA;AACH,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { createId, markNoPlugins, normalizeId } from './id.js';
1
+ import { createId, markNoPlugins, normalizeId } from "./id.js";
2
2
  export const defaults = {
3
3
  allowPluginProcessing: false,
4
4
  separator: `/`,
@@ -1,2 +1,2 @@
1
- export * as ViteVirtual from './vite-virtual.js';
1
+ export * as ViteVirtual from './vite-virtual.ts';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * as ViteVirtual from './vite-virtual.js';
1
+ export * as ViteVirtual from "./vite-virtual.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- export * as Id from './id.js';
2
- export * as IdentifiedLoader from './identified-loader.js';
3
- export * as Identifier from './identifier.js';
1
+ export * as Id from './id.ts';
2
+ export * as IdentifiedLoader from './identified-loader.ts';
3
+ export * as Identifier from './identifier.ts';
4
4
  //# sourceMappingURL=vite-virtual.d.ts.map
@@ -1,4 +1,4 @@
1
- export * as Id from './id.js';
2
- export * as IdentifiedLoader from './identified-loader.js';
3
- export * as Identifier from './identifier.js';
1
+ export * as Id from "./id.js";
2
+ export * as IdentifiedLoader from "./identified-loader.js";
3
+ export * as Identifier from "./identifier.js";
4
4
  //# sourceMappingURL=vite-virtual.js.map
@@ -1,5 +1,12 @@
1
1
  export interface PackagePaths {
2
+ name: string;
3
+ isRunningFromSource: boolean;
4
+ static: {
5
+ source: string;
6
+ build: string;
7
+ };
2
8
  rootDir: string;
9
+ sourceExtension: `.js` | `.ts`;
3
10
  sourceDir: string;
4
11
  template: {
5
12
  rootDir: string;
@@ -1 +1 @@
1
- {"version":3,"file":"package-paths.d.ts","sourceRoot":"","sources":["../src/package-paths.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAA;QACf,MAAM,EAAE;YACN,GAAG,EAAE,MAAM,CAAA;YACX,UAAU,EAAE,MAAM,CAAA;SACnB,CAAA;QACD,MAAM,EAAE;YACN,UAAU,EAAE,MAAM,CAAA;SACnB,CAAA;KACF,CAAA;CACF;AASD,eAAO,MAAM,YAAY,EAAE,YAa1B,CAAA"}
1
+ {"version":3,"file":"package-paths.d.ts","sourceRoot":"","sources":["../src/package-paths.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,mBAAmB,EAAE,OAAO,CAAA;IAC5B,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAA;QACd,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,OAAO,EAAE,MAAM,CAAA;IACf,eAAe,EAAE,KAAK,GAAG,KAAK,CAAA;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE;QACR,OAAO,EAAE,MAAM,CAAA;QACf,MAAM,EAAE;YACN,GAAG,EAAE,MAAM,CAAA;YACX,UAAU,EAAE,MAAM,CAAA;SACnB,CAAA;QACD,MAAM,EAAE;YACN,UAAU,EAAE,MAAM,CAAA;SACnB,CAAA;KACF,CAAA;CACF;AAgBD,eAAO,MAAM,YAAY,EAAE,YAoB1B,CAAA"}
@@ -1,11 +1,22 @@
1
1
  import { Path } from '@wollybeard/kit';
2
+ const sourceDirRelativeExp = `src`;
3
+ const buildDirRelativeExp = `build`;
2
4
  /**
3
- * Usually ./build but if running with tsx then ./src
5
+ * Usually ./build but if running source then ./src
4
6
  */
5
7
  const sourceDir = import.meta.dirname;
6
8
  const templateDir = Path.join(sourceDir, `template`);
7
9
  const rootDir = Path.join(sourceDir, `..`);
10
+ const isRunningFromSource = sourceDir.endsWith(sourceDirRelativeExp);
11
+ const sourceKind = isRunningFromSource ? `.ts` : `.js`;
8
12
  export const packagePaths = {
13
+ name: `polen`,
14
+ isRunningFromSource,
15
+ static: {
16
+ source: sourceDir,
17
+ build: buildDirRelativeExp,
18
+ },
19
+ sourceExtension: sourceKind,
9
20
  rootDir: rootDir,
10
21
  sourceDir,
11
22
  template: {
@@ -1 +1 @@
1
- {"version":3,"file":"package-paths.js","sourceRoot":"","sources":["../src/package-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAiBtC;;GAEG;AACH,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAA;AACrC,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAA;AACpD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;AAE1C,MAAM,CAAC,MAAM,YAAY,GAAiB;IACxC,OAAO,EAAE,OAAO;IAChB,SAAS;IACT,QAAQ,EAAE;QACR,OAAO,EAAE,WAAW;QACpB,MAAM,EAAE;YACN,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,eAAe,CAAC;YAC5C,UAAU,EAAE,IAAI,CA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