powerlines 0.23.10 → 0.24.1

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 (262) hide show
  1. package/dist/{api-5H3zEedD.d.ts → api-C32Buv5_.d.ts} +1 -1
  2. package/dist/{api-B77aqxGC.d.cts → api-wzd5AREv.d.cts} +1 -1
  3. package/dist/api.cjs +2 -2
  4. package/dist/api.d.cts +4 -2
  5. package/dist/api.d.ts +4 -2
  6. package/dist/api.js +1 -1
  7. package/dist/astro.cjs +4 -4
  8. package/dist/astro.d.cts +3 -1
  9. package/dist/astro.d.ts +3 -1
  10. package/dist/astro.js +3 -3
  11. package/dist/chunk-2TWFBWKA.cjs +133 -0
  12. package/dist/{chunk-3W5CN3M3.js → chunk-7V3LWCLB.js} +1 -1
  13. package/dist/chunk-EXQM3KGH.js +130 -0
  14. package/dist/{chunk-4EIGDACJ.cjs → chunk-FGH3MZTQ.cjs} +523 -649
  15. package/dist/{chunk-SNHUEYEP.cjs → chunk-FPB2O7FD.cjs} +2 -2
  16. package/dist/{chunk-ZIWN73GA.js → chunk-H74SWU2C.js} +1 -1
  17. package/dist/{chunk-WBC2XOMT.cjs → chunk-HTGCHSLH.cjs} +2 -2
  18. package/dist/{chunk-PR3JGGAL.cjs → chunk-TIBYAWZZ.cjs} +2 -2
  19. package/dist/{chunk-SS5AXCGJ.js → chunk-ZEE73BCY.js} +1 -1
  20. package/dist/{chunk-MUNYXQYT.js → chunk-ZT2J55YE.js} +526 -649
  21. package/dist/config.d.cts +3 -1
  22. package/dist/config.d.ts +3 -1
  23. package/dist/esbuild.cjs +6 -6
  24. package/dist/esbuild.d.cts +3 -1
  25. package/dist/esbuild.d.ts +3 -1
  26. package/dist/esbuild.js +3 -3
  27. package/dist/farm.cjs +3 -3
  28. package/dist/farm.d.cts +3 -1
  29. package/dist/farm.d.ts +3 -1
  30. package/dist/farm.js +2 -2
  31. package/dist/index.cjs +11 -23
  32. package/dist/index.d.cts +6 -135
  33. package/dist/index.d.ts +6 -135
  34. package/dist/index.js +2 -2
  35. package/dist/lib/{api-Cm51oVbC.d.cts → api-BRMITKt-.d.cts} +1 -1
  36. package/dist/lib/{api-mja4jirh.d.ts → api-CDUN9en8.d.ts} +1 -1
  37. package/dist/lib/build/esbuild.d.cts +3 -1
  38. package/dist/lib/build/esbuild.d.ts +3 -1
  39. package/dist/lib/build/index.d.cts +5 -3
  40. package/dist/lib/build/index.d.ts +5 -3
  41. package/dist/lib/build/rolldown.d.cts +3 -1
  42. package/dist/lib/build/rolldown.d.ts +3 -1
  43. package/dist/lib/build/rollup.d.cts +3 -1
  44. package/dist/lib/build/rollup.d.ts +3 -1
  45. package/dist/lib/build/rspack.d.cts +3 -1
  46. package/dist/lib/build/rspack.d.ts +3 -1
  47. package/dist/lib/build/tsup.d.cts +3 -1
  48. package/dist/lib/build/tsup.d.ts +3 -1
  49. package/dist/lib/build/unbuild.d.cts +5 -3
  50. package/dist/lib/build/unbuild.d.ts +5 -3
  51. package/dist/lib/build/vite.d.cts +3 -1
  52. package/dist/lib/build/vite.d.ts +3 -1
  53. package/dist/lib/build/webpack.d.cts +3 -1
  54. package/dist/lib/build/webpack.d.ts +3 -1
  55. package/dist/lib/{chunk-52VDUP5J.js → chunk-6I5PL7H2.js} +5 -17
  56. package/dist/lib/{chunk-UPVFKXB7.cjs → chunk-6PPZCPME.cjs} +1 -2
  57. package/dist/lib/{chunk-HNOAMIRO.js → chunk-7CVPZOH4.js} +2 -2
  58. package/dist/lib/{chunk-SEWUUTNA.js → chunk-A2NFSQ5K.js} +1 -1
  59. package/dist/lib/{chunk-I6TJUFA6.cjs → chunk-AA6RBP44.cjs} +10 -10
  60. package/dist/lib/{chunk-VDPCG3RR.js → chunk-CGRHZJY5.js} +41 -82
  61. package/dist/lib/{chunk-OJ5XFCZN.js → chunk-DFW5FGEO.js} +1 -1
  62. package/dist/lib/{chunk-VL63QEPF.cjs → chunk-DUZJ7ZF2.cjs} +2 -2
  63. package/dist/lib/{chunk-EFYMNU53.cjs → chunk-EV357RFB.cjs} +5 -17
  64. package/dist/lib/{chunk-54XNJQTH.js → chunk-HAXL7QE7.js} +3 -3
  65. package/dist/lib/{chunk-XG4CC73V.js → chunk-KFWMKDJQ.js} +391 -589
  66. package/dist/lib/{chunk-RBSNQFLF.cjs → chunk-MS3CD2U6.cjs} +49 -91
  67. package/dist/lib/{chunk-QABAD5RE.cjs → chunk-RNHKEPFD.cjs} +387 -586
  68. package/dist/lib/{chunk-4EIXDLFP.cjs → chunk-SAS5EPBD.cjs} +7 -5
  69. package/dist/lib/{chunk-EUDKQWSB.js → chunk-VHLINWXG.js} +1 -2
  70. package/dist/lib/{chunk-VLOUSKRX.cjs → chunk-VMLQATMA.cjs} +4 -4
  71. package/dist/lib/{chunk-IBPA3VN5.cjs → chunk-WUYK74EH.cjs} +3 -3
  72. package/dist/lib/{chunk-RD5AUWXN.js → chunk-YQ3ODCHV.js} +7 -5
  73. package/dist/lib/{config-BnJpgcGr.d.cts → config-D8KrE7SZ.d.cts} +109 -35
  74. package/dist/lib/{config-7Q2dBjJE.d.ts → config-DBIFdRoq.d.ts} +109 -35
  75. package/dist/lib/config-file.d.cts +3 -1
  76. package/dist/lib/config-file.d.ts +3 -1
  77. package/dist/lib/contexts/api-context.cjs +5 -4
  78. package/dist/lib/contexts/api-context.d.cts +5 -3
  79. package/dist/lib/contexts/api-context.d.ts +5 -3
  80. package/dist/lib/contexts/api-context.js +4 -3
  81. package/dist/lib/contexts/context.cjs +3 -2
  82. package/dist/lib/contexts/context.d.cts +47 -4
  83. package/dist/lib/contexts/context.d.ts +47 -4
  84. package/dist/lib/contexts/context.js +2 -1
  85. package/dist/lib/contexts/environment-context.cjs +4 -3
  86. package/dist/lib/contexts/environment-context.d.cts +5 -3
  87. package/dist/lib/contexts/environment-context.d.ts +5 -3
  88. package/dist/lib/contexts/environment-context.js +3 -2
  89. package/dist/lib/contexts/index.cjs +7 -6
  90. package/dist/lib/contexts/index.d.cts +5 -3
  91. package/dist/lib/contexts/index.d.ts +5 -3
  92. package/dist/lib/contexts/index.js +4 -3
  93. package/dist/lib/contexts/plugin-context.d.cts +5 -3
  94. package/dist/lib/contexts/plugin-context.d.ts +5 -3
  95. package/dist/lib/entry.d.cts +3 -1
  96. package/dist/lib/entry.d.ts +3 -1
  97. package/dist/lib/index.cjs +39 -45
  98. package/dist/lib/index.d.cts +67 -48
  99. package/dist/lib/index.d.ts +67 -48
  100. package/dist/lib/index.js +12 -14
  101. package/dist/lib/{internal-BEygquYh.d.ts → internal-1qCyw7bA.d.ts} +2 -2
  102. package/dist/lib/{internal-BeR8fOB1.d.cts → internal-CaGANOWK.d.cts} +2 -2
  103. package/dist/lib/logger.d.cts +3 -1
  104. package/dist/lib/logger.d.ts +3 -1
  105. package/dist/lib/typescript/compiler-host.cjs +7 -7
  106. package/dist/lib/typescript/compiler-host.d.cts +3 -1
  107. package/dist/lib/typescript/compiler-host.d.ts +3 -1
  108. package/dist/lib/typescript/compiler-host.js +6 -6
  109. package/dist/lib/typescript/import-transformer.cjs +1 -1
  110. package/dist/lib/typescript/import-transformer.d.cts +3 -1
  111. package/dist/lib/typescript/import-transformer.d.ts +3 -1
  112. package/dist/lib/typescript/import-transformer.js +1 -1
  113. package/dist/lib/typescript/index.cjs +8 -8
  114. package/dist/lib/typescript/index.d.cts +3 -2
  115. package/dist/lib/typescript/index.d.ts +3 -2
  116. package/dist/lib/typescript/index.js +2 -2
  117. package/dist/lib/typescript/program.cjs +6 -6
  118. package/dist/lib/typescript/program.d.cts +3 -1
  119. package/dist/lib/typescript/program.d.ts +3 -1
  120. package/dist/lib/typescript/program.js +1 -1
  121. package/dist/lib/typescript/ts-morph.cjs +2 -2
  122. package/dist/lib/typescript/ts-morph.d.cts +5 -3
  123. package/dist/lib/typescript/ts-morph.d.ts +5 -3
  124. package/dist/lib/typescript/ts-morph.js +1 -1
  125. package/dist/lib/unplugin/factory.cjs +6 -6
  126. package/dist/lib/unplugin/factory.d.cts +5 -3
  127. package/dist/lib/unplugin/factory.d.ts +5 -3
  128. package/dist/lib/unplugin/factory.js +5 -5
  129. package/dist/lib/unplugin/helpers.d.cts +3 -1
  130. package/dist/lib/unplugin/helpers.d.ts +3 -1
  131. package/dist/lib/unplugin/index.cjs +11 -11
  132. package/dist/lib/unplugin/index.d.cts +6 -4
  133. package/dist/lib/unplugin/index.d.ts +6 -4
  134. package/dist/lib/unplugin/index.js +7 -7
  135. package/dist/lib/unplugin/plugin.cjs +2 -3
  136. package/dist/lib/unplugin/plugin.d.cts +6 -4
  137. package/dist/lib/unplugin/plugin.d.ts +6 -4
  138. package/dist/lib/unplugin/plugin.js +1 -2
  139. package/dist/lib/{unplugin-CbbNDduM.d.ts → unplugin-CEeJqADD.d.ts} +2 -2
  140. package/dist/lib/{unplugin-ppAOzR__.d.cts → unplugin-bUSyjd0S.d.cts} +2 -2
  141. package/dist/lib/utilities/bundle.cjs +2 -3
  142. package/dist/lib/utilities/bundle.d.cts +3 -1
  143. package/dist/lib/utilities/bundle.d.ts +3 -1
  144. package/dist/lib/utilities/bundle.js +1 -2
  145. package/dist/lib/utilities/cache.d.cts +3 -1
  146. package/dist/lib/utilities/cache.d.ts +3 -1
  147. package/dist/lib/utilities/file-header.d.cts +3 -1
  148. package/dist/lib/utilities/file-header.d.ts +3 -1
  149. package/dist/lib/utilities/index.cjs +14 -19
  150. package/dist/lib/utilities/index.d.cts +3 -2
  151. package/dist/lib/utilities/index.d.ts +3 -2
  152. package/dist/lib/utilities/index.js +4 -5
  153. package/dist/lib/utilities/meta.d.cts +3 -1
  154. package/dist/lib/utilities/meta.d.ts +3 -1
  155. package/dist/lib/utilities/resolve.cjs +3 -4
  156. package/dist/lib/utilities/resolve.d.cts +3 -1
  157. package/dist/lib/utilities/resolve.d.ts +3 -1
  158. package/dist/lib/utilities/resolve.js +2 -3
  159. package/dist/lib/utilities/source-file.d.cts +3 -1
  160. package/dist/lib/utilities/source-file.d.ts +3 -1
  161. package/dist/lib/utilities/source-map.d.cts +3 -1
  162. package/dist/lib/utilities/source-map.d.ts +3 -1
  163. package/dist/lib/utilities/worker.d.cts +3 -1
  164. package/dist/lib/utilities/worker.d.ts +3 -1
  165. package/dist/lib/utilities/write-file.d.cts +3 -1
  166. package/dist/lib/utilities/write-file.d.ts +3 -1
  167. package/dist/next.cjs +4 -4
  168. package/dist/next.js +3 -3
  169. package/dist/nuxt.cjs +6 -6
  170. package/dist/nuxt.js +4 -4
  171. package/dist/plugin-utils/{context-Cg11S-CE.d.cts → context-BITGF5LZ.d.cts} +118 -39
  172. package/dist/plugin-utils/{context-Cg11S-CE.d.ts → context-BITGF5LZ.d.ts} +118 -39
  173. package/dist/plugin-utils/context-helpers.d.cts +4 -1
  174. package/dist/plugin-utils/context-helpers.d.ts +4 -1
  175. package/dist/plugin-utils/enforce.d.cts +4 -1
  176. package/dist/plugin-utils/enforce.d.ts +4 -1
  177. package/dist/plugin-utils/extend.d.cts +4 -1
  178. package/dist/plugin-utils/extend.d.ts +4 -1
  179. package/dist/plugin-utils/get-config-path.d.cts +4 -1
  180. package/dist/plugin-utils/get-config-path.d.ts +4 -1
  181. package/dist/plugin-utils/helpers.d.cts +4 -1
  182. package/dist/plugin-utils/helpers.d.ts +4 -1
  183. package/dist/plugin-utils/index.d.cts +4 -1
  184. package/dist/plugin-utils/index.d.ts +4 -1
  185. package/dist/plugin-utils/merge.d.cts +4 -1
  186. package/dist/plugin-utils/merge.d.ts +4 -1
  187. package/dist/plugin-utils/paths.d.cts +4 -1
  188. package/dist/plugin-utils/paths.d.ts +4 -1
  189. package/dist/{resolved-B3BSdXCt.d.ts → resolved-BABoCnXm.d.ts} +43 -1
  190. package/dist/{resolved-DGrpILrS.d.cts → resolved-CSqGKlA5.d.cts} +43 -1
  191. package/dist/rolldown.cjs +3 -3
  192. package/dist/rolldown.d.cts +3 -1
  193. package/dist/rolldown.d.ts +3 -1
  194. package/dist/rolldown.js +2 -2
  195. package/dist/rollup.cjs +3 -3
  196. package/dist/rollup.d.cts +3 -1
  197. package/dist/rollup.d.ts +3 -1
  198. package/dist/rollup.js +2 -2
  199. package/dist/rspack.cjs +3 -3
  200. package/dist/rspack.d.cts +3 -1
  201. package/dist/rspack.d.ts +3 -1
  202. package/dist/rspack.js +2 -2
  203. package/dist/tsup.cjs +4 -4
  204. package/dist/tsup.js +3 -3
  205. package/dist/types/api.d.cts +4 -2
  206. package/dist/types/api.d.ts +4 -2
  207. package/dist/types/babel.d.cts +3 -1
  208. package/dist/types/babel.d.ts +3 -1
  209. package/dist/types/commands.d.cts +3 -1
  210. package/dist/types/commands.d.ts +3 -1
  211. package/dist/types/config.d.cts +3 -1
  212. package/dist/types/config.d.ts +3 -1
  213. package/dist/types/context.d.cts +3 -1
  214. package/dist/types/context.d.ts +3 -1
  215. package/dist/types/fs.d.cts +68 -36
  216. package/dist/types/fs.d.ts +68 -36
  217. package/dist/types/hooks.d.cts +3 -1
  218. package/dist/types/hooks.d.ts +3 -1
  219. package/dist/types/index.d.cts +5 -3
  220. package/dist/types/index.d.ts +5 -3
  221. package/dist/types/internal.d.cts +4 -2
  222. package/dist/types/internal.d.ts +4 -2
  223. package/dist/types/plugin.d.cts +3 -1
  224. package/dist/types/plugin.d.ts +3 -1
  225. package/dist/types/resolved.d.cts +3 -1
  226. package/dist/types/resolved.d.ts +3 -1
  227. package/dist/types/unplugin.d.cts +4 -2
  228. package/dist/types/unplugin.d.ts +4 -2
  229. package/dist/unloader.cjs +3 -3
  230. package/dist/unloader.d.cts +3 -1
  231. package/dist/unloader.d.ts +3 -1
  232. package/dist/unloader.js +2 -2
  233. package/dist/unplugin.cjs +12 -28
  234. package/dist/unplugin.d.cts +104 -31
  235. package/dist/unplugin.d.ts +104 -31
  236. package/dist/unplugin.js +10 -23
  237. package/dist/vite.cjs +6 -6
  238. package/dist/vite.d.cts +3 -1
  239. package/dist/vite.d.ts +3 -1
  240. package/dist/vite.js +3 -3
  241. package/dist/webpack.cjs +6 -6
  242. package/dist/webpack.d.cts +3 -1
  243. package/dist/webpack.d.ts +3 -1
  244. package/dist/webpack.js +3 -3
  245. package/package.json +17 -16
  246. package/schemas/fs.capnp +35 -38
  247. package/dist/chunk-4TBQYHPZ.cjs +0 -234
  248. package/dist/chunk-7G7OFGGH.js +0 -230
  249. package/dist/lib/chunk-G7S5PIAC.js +0 -89
  250. package/dist/lib/chunk-MZJWK36Q.cjs +0 -37
  251. package/dist/lib/chunk-NWAD7K4D.js +0 -35
  252. package/dist/lib/chunk-ZBDVQVUK.cjs +0 -91
  253. package/dist/lib/unplugin/resolve-id.cjs +0 -11
  254. package/dist/lib/unplugin/resolve-id.d.cts +0 -57
  255. package/dist/lib/unplugin/resolve-id.d.ts +0 -57
  256. package/dist/lib/unplugin/resolve-id.js +0 -2
  257. package/dist/lib/utilities/resolve-path.cjs +0 -11
  258. package/dist/lib/utilities/resolve-path.d.cts +0 -40
  259. package/dist/lib/utilities/resolve-path.d.ts +0 -40
  260. package/dist/lib/utilities/resolve-path.js +0 -2
  261. /package/dist/lib/{chunk-HMO3LAYL.js → chunk-I2DQRMX3.js} +0 -0
  262. /package/dist/lib/{chunk-EJ25PQEL.cjs → chunk-YK4PYVLM.cjs} +0 -0
@@ -1,4 +1,5 @@
1
- import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
1
+ import { ResolveOptions as ResolveOptions$1 } from '@stryke/fs/resolve';
2
+ import { StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
2
3
 
3
4
  type VirtualFileExtension = "js" | "ts" | "jsx" | "tsx";
4
5
  declare const __VFS_PATCH__ = "__VFS_PATCH__";
@@ -88,21 +89,27 @@ interface PowerlinesWriteFileOptions extends ResolveFSOptions {
88
89
  type NodeWriteFileOptions = WriteFileOptions$1;
89
90
  type WriteFileOptions = NodeWriteFileOptions | PowerlinesWriteFileOptions;
90
91
  type WriteFileData = string | NodeJS.ArrayBufferView | VirtualFileData;
91
- interface ResolvePathOptions extends ResolveFSOptions {
92
+ interface ResolveOptions extends ResolveOptions$1 {
92
93
  /**
93
- * Should the resolved path include the file extension?
94
- *
95
- * @defaultValue true
94
+ * If true, the module is being resolved as an entry point.
95
+ */
96
+ isEntry?: boolean;
97
+ /**
98
+ * If true, the resolver will skip using the cache when resolving modules.
99
+ */
100
+ skipCache?: boolean;
101
+ /**
102
+ * An array of external modules or patterns to exclude from resolution.
96
103
  */
97
- withExtension?: boolean;
104
+ external?: (string | RegExp)[];
98
105
  /**
99
- * The paths to search for the file.
106
+ * An array of modules or patterns to include in the resolution, even if they are marked as external.
100
107
  */
101
- paths?: string[];
108
+ noExternal?: (string | RegExp)[];
102
109
  /**
103
- * The type of the path to resolve.
110
+ * An array of patterns to match when resolving modules.
104
111
  */
105
- pathType?: "file" | "directory";
112
+ skipNodeModulesBundle?: boolean;
106
113
  }
107
114
  interface VirtualFileSystemInterface {
108
115
  /**
@@ -116,27 +123,33 @@ interface VirtualFileSystemInterface {
116
123
  /**
117
124
  * The underlying file metadata.
118
125
  */
119
- metadata: Record<string, VirtualFileMetadata | undefined>;
126
+ metadata: Readonly<Record<string, VirtualFileMetadata>>;
127
+ /**
128
+ * A map of file paths to their module ids.
129
+ */
130
+ ids: Readonly<Record<string, string>>;
120
131
  /**
121
132
  * A map of module ids to their file paths.
122
133
  */
123
- ids: Record<string, string>;
134
+ paths: Readonly<Record<string, string>>;
124
135
  /**
125
136
  * Check if a path or id corresponds to a virtual file **(does not actually exists on disk)**.
126
137
  *
127
138
  * @param pathOrId - The path or id to check.
139
+ * @param importer - The importer path, if any.
128
140
  * @param options - Optional parameters for resolving the path.
129
141
  * @returns Whether the path or id corresponds to a virtual file **(does not actually exists on disk)**.
130
142
  */
131
- isVirtual: (pathOrId: string, options?: ResolvePathOptions) => boolean;
143
+ isVirtual: (pathOrId: string, importer?: string, options?: ResolveOptions) => boolean;
132
144
  /**
133
145
  * Check if a path or id corresponds to a file written to the file system **(actually exists on disk)**.
134
146
  *
135
147
  * @param pathOrId - The path or id to check.
148
+ * @param importer - The importer path, if any.
136
149
  * @param options - Optional parameters for resolving the path.
137
150
  * @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
138
151
  */
139
- isPhysical: (pathOrId: string, options?: ResolvePathOptions) => boolean;
152
+ isPhysical: (pathOrId: string, importer?: string, options?: ResolveOptions) => boolean;
140
153
  /**
141
154
  * Checks if a file exists in the virtual file system (VFS).
142
155
  *
@@ -164,7 +177,7 @@ interface VirtualFileSystemInterface {
164
177
  * @param pathOrId - The path or id of the file.
165
178
  * @returns The metadata of the file if it exists, otherwise undefined.
166
179
  */
167
- getMetadata: (pathOrId: PathLike) => VirtualFileMetadata | undefined;
180
+ getMetadata: (pathOrId: string) => VirtualFileMetadata | undefined;
168
181
  /**
169
182
  * Gets the stats of a file in the virtual file system (VFS).
170
183
  *
@@ -237,7 +250,7 @@ interface VirtualFileSystemInterface {
237
250
  * @param path - The path to the file to remove.
238
251
  * @returns A promise that resolves when the file is removed.
239
252
  */
240
- unlinkSync: (path: PathLike, options?: ResolveFSOptions) => void;
253
+ unlinkSync: (path: string, options?: ResolveFSOptions) => void;
241
254
  /**
242
255
  * Asynchronously removes a file or symbolic link in the virtual file system (VFS).
243
256
  *
@@ -251,7 +264,7 @@ interface VirtualFileSystemInterface {
251
264
  * @param path - The path to create the directory at.
252
265
  * @param options - Options for creating the directory.
253
266
  */
254
- rmdirSync: (path: PathLike, options?: RmDirOptions & ResolveFSOptions) => any;
267
+ rmdirSync: (path: string, options?: RmDirOptions & ResolveFSOptions) => any;
255
268
  /**
256
269
  * Removes a directory in the virtual file system (VFS).
257
270
  *
@@ -259,7 +272,7 @@ interface VirtualFileSystemInterface {
259
272
  * @param options - Options for creating the directory.
260
273
  * @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
261
274
  */
262
- rmdir: (path: PathLike, options?: RmDirOptions & ResolveFSOptions) => Promise<void>;
275
+ rmdir: (path: string, options?: RmDirOptions & ResolveFSOptions) => Promise<void>;
263
276
  /**
264
277
  * Removes a file or directory in the virtual file system (VFS).
265
278
  *
@@ -267,14 +280,14 @@ interface VirtualFileSystemInterface {
267
280
  * @param options - Options for removing the file or directory.
268
281
  * @returns A promise that resolves when the file or directory is removed.
269
282
  */
270
- rm: (path: PathLike, options?: RmOptions & ResolveFSOptions) => Promise<void>;
283
+ rm: (path: string, options?: RmOptions & ResolveFSOptions) => Promise<void>;
271
284
  /**
272
285
  * Synchronously removes a file or directory in the virtual file system (VFS).
273
286
  *
274
287
  * @param path - The path to the file or directory to remove.
275
288
  * @param options - Options for removing the file or directory.
276
289
  */
277
- rmSync: (path: PathLike, options?: RmOptions & ResolveFSOptions) => void;
290
+ rmSync: (path: string, options?: RmOptions & ResolveFSOptions) => void;
278
291
  /**
279
292
  * Creates a directory in the virtual file system (VFS).
280
293
  *
@@ -282,7 +295,7 @@ interface VirtualFileSystemInterface {
282
295
  * @param options - Options for creating the directory.
283
296
  * @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
284
297
  */
285
- mkdirSync: (path: PathLike, options?: MakeDirectoryOptions) => string | undefined;
298
+ mkdirSync: (path: string, options?: MakeDirectoryOptions) => string | undefined;
286
299
  /**
287
300
  * Creates a directory in the virtual file system (VFS).
288
301
  *
@@ -290,7 +303,7 @@ interface VirtualFileSystemInterface {
290
303
  * @param options - Options for creating the directory.
291
304
  * @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
292
305
  */
293
- mkdir: (path: PathLike, options?: MakeDirectoryOptions) => Promise<string | undefined>;
306
+ mkdir: (path: string, options?: MakeDirectoryOptions) => Promise<string | undefined>;
294
307
  /**
295
308
  * Reads a file from the virtual file system (VFS).
296
309
  *
@@ -312,7 +325,7 @@ interface VirtualFileSystemInterface {
312
325
  * @param options - Optional parameters for writing the file.
313
326
  * @returns A promise that resolves when the file is written.
314
327
  */
315
- writeFile: (path: PathOrFileDescriptor, data?: WriteFileData, options?: WriteFileOptions) => Promise<void>;
328
+ writeFile: (path: string, data?: WriteFileData, options?: WriteFileOptions) => Promise<void>;
316
329
  /**
317
330
  * Writes a file to the virtual file system (VFS).
318
331
  *
@@ -320,7 +333,7 @@ interface VirtualFileSystemInterface {
320
333
  * @param data - The contents of the file.
321
334
  * @param options - Optional parameters for writing the file.
322
335
  */
323
- writeFileSync: (path: PathOrFileDescriptor, data?: WriteFileData, options?: WriteFileOptions) => void;
336
+ writeFileSync: (path: string, data?: WriteFileData, options?: WriteFileOptions) => void;
324
337
  /**
325
338
  * Moves a file from one path to another in the virtual file system (VFS).
326
339
  *
@@ -367,24 +380,43 @@ interface VirtualFileSystemInterface {
367
380
  * Resolves a path or id to a file path in the virtual file system.
368
381
  *
369
382
  * @param pathOrId - The path or id of the file to resolve.
370
- * @param options - Optional parameters for resolving the path.
371
383
  * @returns The resolved path of the file if it exists, otherwise false.
372
384
  */
373
- resolve: (pathOrId: string, options?: ResolvePathOptions) => string | false;
385
+ realpathSync: (pathOrId: string) => string;
374
386
  /**
375
- * Formats a path to match the virtual file system (VFS) structure.
387
+ * A helper function to resolve modules using the Jiti resolver
376
388
  *
377
- * @param path - The path to format.
378
- * @returns The formatted path.
389
+ * @remarks
390
+ * This function can be used to resolve modules relative to the project root directory.
391
+ *
392
+ * @example
393
+ * ```ts
394
+ * const resolvedPath = await context.resolve("some-module", "/path/to/importer");
395
+ * ```
396
+ *
397
+ * @param id - The module to resolve.
398
+ * @param importer - An optional path to the importer module.
399
+ * @param options - Additional resolution options.
400
+ * @returns A promise that resolves to the resolved module path.
379
401
  */
380
- formatPath: (path: string) => string;
402
+ resolve: (id: string, importer?: string, options?: ResolveOptions) => Promise<string | undefined>;
381
403
  /**
382
- * Resolves a path or id to a file path in the virtual file system.
404
+ * A synchronous helper function to resolve modules using the Jiti resolver
383
405
  *
384
- * @param pathOrId - The path or id of the file to resolve.
385
- * @returns The resolved path of the file if it exists, otherwise false.
406
+ * @remarks
407
+ * This function can be used to resolve modules relative to the project root directory.
408
+ *
409
+ * @example
410
+ * ```ts
411
+ * const resolvedPath = context.resolveSync("some-module", "/path/to/importer");
412
+ * ```
413
+ *
414
+ * @param id - The module to resolve.
415
+ * @param importer - An optional path to the importer module.
416
+ * @param options - Additional resolution options.
417
+ * @returns The resolved module path.
386
418
  */
387
- realpathSync: (pathOrId: string) => string;
419
+ resolveSync: (id: string, importer?: string, options?: ResolveOptions) => string | undefined;
388
420
  /**
389
421
  * Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
390
422
  */
@@ -401,7 +433,7 @@ declare type __ΩPowerlinesWriteFileOptions = any[];
401
433
  declare type __ΩNodeWriteFileOptions = any[];
402
434
  declare type __ΩWriteFileOptions = any[];
403
435
  declare type __ΩWriteFileData = any[];
404
- declare type __ΩResolvePathOptions = any[];
436
+ declare type __ΩResolveOptions = any[];
405
437
  declare type __ΩVirtualFileSystemInterface = any[];
406
438
 
407
- export { type MakeDirectoryOptions, type NodeWriteFileOptions, type OutputModeType, type PowerlinesWriteFileOptions, type ResolveFSOptions, type ResolvePathOptions, type VirtualFile, type VirtualFileData, type VirtualFileExtension, type VirtualFileMetadata, type VirtualFileSystemInterface, type WriteFileData, type WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, type __ΩMakeDirectoryOptions, type __ΩNodeWriteFileOptions, type __ΩOutputModeType, type __ΩPowerlinesWriteFileOptions, type __ΩResolveFSOptions, type __ΩResolvePathOptions, type __ΩVirtualFile, type __ΩVirtualFileData, type __ΩVirtualFileExtension, type __ΩVirtualFileMetadata, type __ΩVirtualFileSystemInterface, type __ΩWriteFileData, type __ΩWriteFileOptions };
439
+ export { type MakeDirectoryOptions, type NodeWriteFileOptions, type OutputModeType, type PowerlinesWriteFileOptions, type ResolveFSOptions, type ResolveOptions, type VirtualFile, type VirtualFileData, type VirtualFileExtension, type VirtualFileMetadata, type VirtualFileSystemInterface, type WriteFileData, type WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, type __ΩMakeDirectoryOptions, type __ΩNodeWriteFileOptions, type __ΩOutputModeType, type __ΩPowerlinesWriteFileOptions, type __ΩResolveFSOptions, type __ΩResolveOptions, type __ΩVirtualFile, type __ΩVirtualFileData, type __ΩVirtualFileExtension, type __ΩVirtualFileMetadata, type __ΩVirtualFileSystemInterface, type __ΩWriteFileData, type __ΩWriteFileOptions };
@@ -1,4 +1,5 @@
1
- import { PathLike, StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, PathOrFileDescriptor, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
1
+ import { ResolveOptions as ResolveOptions$1 } from '@stryke/fs/resolve';
2
+ import { StatSyncOptions, Stats, RmDirOptions, RmOptions, Mode, MakeDirectoryOptions as MakeDirectoryOptions$1, WriteFileOptions as WriteFileOptions$1 } from 'node:fs';
2
3
 
3
4
  type VirtualFileExtension = "js" | "ts" | "jsx" | "tsx";
4
5
  declare const __VFS_PATCH__ = "__VFS_PATCH__";
@@ -88,21 +89,27 @@ interface PowerlinesWriteFileOptions extends ResolveFSOptions {
88
89
  type NodeWriteFileOptions = WriteFileOptions$1;
89
90
  type WriteFileOptions = NodeWriteFileOptions | PowerlinesWriteFileOptions;
90
91
  type WriteFileData = string | NodeJS.ArrayBufferView | VirtualFileData;
91
- interface ResolvePathOptions extends ResolveFSOptions {
92
+ interface ResolveOptions extends ResolveOptions$1 {
92
93
  /**
93
- * Should the resolved path include the file extension?
94
- *
95
- * @defaultValue true
94
+ * If true, the module is being resolved as an entry point.
95
+ */
96
+ isEntry?: boolean;
97
+ /**
98
+ * If true, the resolver will skip using the cache when resolving modules.
99
+ */
100
+ skipCache?: boolean;
101
+ /**
102
+ * An array of external modules or patterns to exclude from resolution.
96
103
  */
97
- withExtension?: boolean;
104
+ external?: (string | RegExp)[];
98
105
  /**
99
- * The paths to search for the file.
106
+ * An array of modules or patterns to include in the resolution, even if they are marked as external.
100
107
  */
101
- paths?: string[];
108
+ noExternal?: (string | RegExp)[];
102
109
  /**
103
- * The type of the path to resolve.
110
+ * An array of patterns to match when resolving modules.
104
111
  */
105
- pathType?: "file" | "directory";
112
+ skipNodeModulesBundle?: boolean;
106
113
  }
107
114
  interface VirtualFileSystemInterface {
108
115
  /**
@@ -116,27 +123,33 @@ interface VirtualFileSystemInterface {
116
123
  /**
117
124
  * The underlying file metadata.
118
125
  */
119
- metadata: Record<string, VirtualFileMetadata | undefined>;
126
+ metadata: Readonly<Record<string, VirtualFileMetadata>>;
127
+ /**
128
+ * A map of file paths to their module ids.
129
+ */
130
+ ids: Readonly<Record<string, string>>;
120
131
  /**
121
132
  * A map of module ids to their file paths.
122
133
  */
123
- ids: Record<string, string>;
134
+ paths: Readonly<Record<string, string>>;
124
135
  /**
125
136
  * Check if a path or id corresponds to a virtual file **(does not actually exists on disk)**.
126
137
  *
127
138
  * @param pathOrId - The path or id to check.
139
+ * @param importer - The importer path, if any.
128
140
  * @param options - Optional parameters for resolving the path.
129
141
  * @returns Whether the path or id corresponds to a virtual file **(does not actually exists on disk)**.
130
142
  */
131
- isVirtual: (pathOrId: string, options?: ResolvePathOptions) => boolean;
143
+ isVirtual: (pathOrId: string, importer?: string, options?: ResolveOptions) => boolean;
132
144
  /**
133
145
  * Check if a path or id corresponds to a file written to the file system **(actually exists on disk)**.
134
146
  *
135
147
  * @param pathOrId - The path or id to check.
148
+ * @param importer - The importer path, if any.
136
149
  * @param options - Optional parameters for resolving the path.
137
150
  * @returns Whether the path or id corresponds to a file written to the file system **(actually exists on disk)**.
138
151
  */
139
- isPhysical: (pathOrId: string, options?: ResolvePathOptions) => boolean;
152
+ isPhysical: (pathOrId: string, importer?: string, options?: ResolveOptions) => boolean;
140
153
  /**
141
154
  * Checks if a file exists in the virtual file system (VFS).
142
155
  *
@@ -164,7 +177,7 @@ interface VirtualFileSystemInterface {
164
177
  * @param pathOrId - The path or id of the file.
165
178
  * @returns The metadata of the file if it exists, otherwise undefined.
166
179
  */
167
- getMetadata: (pathOrId: PathLike) => VirtualFileMetadata | undefined;
180
+ getMetadata: (pathOrId: string) => VirtualFileMetadata | undefined;
168
181
  /**
169
182
  * Gets the stats of a file in the virtual file system (VFS).
170
183
  *
@@ -237,7 +250,7 @@ interface VirtualFileSystemInterface {
237
250
  * @param path - The path to the file to remove.
238
251
  * @returns A promise that resolves when the file is removed.
239
252
  */
240
- unlinkSync: (path: PathLike, options?: ResolveFSOptions) => void;
253
+ unlinkSync: (path: string, options?: ResolveFSOptions) => void;
241
254
  /**
242
255
  * Asynchronously removes a file or symbolic link in the virtual file system (VFS).
243
256
  *
@@ -251,7 +264,7 @@ interface VirtualFileSystemInterface {
251
264
  * @param path - The path to create the directory at.
252
265
  * @param options - Options for creating the directory.
253
266
  */
254
- rmdirSync: (path: PathLike, options?: RmDirOptions & ResolveFSOptions) => any;
267
+ rmdirSync: (path: string, options?: RmDirOptions & ResolveFSOptions) => any;
255
268
  /**
256
269
  * Removes a directory in the virtual file system (VFS).
257
270
  *
@@ -259,7 +272,7 @@ interface VirtualFileSystemInterface {
259
272
  * @param options - Options for creating the directory.
260
273
  * @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
261
274
  */
262
- rmdir: (path: PathLike, options?: RmDirOptions & ResolveFSOptions) => Promise<void>;
275
+ rmdir: (path: string, options?: RmDirOptions & ResolveFSOptions) => Promise<void>;
263
276
  /**
264
277
  * Removes a file or directory in the virtual file system (VFS).
265
278
  *
@@ -267,14 +280,14 @@ interface VirtualFileSystemInterface {
267
280
  * @param options - Options for removing the file or directory.
268
281
  * @returns A promise that resolves when the file or directory is removed.
269
282
  */
270
- rm: (path: PathLike, options?: RmOptions & ResolveFSOptions) => Promise<void>;
283
+ rm: (path: string, options?: RmOptions & ResolveFSOptions) => Promise<void>;
271
284
  /**
272
285
  * Synchronously removes a file or directory in the virtual file system (VFS).
273
286
  *
274
287
  * @param path - The path to the file or directory to remove.
275
288
  * @param options - Options for removing the file or directory.
276
289
  */
277
- rmSync: (path: PathLike, options?: RmOptions & ResolveFSOptions) => void;
290
+ rmSync: (path: string, options?: RmOptions & ResolveFSOptions) => void;
278
291
  /**
279
292
  * Creates a directory in the virtual file system (VFS).
280
293
  *
@@ -282,7 +295,7 @@ interface VirtualFileSystemInterface {
282
295
  * @param options - Options for creating the directory.
283
296
  * @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
284
297
  */
285
- mkdirSync: (path: PathLike, options?: MakeDirectoryOptions) => string | undefined;
298
+ mkdirSync: (path: string, options?: MakeDirectoryOptions) => string | undefined;
286
299
  /**
287
300
  * Creates a directory in the virtual file system (VFS).
288
301
  *
@@ -290,7 +303,7 @@ interface VirtualFileSystemInterface {
290
303
  * @param options - Options for creating the directory.
291
304
  * @returns A promise that resolves to the path of the created directory, or undefined if the directory could not be created.
292
305
  */
293
- mkdir: (path: PathLike, options?: MakeDirectoryOptions) => Promise<string | undefined>;
306
+ mkdir: (path: string, options?: MakeDirectoryOptions) => Promise<string | undefined>;
294
307
  /**
295
308
  * Reads a file from the virtual file system (VFS).
296
309
  *
@@ -312,7 +325,7 @@ interface VirtualFileSystemInterface {
312
325
  * @param options - Optional parameters for writing the file.
313
326
  * @returns A promise that resolves when the file is written.
314
327
  */
315
- writeFile: (path: PathOrFileDescriptor, data?: WriteFileData, options?: WriteFileOptions) => Promise<void>;
328
+ writeFile: (path: string, data?: WriteFileData, options?: WriteFileOptions) => Promise<void>;
316
329
  /**
317
330
  * Writes a file to the virtual file system (VFS).
318
331
  *
@@ -320,7 +333,7 @@ interface VirtualFileSystemInterface {
320
333
  * @param data - The contents of the file.
321
334
  * @param options - Optional parameters for writing the file.
322
335
  */
323
- writeFileSync: (path: PathOrFileDescriptor, data?: WriteFileData, options?: WriteFileOptions) => void;
336
+ writeFileSync: (path: string, data?: WriteFileData, options?: WriteFileOptions) => void;
324
337
  /**
325
338
  * Moves a file from one path to another in the virtual file system (VFS).
326
339
  *
@@ -367,24 +380,43 @@ interface VirtualFileSystemInterface {
367
380
  * Resolves a path or id to a file path in the virtual file system.
368
381
  *
369
382
  * @param pathOrId - The path or id of the file to resolve.
370
- * @param options - Optional parameters for resolving the path.
371
383
  * @returns The resolved path of the file if it exists, otherwise false.
372
384
  */
373
- resolve: (pathOrId: string, options?: ResolvePathOptions) => string | false;
385
+ realpathSync: (pathOrId: string) => string;
374
386
  /**
375
- * Formats a path to match the virtual file system (VFS) structure.
387
+ * A helper function to resolve modules using the Jiti resolver
376
388
  *
377
- * @param path - The path to format.
378
- * @returns The formatted path.
389
+ * @remarks
390
+ * This function can be used to resolve modules relative to the project root directory.
391
+ *
392
+ * @example
393
+ * ```ts
394
+ * const resolvedPath = await context.resolve("some-module", "/path/to/importer");
395
+ * ```
396
+ *
397
+ * @param id - The module to resolve.
398
+ * @param importer - An optional path to the importer module.
399
+ * @param options - Additional resolution options.
400
+ * @returns A promise that resolves to the resolved module path.
379
401
  */
380
- formatPath: (path: string) => string;
402
+ resolve: (id: string, importer?: string, options?: ResolveOptions) => Promise<string | undefined>;
381
403
  /**
382
- * Resolves a path or id to a file path in the virtual file system.
404
+ * A synchronous helper function to resolve modules using the Jiti resolver
383
405
  *
384
- * @param pathOrId - The path or id of the file to resolve.
385
- * @returns The resolved path of the file if it exists, otherwise false.
406
+ * @remarks
407
+ * This function can be used to resolve modules relative to the project root directory.
408
+ *
409
+ * @example
410
+ * ```ts
411
+ * const resolvedPath = context.resolveSync("some-module", "/path/to/importer");
412
+ * ```
413
+ *
414
+ * @param id - The module to resolve.
415
+ * @param importer - An optional path to the importer module.
416
+ * @param options - Additional resolution options.
417
+ * @returns The resolved module path.
386
418
  */
387
- realpathSync: (pathOrId: string) => string;
419
+ resolveSync: (id: string, importer?: string, options?: ResolveOptions) => string | undefined;
388
420
  /**
389
421
  * Disposes of the virtual file system (VFS), writes any virtual file changes to disk, and releases any associated resources.
390
422
  */
@@ -401,7 +433,7 @@ declare type __ΩPowerlinesWriteFileOptions = any[];
401
433
  declare type __ΩNodeWriteFileOptions = any[];
402
434
  declare type __ΩWriteFileOptions = any[];
403
435
  declare type __ΩWriteFileData = any[];
404
- declare type __ΩResolvePathOptions = any[];
436
+ declare type __ΩResolveOptions = any[];
405
437
  declare type __ΩVirtualFileSystemInterface = any[];
406
438
 
407
- export { type MakeDirectoryOptions, type NodeWriteFileOptions, type OutputModeType, type PowerlinesWriteFileOptions, type ResolveFSOptions, type ResolvePathOptions, type VirtualFile, type VirtualFileData, type VirtualFileExtension, type VirtualFileMetadata, type VirtualFileSystemInterface, type WriteFileData, type WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, type __ΩMakeDirectoryOptions, type __ΩNodeWriteFileOptions, type __ΩOutputModeType, type __ΩPowerlinesWriteFileOptions, type __ΩResolveFSOptions, type __ΩResolvePathOptions, type __ΩVirtualFile, type __ΩVirtualFileData, type __ΩVirtualFileExtension, type __ΩVirtualFileMetadata, type __ΩVirtualFileSystemInterface, type __ΩWriteFileData, type __ΩWriteFileOptions };
439
+ export { type MakeDirectoryOptions, type NodeWriteFileOptions, type OutputModeType, type PowerlinesWriteFileOptions, type ResolveFSOptions, type ResolveOptions, type VirtualFile, type VirtualFileData, type VirtualFileExtension, type VirtualFileMetadata, type VirtualFileSystemInterface, type WriteFileData, type WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, type __ΩMakeDirectoryOptions, type __ΩNodeWriteFileOptions, type __ΩOutputModeType, type __ΩPowerlinesWriteFileOptions, type __ΩResolveFSOptions, type __ΩResolveOptions, type __ΩVirtualFile, type __ΩVirtualFileData, type __ΩVirtualFileExtension, type __ΩVirtualFileMetadata, type __ΩVirtualFileSystemInterface, type __ΩWriteFileData, type __ΩWriteFileOptions };
@@ -1,4 +1,4 @@
1
- export { by as BaseHookKeys, bx as BaseHooks, bE as BaseHooksList, bD as BaseHooksListItem, bA as ExternalHookKeys, bz as ExternalHooks, bF as ExternalHooksListItem, bC as HookKeys, bB as Hooks, bG as HooksList, bH as InferHookHandler, bJ as InferHookParameters, bI as InferHookReturnType, bK as InferHookThisType, bM as __ΩBaseHookKeys, bL as __ΩBaseHooks, bS as __ΩBaseHooksList, bR as __ΩBaseHooksListItem, bO as __ΩExternalHookKeys, bN as __ΩExternalHooks, bT as __ΩExternalHooksListItem, bQ as __ΩHookKeys, bP as __ΩHooks, bU as __ΩHooksList, bV as __ΩInferHookHandler, bX as __ΩInferHookParameters, bW as __ΩInferHookReturnType, bY as __ΩInferHookThisType } from '../resolved-DGrpILrS.cjs';
1
+ export { by as BaseHookKeys, bx as BaseHooks, bE as BaseHooksList, bD as BaseHooksListItem, bA as ExternalHookKeys, bz as ExternalHooks, bF as ExternalHooksListItem, bC as HookKeys, bB as Hooks, bG as HooksList, bH as InferHookHandler, bJ as InferHookParameters, bI as InferHookReturnType, bK as InferHookThisType, bM as __ΩBaseHookKeys, bL as __ΩBaseHooks, bS as __ΩBaseHooksList, bR as __ΩBaseHooksListItem, bO as __ΩExternalHookKeys, bN as __ΩExternalHooks, bT as __ΩExternalHooksListItem, bQ as __ΩHookKeys, bP as __ΩHooks, bU as __ΩHooksList, bV as __ΩInferHookHandler, bX as __ΩInferHookParameters, bW as __ΩInferHookReturnType, bY as __ΩInferHookThisType } from '../resolved-CSqGKlA5.cjs';
2
2
  import '@stryke/types/base';
3
3
  import '@stryke/types/configuration';
4
4
  import '@stryke/types/file';
@@ -25,9 +25,11 @@ import 'jiti';
25
25
  import 'magic-string';
26
26
  import 'memfs';
27
27
  import 'semver';
28
+ import 'ts-morph';
28
29
  import 'unimport';
29
30
  import 'unplugin';
30
31
  import './fs.cjs';
32
+ import '@stryke/fs/resolve';
31
33
  import 'node:fs';
32
34
  import '@stryke/types/array';
33
35
  import './tsconfig.cjs';
@@ -1,4 +1,4 @@
1
- export { by as BaseHookKeys, bx as BaseHooks, bE as BaseHooksList, bD as BaseHooksListItem, bA as ExternalHookKeys, bz as ExternalHooks, bF as ExternalHooksListItem, bC as HookKeys, bB as Hooks, bG as HooksList, bH as InferHookHandler, bJ as InferHookParameters, bI as InferHookReturnType, bK as InferHookThisType, bM as __ΩBaseHookKeys, bL as __ΩBaseHooks, bS as __ΩBaseHooksList, bR as __ΩBaseHooksListItem, bO as __ΩExternalHookKeys, bN as __ΩExternalHooks, bT as __ΩExternalHooksListItem, bQ as __ΩHookKeys, bP as __ΩHooks, bU as __ΩHooksList, bV as __ΩInferHookHandler, bX as __ΩInferHookParameters, bW as __ΩInferHookReturnType, bY as __ΩInferHookThisType } from '../resolved-B3BSdXCt.js';
1
+ export { by as BaseHookKeys, bx as BaseHooks, bE as BaseHooksList, bD as BaseHooksListItem, bA as ExternalHookKeys, bz as ExternalHooks, bF as ExternalHooksListItem, bC as HookKeys, bB as Hooks, bG as HooksList, bH as InferHookHandler, bJ as InferHookParameters, bI as InferHookReturnType, bK as InferHookThisType, bM as __ΩBaseHookKeys, bL as __ΩBaseHooks, bS as __ΩBaseHooksList, bR as __ΩBaseHooksListItem, bO as __ΩExternalHookKeys, bN as __ΩExternalHooks, bT as __ΩExternalHooksListItem, bQ as __ΩHookKeys, bP as __ΩHooks, bU as __ΩHooksList, bV as __ΩInferHookHandler, bX as __ΩInferHookParameters, bW as __ΩInferHookReturnType, bY as __ΩInferHookThisType } from '../resolved-BABoCnXm.js';
2
2
  import '@stryke/types/base';
3
3
  import '@stryke/types/configuration';
4
4
  import '@stryke/types/file';
@@ -25,9 +25,11 @@ import 'jiti';
25
25
  import 'magic-string';
26
26
  import 'memfs';
27
27
  import 'semver';
28
+ import 'ts-morph';
28
29
  import 'unimport';
29
30
  import 'unplugin';
30
31
  import './fs.js';
32
+ import '@stryke/fs/resolve';
31
33
  import 'node:fs';
32
34
  import '@stryke/types/array';
33
35
  import './tsconfig.js';
@@ -1,7 +1,7 @@
1
- export { A as API, _ as __ΩAPI } from '../api-B77aqxGC.cjs';
2
- export { ba as APIContext, ae as AnyUserConfig, B as BabelPluginPass, cp as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, G as BabelUserConfig, H as BaseConfig, by as BaseHookKeys, bx as BaseHooks, bE as BaseHooksList, bD as BaseHooksListItem, c1 as BasePluginHookFunctions, a9 as BuildInlineConfig, c2 as BuildPlugin, be as BuildPluginContext, a7 as CleanInlineConfig, C as CommandType, u as Commands, K as CommonUserConfig, ad as ConfigEnv, c0 as ConfigResult, b9 as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, aj as DefineConfigInput, ac as DeployInlineConfig, ab as DocsInlineConfig, cx as ESBuildResolvedConfig, Y as ESBuildUserConfig, J as EnvironmentConfig, bc as EnvironmentContext, bb as EnvironmentContextPlugin, cq as EnvironmentResolvedConfig, bA as ExternalHookKeys, bz as ExternalHooks, bF as ExternalHooksListItem, c4 as ExternalPluginHookFunctions, c3 as ExternalPluginHookFunctionsVariant, cC as FarmResolvedConfig, a0 as FarmUserConfig, b$ as GenerateTypesResult, bC as HookKeys, bB as Hooks, bG as HooksList, I as ImportDefinition, h as ImportSpecifier, bH as InferHookHandler, bJ as InferHookParameters, bI as InferHookReturnType, bK as InferHookThisType, cD as InferResolvedConfig, a1 as InferUserConfig, b7 as InitContextOptions, a2 as InitialUserConfig, a5 as InlineConfig, aa as LintInlineConfig, L as LogFn, a$ as LogLevel, b1 as MetaInfo, N as NamedImportDefinition, a6 as NewInlineConfig, O as OutputConfig, cs as OutputResolvedConfig, c9 as PLUGIN_NON_HOOK_FIELDS, a3 as ParsedUserConfig, A as PartialPlugin, E as PartialPluginFactory, c8 as Plugin, c7 as PluginBuildPlugins, z as PluginConfig, y as PluginConfigObject, x as PluginConfigTuple, bd as PluginContext, P as PluginFactory, b_ as PluginHook, c5 as PluginHookFunctions, bZ as PluginHookObject, c6 as PluginHooks, ca as PluginNonHookFields, a4 as PowerlinesCommand, a8 as PrepareInlineConfig, F as ProjectType, cr as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, ct as ResolvedConfig, co as ResolvedEntryTypeDefinition, b2 as Resolver, cz as RolldownResolvedConfig, V as RolldownUserConfig, cy as RollupResolvedConfig, T as RollupUserConfig, cw as RspackResolvedConfig, Q as RspackUserConfig, S as SUPPORTED_COMMANDS, b6 as SelectHooksOptions, bf as SerializedVirtualFileSystem, b4 as SourceFile, b3 as TransformResult, cA as TsupResolvedConfig, $ as TsupUserConfig, cB as UnbuildResolvedConfig, Z as UnbuildUserConfig, b5 as UnimportContext, b8 as UnresolvedContext, U as UserConfig, ai as UserConfigExport, ah as UserConfigFn, af as UserConfigFnObject, ag as UserConfigFnPromise, cu as ViteResolvedConfig, X as ViteUserConfig, cv as WebpackResolvedConfig, M as WebpackUserConfig, b0 as WorkerProcess, W as WorkspaceConfig, br as __ΩAPIContext, aV as __ΩAnyUserConfig, k as __ΩBabelPluginPass, cF as __ΩBabelResolvedConfig, p as __ΩBabelTransformInput, m as __ΩBabelTransformPlugin, r as __ΩBabelTransformPluginBuilder, q as __ΩBabelTransformPluginBuilderParams, l as __ΩBabelTransformPluginFilter, n as __ΩBabelTransformPluginOptions, at as __ΩBabelUserConfig, av as __ΩBaseConfig, bM as __ΩBaseHookKeys, bL as __ΩBaseHooks, bS as __ΩBaseHooksList, bR as __ΩBaseHooksListItem, cf as __ΩBasePluginHookFunctions, aQ as __ΩBuildInlineConfig, cg as __ΩBuildPlugin, bv as __ΩBuildPluginContext, aO as __ΩCleanInlineConfig, v as __ΩCommandType, w as __ΩCommands, ax as __ΩCommonUserConfig, aU as __ΩConfigEnv, ce as __ΩConfigResult, bq as __ΩContext, s as __ΩDeclareBabelTransformPluginReturn, i as __ΩDefaultImportDefinition, a_ as __ΩDefineConfigInput, aT as __ΩDeployInlineConfig, aS as __ΩDocsInlineConfig, cN as __ΩESBuildResolvedConfig, aE as __ΩESBuildUserConfig, aw as __ΩEnvironmentConfig, bt as __ΩEnvironmentContext, bs as __ΩEnvironmentContextPlugin, cG as __ΩEnvironmentResolvedConfig, bO as __ΩExternalHookKeys, bN as __ΩExternalHooks, bT as __ΩExternalHooksListItem, ci as __ΩExternalPluginHookFunctions, ch as __ΩExternalPluginHookFunctionsVariant, cS as __ΩFarmResolvedConfig, aH as __ΩFarmUserConfig, cd as __ΩGenerateTypesResult, bQ as __ΩHookKeys, bP as __ΩHooks, bU as __ΩHooksList, j as __ΩImportDefinition, t as __ΩImportSpecifier, bV as __ΩInferHookHandler, bX as __ΩInferHookParameters, bW as __ΩInferHookReturnType, bY as __ΩInferHookThisType, cT as __ΩInferResolvedConfig, aI as __ΩInferUserConfig, bo as __ΩInitContextOptions, aJ as __ΩInitialUserConfig, aM as __ΩInlineConfig, aR as __ΩLintInlineConfig, ak as __ΩLogFn, bg as __ΩLogLevel, bi as __ΩMetaInfo, _ as __ΩNamedImportDefinition, aN as __ΩNewInlineConfig, au as __ΩOutputConfig, cI as __ΩOutputResolvedConfig, aK as __ΩParsedUserConfig, aq as __ΩPartialPlugin, ar as __ΩPartialPluginFactory, cm as __ΩPlugin, cl as __ΩPluginBuildPlugins, ap as __ΩPluginConfig, ao as __ΩPluginConfigObject, an as __ΩPluginConfigTuple, bu as __ΩPluginContext, am as __ΩPluginFactory, cc as __ΩPluginHook, cj as __ΩPluginHookFunctions, cb as __ΩPluginHookObject, ck as __ΩPluginHooks, cn as __ΩPluginNonHookFields, aL as __ΩPowerlinesCommand, aP as __ΩPrepareInlineConfig, as as __ΩProjectType, cH as __ΩResolvedAssetGlob, o as __ΩResolvedBabelTransformPluginOptions, cJ as __ΩResolvedConfig, cE as __ΩResolvedEntryTypeDefinition, bj as __ΩResolver, cP as __ΩRolldownResolvedConfig, aC as __ΩRolldownUserConfig, cO as __ΩRollupResolvedConfig, aB as __ΩRollupUserConfig, cM as __ΩRspackResolvedConfig, aA as __ΩRspackUserConfig, bn as __ΩSelectHooksOptions, bw as __ΩSerializedVirtualFileSystem, bl as __ΩSourceFile, bk as __ΩTransformResult, cQ as __ΩTsupResolvedConfig, aG as __ΩTsupUserConfig, cR as __ΩUnbuildResolvedConfig, aF as __ΩUnbuildUserConfig, bm as __ΩUnimportContext, bp as __ΩUnresolvedContext, ay as __ΩUserConfig, aZ as __ΩUserConfigExport, aY as __ΩUserConfigFn, aW as __ΩUserConfigFnObject, aX as __ΩUserConfigFnPromise, cK as __ΩViteResolvedConfig, aD as __ΩViteUserConfig, cL as __ΩWebpackResolvedConfig, az as __ΩWebpackUserConfig, bh as __ΩWorkerProcess, al as __ΩWorkspaceConfig } from '../resolved-DGrpILrS.cjs';
1
+ export { A as API, _ as __ΩAPI } from '../api-wzd5AREv.cjs';
2
+ export { ba as APIContext, ae as AnyUserConfig, B as BabelPluginPass, cp as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, G as BabelUserConfig, H as BaseConfig, by as BaseHookKeys, bx as BaseHooks, bE as BaseHooksList, bD as BaseHooksListItem, c1 as BasePluginHookFunctions, a9 as BuildInlineConfig, c2 as BuildPlugin, be as BuildPluginContext, a7 as CleanInlineConfig, C as CommandType, u as Commands, K as CommonUserConfig, ad as ConfigEnv, c0 as ConfigResult, b9 as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, aj as DefineConfigInput, ac as DeployInlineConfig, ab as DocsInlineConfig, cx as ESBuildResolvedConfig, Y as ESBuildUserConfig, J as EnvironmentConfig, bc as EnvironmentContext, bb as EnvironmentContextPlugin, cq as EnvironmentResolvedConfig, bA as ExternalHookKeys, bz as ExternalHooks, bF as ExternalHooksListItem, c4 as ExternalPluginHookFunctions, c3 as ExternalPluginHookFunctionsVariant, cC as FarmResolvedConfig, a0 as FarmUserConfig, b$ as GenerateTypesResult, bC as HookKeys, bB as Hooks, bG as HooksList, I as ImportDefinition, h as ImportSpecifier, bH as InferHookHandler, bJ as InferHookParameters, bI as InferHookReturnType, bK as InferHookThisType, cD as InferResolvedConfig, a1 as InferUserConfig, b7 as InitContextOptions, a2 as InitialUserConfig, a5 as InlineConfig, aa as LintInlineConfig, L as LogFn, a$ as LogLevel, b1 as MetaInfo, N as NamedImportDefinition, a6 as NewInlineConfig, O as OutputConfig, cs as OutputResolvedConfig, c9 as PLUGIN_NON_HOOK_FIELDS, a3 as ParsedUserConfig, A as PartialPlugin, E as PartialPluginFactory, c8 as Plugin, c7 as PluginBuildPlugins, z as PluginConfig, y as PluginConfigObject, x as PluginConfigTuple, bd as PluginContext, P as PluginFactory, b_ as PluginHook, c5 as PluginHookFunctions, bZ as PluginHookObject, c6 as PluginHooks, ca as PluginNonHookFields, a4 as PowerlinesCommand, a8 as PrepareInlineConfig, F as ProjectType, cr as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, ct as ResolvedConfig, co as ResolvedEntryTypeDefinition, b2 as Resolver, cz as RolldownResolvedConfig, V as RolldownUserConfig, cy as RollupResolvedConfig, T as RollupUserConfig, cw as RspackResolvedConfig, Q as RspackUserConfig, S as SUPPORTED_COMMANDS, b6 as SelectHooksOptions, bf as SerializedVirtualFileSystem, b4 as SourceFile, b3 as TransformResult, cA as TsupResolvedConfig, $ as TsupUserConfig, cB as UnbuildResolvedConfig, Z as UnbuildUserConfig, b5 as UnimportContext, b8 as UnresolvedContext, U as UserConfig, ai as UserConfigExport, ah as UserConfigFn, af as UserConfigFnObject, ag as UserConfigFnPromise, cu as ViteResolvedConfig, X as ViteUserConfig, cv as WebpackResolvedConfig, M as WebpackUserConfig, b0 as WorkerProcess, W as WorkspaceConfig, br as __ΩAPIContext, aV as __ΩAnyUserConfig, k as __ΩBabelPluginPass, cF as __ΩBabelResolvedConfig, p as __ΩBabelTransformInput, m as __ΩBabelTransformPlugin, r as __ΩBabelTransformPluginBuilder, q as __ΩBabelTransformPluginBuilderParams, l as __ΩBabelTransformPluginFilter, n as __ΩBabelTransformPluginOptions, at as __ΩBabelUserConfig, av as __ΩBaseConfig, bM as __ΩBaseHookKeys, bL as __ΩBaseHooks, bS as __ΩBaseHooksList, bR as __ΩBaseHooksListItem, cf as __ΩBasePluginHookFunctions, aQ as __ΩBuildInlineConfig, cg as __ΩBuildPlugin, bv as __ΩBuildPluginContext, aO as __ΩCleanInlineConfig, v as __ΩCommandType, w as __ΩCommands, ax as __ΩCommonUserConfig, aU as __ΩConfigEnv, ce as __ΩConfigResult, bq as __ΩContext, s as __ΩDeclareBabelTransformPluginReturn, i as __ΩDefaultImportDefinition, a_ as __ΩDefineConfigInput, aT as __ΩDeployInlineConfig, aS as __ΩDocsInlineConfig, cN as __ΩESBuildResolvedConfig, aE as __ΩESBuildUserConfig, aw as __ΩEnvironmentConfig, bt as __ΩEnvironmentContext, bs as __ΩEnvironmentContextPlugin, cG as __ΩEnvironmentResolvedConfig, bO as __ΩExternalHookKeys, bN as __ΩExternalHooks, bT as __ΩExternalHooksListItem, ci as __ΩExternalPluginHookFunctions, ch as __ΩExternalPluginHookFunctionsVariant, cS as __ΩFarmResolvedConfig, aH as __ΩFarmUserConfig, cd as __ΩGenerateTypesResult, bQ as __ΩHookKeys, bP as __ΩHooks, bU as __ΩHooksList, j as __ΩImportDefinition, t as __ΩImportSpecifier, bV as __ΩInferHookHandler, bX as __ΩInferHookParameters, bW as __ΩInferHookReturnType, bY as __ΩInferHookThisType, cT as __ΩInferResolvedConfig, aI as __ΩInferUserConfig, bo as __ΩInitContextOptions, aJ as __ΩInitialUserConfig, aM as __ΩInlineConfig, aR as __ΩLintInlineConfig, ak as __ΩLogFn, bg as __ΩLogLevel, bi as __ΩMetaInfo, _ as __ΩNamedImportDefinition, aN as __ΩNewInlineConfig, au as __ΩOutputConfig, cI as __ΩOutputResolvedConfig, aK as __ΩParsedUserConfig, aq as __ΩPartialPlugin, ar as __ΩPartialPluginFactory, cm as __ΩPlugin, cl as __ΩPluginBuildPlugins, ap as __ΩPluginConfig, ao as __ΩPluginConfigObject, an as __ΩPluginConfigTuple, bu as __ΩPluginContext, am as __ΩPluginFactory, cc as __ΩPluginHook, cj as __ΩPluginHookFunctions, cb as __ΩPluginHookObject, ck as __ΩPluginHooks, cn as __ΩPluginNonHookFields, aL as __ΩPowerlinesCommand, aP as __ΩPrepareInlineConfig, as as __ΩProjectType, cH as __ΩResolvedAssetGlob, o as __ΩResolvedBabelTransformPluginOptions, cJ as __ΩResolvedConfig, cE as __ΩResolvedEntryTypeDefinition, bj as __ΩResolver, cP as __ΩRolldownResolvedConfig, aC as __ΩRolldownUserConfig, cO as __ΩRollupResolvedConfig, aB as __ΩRollupUserConfig, cM as __ΩRspackResolvedConfig, aA as __ΩRspackUserConfig, bn as __ΩSelectHooksOptions, bw as __ΩSerializedVirtualFileSystem, bl as __ΩSourceFile, bk as __ΩTransformResult, cQ as __ΩTsupResolvedConfig, aG as __ΩTsupUserConfig, cR as __ΩUnbuildResolvedConfig, aF as __ΩUnbuildUserConfig, bm as __ΩUnimportContext, bp as __ΩUnresolvedContext, ay as __ΩUserConfig, aZ as __ΩUserConfigExport, aY as __ΩUserConfigFn, aW as __ΩUserConfigFnObject, aX as __ΩUserConfigFnPromise, cK as __ΩViteResolvedConfig, aD as __ΩViteUserConfig, cL as __ΩWebpackResolvedConfig, az as __ΩWebpackUserConfig, bh as __ΩWorkerProcess, al as __ΩWorkspaceConfig } from '../resolved-CSqGKlA5.cjs';
3
3
  export { BuildConfig, BuildResolvedConfig, BuildVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownBuildOutputConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuildVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, __ΩBuildConfig, __ΩBuildResolvedConfig, __ΩBuildVariant, __ΩESBuildBuildConfig, __ΩESBuildResolvedBuildConfig, __ΩFarmBuildConfig, __ΩFarmResolvedBuildConfig, __ΩInferUnpluginVariant, __ΩRolldownBuildConfig, __ΩRolldownBuildOutputConfig, __ΩRolldownResolvedBuildConfig, __ΩRollupBuildConfig, __ΩRollupBuildOutputConfig, __ΩRollupResolvedBuildConfig, __ΩRspackBuildConfig, __ΩRspackResolvedBuildConfig, __ΩTsupBuildConfig, __ΩTsupResolvedBuildConfig, __ΩUnbuildBuildConfig, __ΩUnbuildResolvedBuildConfig, __ΩUnpluginBuildVariant, __ΩViteBuildConfig, __ΩViteResolvedBuildConfig, __ΩWebpackBuildConfig, __ΩWebpackResolvedBuildConfig } from './build.cjs';
4
- export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerlinesWriteFileOptions, ResolveFSOptions, ResolvePathOptions, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteFileData, WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, __ΩMakeDirectoryOptions, __ΩNodeWriteFileOptions, __ΩOutputModeType, __ΩPowerlinesWriteFileOptions, __ΩResolveFSOptions, __ΩResolvePathOptions, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteFileData, __ΩWriteFileOptions } from './fs.cjs';
4
+ export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerlinesWriteFileOptions, ResolveFSOptions, ResolveOptions, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteFileData, WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, __ΩMakeDirectoryOptions, __ΩNodeWriteFileOptions, __ΩOutputModeType, __ΩPowerlinesWriteFileOptions, __ΩResolveFSOptions, __ΩResolveOptions, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteFileData, __ΩWriteFileOptions } from './fs.cjs';
5
5
  export { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from './tsconfig.cjs';
6
6
  export { MarkdownPageEvent, MarkdownRendererEvent, __ΩMarkdownPageEvent, __ΩMarkdownRendererEvent } from './typedoc.cjs';
7
7
  export { InferUnpluginOptions, PowerlinesUnpluginFactory, PowerlinesUnpluginOptions, UnpluginUserConfig, __ΩInferUnpluginOptions, __ΩPowerlinesUnpluginFactory, __ΩPowerlinesUnpluginOptions, __ΩUnpluginUserConfig } from './unplugin.cjs';
@@ -22,6 +22,7 @@ import 'jiti';
22
22
  import 'magic-string';
23
23
  import 'memfs';
24
24
  import 'semver';
25
+ import 'ts-morph';
25
26
  import 'unimport';
26
27
  import 'unplugin';
27
28
  import '@stryke/types/array';
@@ -33,6 +34,7 @@ import 'esbuild';
33
34
  import 'rolldown';
34
35
  import 'rollup';
35
36
  import 'webpack';
37
+ import '@stryke/fs/resolve';
36
38
  import 'node:fs';
37
39
  import '@stryke/types/tsconfig';
38
40
  import 'typescript';
@@ -1,7 +1,7 @@
1
- export { A as API, _ as __ΩAPI } from '../api-5H3zEedD.js';
2
- export { ba as APIContext, ae as AnyUserConfig, B as BabelPluginPass, cp as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, G as BabelUserConfig, H as BaseConfig, by as BaseHookKeys, bx as BaseHooks, bE as BaseHooksList, bD as BaseHooksListItem, c1 as BasePluginHookFunctions, a9 as BuildInlineConfig, c2 as BuildPlugin, be as BuildPluginContext, a7 as CleanInlineConfig, C as CommandType, u as Commands, K as CommonUserConfig, ad as ConfigEnv, c0 as ConfigResult, b9 as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, aj as DefineConfigInput, ac as DeployInlineConfig, ab as DocsInlineConfig, cx as ESBuildResolvedConfig, Y as ESBuildUserConfig, J as EnvironmentConfig, bc as EnvironmentContext, bb as EnvironmentContextPlugin, cq as EnvironmentResolvedConfig, bA as ExternalHookKeys, bz as ExternalHooks, bF as ExternalHooksListItem, c4 as ExternalPluginHookFunctions, c3 as ExternalPluginHookFunctionsVariant, cC as FarmResolvedConfig, a0 as FarmUserConfig, b$ as GenerateTypesResult, bC as HookKeys, bB as Hooks, bG as HooksList, I as ImportDefinition, h as ImportSpecifier, bH as InferHookHandler, bJ as InferHookParameters, bI as InferHookReturnType, bK as InferHookThisType, cD as InferResolvedConfig, a1 as InferUserConfig, b7 as InitContextOptions, a2 as InitialUserConfig, a5 as InlineConfig, aa as LintInlineConfig, L as LogFn, a$ as LogLevel, b1 as MetaInfo, N as NamedImportDefinition, a6 as NewInlineConfig, O as OutputConfig, cs as OutputResolvedConfig, c9 as PLUGIN_NON_HOOK_FIELDS, a3 as ParsedUserConfig, A as PartialPlugin, E as PartialPluginFactory, c8 as Plugin, c7 as PluginBuildPlugins, z as PluginConfig, y as PluginConfigObject, x as PluginConfigTuple, bd as PluginContext, P as PluginFactory, b_ as PluginHook, c5 as PluginHookFunctions, bZ as PluginHookObject, c6 as PluginHooks, ca as PluginNonHookFields, a4 as PowerlinesCommand, a8 as PrepareInlineConfig, F as ProjectType, cr as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, ct as ResolvedConfig, co as ResolvedEntryTypeDefinition, b2 as Resolver, cz as RolldownResolvedConfig, V as RolldownUserConfig, cy as RollupResolvedConfig, T as RollupUserConfig, cw as RspackResolvedConfig, Q as RspackUserConfig, S as SUPPORTED_COMMANDS, b6 as SelectHooksOptions, bf as SerializedVirtualFileSystem, b4 as SourceFile, b3 as TransformResult, cA as TsupResolvedConfig, $ as TsupUserConfig, cB as UnbuildResolvedConfig, Z as UnbuildUserConfig, b5 as UnimportContext, b8 as UnresolvedContext, U as UserConfig, ai as UserConfigExport, ah as UserConfigFn, af as UserConfigFnObject, ag as UserConfigFnPromise, cu as ViteResolvedConfig, X as ViteUserConfig, cv as WebpackResolvedConfig, M as WebpackUserConfig, b0 as WorkerProcess, W as WorkspaceConfig, br as __ΩAPIContext, aV as __ΩAnyUserConfig, k as __ΩBabelPluginPass, cF as __ΩBabelResolvedConfig, p as __ΩBabelTransformInput, m as __ΩBabelTransformPlugin, r as __ΩBabelTransformPluginBuilder, q as __ΩBabelTransformPluginBuilderParams, l as __ΩBabelTransformPluginFilter, n as __ΩBabelTransformPluginOptions, at as __ΩBabelUserConfig, av as __ΩBaseConfig, bM as __ΩBaseHookKeys, bL as __ΩBaseHooks, bS as __ΩBaseHooksList, bR as __ΩBaseHooksListItem, cf as __ΩBasePluginHookFunctions, aQ as __ΩBuildInlineConfig, cg as __ΩBuildPlugin, bv as __ΩBuildPluginContext, aO as __ΩCleanInlineConfig, v as __ΩCommandType, w as __ΩCommands, ax as __ΩCommonUserConfig, aU as __ΩConfigEnv, ce as __ΩConfigResult, bq as __ΩContext, s as __ΩDeclareBabelTransformPluginReturn, i as __ΩDefaultImportDefinition, a_ as __ΩDefineConfigInput, aT as __ΩDeployInlineConfig, aS as __ΩDocsInlineConfig, cN as __ΩESBuildResolvedConfig, aE as __ΩESBuildUserConfig, aw as __ΩEnvironmentConfig, bt as __ΩEnvironmentContext, bs as __ΩEnvironmentContextPlugin, cG as __ΩEnvironmentResolvedConfig, bO as __ΩExternalHookKeys, bN as __ΩExternalHooks, bT as __ΩExternalHooksListItem, ci as __ΩExternalPluginHookFunctions, ch as __ΩExternalPluginHookFunctionsVariant, cS as __ΩFarmResolvedConfig, aH as __ΩFarmUserConfig, cd as __ΩGenerateTypesResult, bQ as __ΩHookKeys, bP as __ΩHooks, bU as __ΩHooksList, j as __ΩImportDefinition, t as __ΩImportSpecifier, bV as __ΩInferHookHandler, bX as __ΩInferHookParameters, bW as __ΩInferHookReturnType, bY as __ΩInferHookThisType, cT as __ΩInferResolvedConfig, aI as __ΩInferUserConfig, bo as __ΩInitContextOptions, aJ as __ΩInitialUserConfig, aM as __ΩInlineConfig, aR as __ΩLintInlineConfig, ak as __ΩLogFn, bg as __ΩLogLevel, bi as __ΩMetaInfo, _ as __ΩNamedImportDefinition, aN as __ΩNewInlineConfig, au as __ΩOutputConfig, cI as __ΩOutputResolvedConfig, aK as __ΩParsedUserConfig, aq as __ΩPartialPlugin, ar as __ΩPartialPluginFactory, cm as __ΩPlugin, cl as __ΩPluginBuildPlugins, ap as __ΩPluginConfig, ao as __ΩPluginConfigObject, an as __ΩPluginConfigTuple, bu as __ΩPluginContext, am as __ΩPluginFactory, cc as __ΩPluginHook, cj as __ΩPluginHookFunctions, cb as __ΩPluginHookObject, ck as __ΩPluginHooks, cn as __ΩPluginNonHookFields, aL as __ΩPowerlinesCommand, aP as __ΩPrepareInlineConfig, as as __ΩProjectType, cH as __ΩResolvedAssetGlob, o as __ΩResolvedBabelTransformPluginOptions, cJ as __ΩResolvedConfig, cE as __ΩResolvedEntryTypeDefinition, bj as __ΩResolver, cP as __ΩRolldownResolvedConfig, aC as __ΩRolldownUserConfig, cO as __ΩRollupResolvedConfig, aB as __ΩRollupUserConfig, cM as __ΩRspackResolvedConfig, aA as __ΩRspackUserConfig, bn as __ΩSelectHooksOptions, bw as __ΩSerializedVirtualFileSystem, bl as __ΩSourceFile, bk as __ΩTransformResult, cQ as __ΩTsupResolvedConfig, aG as __ΩTsupUserConfig, cR as __ΩUnbuildResolvedConfig, aF as __ΩUnbuildUserConfig, bm as __ΩUnimportContext, bp as __ΩUnresolvedContext, ay as __ΩUserConfig, aZ as __ΩUserConfigExport, aY as __ΩUserConfigFn, aW as __ΩUserConfigFnObject, aX as __ΩUserConfigFnPromise, cK as __ΩViteResolvedConfig, aD as __ΩViteUserConfig, cL as __ΩWebpackResolvedConfig, az as __ΩWebpackUserConfig, bh as __ΩWorkerProcess, al as __ΩWorkspaceConfig } from '../resolved-B3BSdXCt.js';
1
+ export { A as API, _ as __ΩAPI } from '../api-C32Buv5_.js';
2
+ export { ba as APIContext, ae as AnyUserConfig, B as BabelPluginPass, cp as BabelResolvedConfig, d as BabelTransformInput, b as BabelTransformPlugin, f as BabelTransformPluginBuilder, e as BabelTransformPluginBuilderParams, a as BabelTransformPluginFilter, c as BabelTransformPluginOptions, G as BabelUserConfig, H as BaseConfig, by as BaseHookKeys, bx as BaseHooks, bE as BaseHooksList, bD as BaseHooksListItem, c1 as BasePluginHookFunctions, a9 as BuildInlineConfig, c2 as BuildPlugin, be as BuildPluginContext, a7 as CleanInlineConfig, C as CommandType, u as Commands, K as CommonUserConfig, ad as ConfigEnv, c0 as ConfigResult, b9 as Context, g as DeclareBabelTransformPluginReturn, D as DefaultImportDefinition, aj as DefineConfigInput, ac as DeployInlineConfig, ab as DocsInlineConfig, cx as ESBuildResolvedConfig, Y as ESBuildUserConfig, J as EnvironmentConfig, bc as EnvironmentContext, bb as EnvironmentContextPlugin, cq as EnvironmentResolvedConfig, bA as ExternalHookKeys, bz as ExternalHooks, bF as ExternalHooksListItem, c4 as ExternalPluginHookFunctions, c3 as ExternalPluginHookFunctionsVariant, cC as FarmResolvedConfig, a0 as FarmUserConfig, b$ as GenerateTypesResult, bC as HookKeys, bB as Hooks, bG as HooksList, I as ImportDefinition, h as ImportSpecifier, bH as InferHookHandler, bJ as InferHookParameters, bI as InferHookReturnType, bK as InferHookThisType, cD as InferResolvedConfig, a1 as InferUserConfig, b7 as InitContextOptions, a2 as InitialUserConfig, a5 as InlineConfig, aa as LintInlineConfig, L as LogFn, a$ as LogLevel, b1 as MetaInfo, N as NamedImportDefinition, a6 as NewInlineConfig, O as OutputConfig, cs as OutputResolvedConfig, c9 as PLUGIN_NON_HOOK_FIELDS, a3 as ParsedUserConfig, A as PartialPlugin, E as PartialPluginFactory, c8 as Plugin, c7 as PluginBuildPlugins, z as PluginConfig, y as PluginConfigObject, x as PluginConfigTuple, bd as PluginContext, P as PluginFactory, b_ as PluginHook, c5 as PluginHookFunctions, bZ as PluginHookObject, c6 as PluginHooks, ca as PluginNonHookFields, a4 as PowerlinesCommand, a8 as PrepareInlineConfig, F as ProjectType, cr as ResolvedAssetGlob, R as ResolvedBabelTransformPluginOptions, ct as ResolvedConfig, co as ResolvedEntryTypeDefinition, b2 as Resolver, cz as RolldownResolvedConfig, V as RolldownUserConfig, cy as RollupResolvedConfig, T as RollupUserConfig, cw as RspackResolvedConfig, Q as RspackUserConfig, S as SUPPORTED_COMMANDS, b6 as SelectHooksOptions, bf as SerializedVirtualFileSystem, b4 as SourceFile, b3 as TransformResult, cA as TsupResolvedConfig, $ as TsupUserConfig, cB as UnbuildResolvedConfig, Z as UnbuildUserConfig, b5 as UnimportContext, b8 as UnresolvedContext, U as UserConfig, ai as UserConfigExport, ah as UserConfigFn, af as UserConfigFnObject, ag as UserConfigFnPromise, cu as ViteResolvedConfig, X as ViteUserConfig, cv as WebpackResolvedConfig, M as WebpackUserConfig, b0 as WorkerProcess, W as WorkspaceConfig, br as __ΩAPIContext, aV as __ΩAnyUserConfig, k as __ΩBabelPluginPass, cF as __ΩBabelResolvedConfig, p as __ΩBabelTransformInput, m as __ΩBabelTransformPlugin, r as __ΩBabelTransformPluginBuilder, q as __ΩBabelTransformPluginBuilderParams, l as __ΩBabelTransformPluginFilter, n as __ΩBabelTransformPluginOptions, at as __ΩBabelUserConfig, av as __ΩBaseConfig, bM as __ΩBaseHookKeys, bL as __ΩBaseHooks, bS as __ΩBaseHooksList, bR as __ΩBaseHooksListItem, cf as __ΩBasePluginHookFunctions, aQ as __ΩBuildInlineConfig, cg as __ΩBuildPlugin, bv as __ΩBuildPluginContext, aO as __ΩCleanInlineConfig, v as __ΩCommandType, w as __ΩCommands, ax as __ΩCommonUserConfig, aU as __ΩConfigEnv, ce as __ΩConfigResult, bq as __ΩContext, s as __ΩDeclareBabelTransformPluginReturn, i as __ΩDefaultImportDefinition, a_ as __ΩDefineConfigInput, aT as __ΩDeployInlineConfig, aS as __ΩDocsInlineConfig, cN as __ΩESBuildResolvedConfig, aE as __ΩESBuildUserConfig, aw as __ΩEnvironmentConfig, bt as __ΩEnvironmentContext, bs as __ΩEnvironmentContextPlugin, cG as __ΩEnvironmentResolvedConfig, bO as __ΩExternalHookKeys, bN as __ΩExternalHooks, bT as __ΩExternalHooksListItem, ci as __ΩExternalPluginHookFunctions, ch as __ΩExternalPluginHookFunctionsVariant, cS as __ΩFarmResolvedConfig, aH as __ΩFarmUserConfig, cd as __ΩGenerateTypesResult, bQ as __ΩHookKeys, bP as __ΩHooks, bU as __ΩHooksList, j as __ΩImportDefinition, t as __ΩImportSpecifier, bV as __ΩInferHookHandler, bX as __ΩInferHookParameters, bW as __ΩInferHookReturnType, bY as __ΩInferHookThisType, cT as __ΩInferResolvedConfig, aI as __ΩInferUserConfig, bo as __ΩInitContextOptions, aJ as __ΩInitialUserConfig, aM as __ΩInlineConfig, aR as __ΩLintInlineConfig, ak as __ΩLogFn, bg as __ΩLogLevel, bi as __ΩMetaInfo, _ as __ΩNamedImportDefinition, aN as __ΩNewInlineConfig, au as __ΩOutputConfig, cI as __ΩOutputResolvedConfig, aK as __ΩParsedUserConfig, aq as __ΩPartialPlugin, ar as __ΩPartialPluginFactory, cm as __ΩPlugin, cl as __ΩPluginBuildPlugins, ap as __ΩPluginConfig, ao as __ΩPluginConfigObject, an as __ΩPluginConfigTuple, bu as __ΩPluginContext, am as __ΩPluginFactory, cc as __ΩPluginHook, cj as __ΩPluginHookFunctions, cb as __ΩPluginHookObject, ck as __ΩPluginHooks, cn as __ΩPluginNonHookFields, aL as __ΩPowerlinesCommand, aP as __ΩPrepareInlineConfig, as as __ΩProjectType, cH as __ΩResolvedAssetGlob, o as __ΩResolvedBabelTransformPluginOptions, cJ as __ΩResolvedConfig, cE as __ΩResolvedEntryTypeDefinition, bj as __ΩResolver, cP as __ΩRolldownResolvedConfig, aC as __ΩRolldownUserConfig, cO as __ΩRollupResolvedConfig, aB as __ΩRollupUserConfig, cM as __ΩRspackResolvedConfig, aA as __ΩRspackUserConfig, bn as __ΩSelectHooksOptions, bw as __ΩSerializedVirtualFileSystem, bl as __ΩSourceFile, bk as __ΩTransformResult, cQ as __ΩTsupResolvedConfig, aG as __ΩTsupUserConfig, cR as __ΩUnbuildResolvedConfig, aF as __ΩUnbuildUserConfig, bm as __ΩUnimportContext, bp as __ΩUnresolvedContext, ay as __ΩUserConfig, aZ as __ΩUserConfigExport, aY as __ΩUserConfigFn, aW as __ΩUserConfigFnObject, aX as __ΩUserConfigFnPromise, cK as __ΩViteResolvedConfig, aD as __ΩViteUserConfig, cL as __ΩWebpackResolvedConfig, az as __ΩWebpackUserConfig, bh as __ΩWorkerProcess, al as __ΩWorkspaceConfig } from '../resolved-BABoCnXm.js';
3
3
  export { BuildConfig, BuildResolvedConfig, BuildVariant, ESBuildBuildConfig, ESBuildResolvedBuildConfig, FarmBuildConfig, FarmResolvedBuildConfig, InferUnpluginVariant, RolldownBuildConfig, RolldownBuildOutputConfig, RolldownResolvedBuildConfig, RollupBuildConfig, RollupBuildOutputConfig, RollupResolvedBuildConfig, RspackBuildConfig, RspackResolvedBuildConfig, TsupBuildConfig, TsupResolvedBuildConfig, UnbuildBuildConfig, UnbuildResolvedBuildConfig, UnpluginBuildVariant, ViteBuildConfig, ViteResolvedBuildConfig, WebpackBuildConfig, WebpackResolvedBuildConfig, __ΩBuildConfig, __ΩBuildResolvedConfig, __ΩBuildVariant, __ΩESBuildBuildConfig, __ΩESBuildResolvedBuildConfig, __ΩFarmBuildConfig, __ΩFarmResolvedBuildConfig, __ΩInferUnpluginVariant, __ΩRolldownBuildConfig, __ΩRolldownBuildOutputConfig, __ΩRolldownResolvedBuildConfig, __ΩRollupBuildConfig, __ΩRollupBuildOutputConfig, __ΩRollupResolvedBuildConfig, __ΩRspackBuildConfig, __ΩRspackResolvedBuildConfig, __ΩTsupBuildConfig, __ΩTsupResolvedBuildConfig, __ΩUnbuildBuildConfig, __ΩUnbuildResolvedBuildConfig, __ΩUnpluginBuildVariant, __ΩViteBuildConfig, __ΩViteResolvedBuildConfig, __ΩWebpackBuildConfig, __ΩWebpackResolvedBuildConfig } from './build.js';
4
- export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerlinesWriteFileOptions, ResolveFSOptions, ResolvePathOptions, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteFileData, WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, __ΩMakeDirectoryOptions, __ΩNodeWriteFileOptions, __ΩOutputModeType, __ΩPowerlinesWriteFileOptions, __ΩResolveFSOptions, __ΩResolvePathOptions, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteFileData, __ΩWriteFileOptions } from './fs.js';
4
+ export { MakeDirectoryOptions, NodeWriteFileOptions, OutputModeType, PowerlinesWriteFileOptions, ResolveFSOptions, ResolveOptions, VirtualFile, VirtualFileData, VirtualFileExtension, VirtualFileMetadata, VirtualFileSystemInterface, WriteFileData, WriteFileOptions, __VFS_PATCH__, __VFS_REVERT__, __ΩMakeDirectoryOptions, __ΩNodeWriteFileOptions, __ΩOutputModeType, __ΩPowerlinesWriteFileOptions, __ΩResolveFSOptions, __ΩResolveOptions, __ΩVirtualFile, __ΩVirtualFileData, __ΩVirtualFileExtension, __ΩVirtualFileMetadata, __ΩVirtualFileSystemInterface, __ΩWriteFileData, __ΩWriteFileOptions } from './fs.js';
5
5
  export { DeepkitOptions, ParsedTypeScriptConfig, RawReflectionMode, ReflectionLevel, ReflectionMode, TSCompilerOptions, TSConfig, __ΩDeepkitOptions, __ΩParsedTypeScriptConfig, __ΩRawReflectionMode, __ΩReflectionLevel, __ΩReflectionMode, __ΩTSCompilerOptions, __ΩTSConfig } from './tsconfig.js';
6
6
  export { MarkdownPageEvent, MarkdownRendererEvent, __ΩMarkdownPageEvent, __ΩMarkdownRendererEvent } from './typedoc.js';
7
7
  export { InferUnpluginOptions, PowerlinesUnpluginFactory, PowerlinesUnpluginOptions, UnpluginUserConfig, __ΩInferUnpluginOptions, __ΩPowerlinesUnpluginFactory, __ΩPowerlinesUnpluginOptions, __ΩUnpluginUserConfig } from './unplugin.js';
@@ -22,6 +22,7 @@ import 'jiti';
22
22
  import 'magic-string';
23
23
  import 'memfs';
24
24
  import 'semver';
25
+ import 'ts-morph';
25
26
  import 'unimport';
26
27
  import 'unplugin';
27
28
  import '@stryke/types/array';
@@ -33,6 +34,7 @@ import 'esbuild';
33
34
  import 'rolldown';
34
35
  import 'rollup';
35
36
  import 'webpack';
37
+ import '@stryke/fs/resolve';
36
38
  import 'node:fs';
37
39
  import '@stryke/types/tsconfig';
38
40
  import 'typescript';