powerlines 0.22.0 → 0.23.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 (268) hide show
  1. package/dist/api.cjs +3 -3
  2. package/dist/api.d.cts +2 -2
  3. package/dist/api.d.ts +2 -2
  4. package/dist/api.js +2 -2
  5. package/dist/astro.cjs +9 -9
  6. package/dist/astro.d.cts +1 -1
  7. package/dist/astro.d.ts +1 -1
  8. package/dist/astro.js +6 -6
  9. package/dist/{chunk-YG5ORYN2.cjs → chunk-2BAJ6JQT.cjs} +2 -2
  10. package/dist/{chunk-UVM4JAR3.cjs → chunk-2L5TNORF.cjs} +2 -2
  11. package/dist/{chunk-SVF4ATJR.cjs → chunk-3WDMXRK6.cjs} +2 -2
  12. package/dist/{chunk-NZXMP4J5.js → chunk-3Z2ARC3Q.js} +1 -1
  13. package/dist/{chunk-C5TKY75S.js → chunk-4TCCGSUX.js} +1 -1
  14. package/dist/{chunk-F4BD5CXH.cjs → chunk-5EOX7PUM.cjs} +2 -2
  15. package/dist/{chunk-HV7SHEHD.cjs → chunk-5IBA5HC2.cjs} +1 -1
  16. package/dist/{chunk-SVDPKN3U.js → chunk-5UPJKYRN.js} +1 -1
  17. package/dist/chunk-6YXYBQPZ.cjs +32 -0
  18. package/dist/{chunk-237NITCY.js → chunk-BPDVRROI.js} +1 -1
  19. package/dist/chunk-BR4SVVJ7.js +29 -0
  20. package/dist/{chunk-L4AXJFX2.js → chunk-EYBI3LRF.js} +3 -3
  21. package/dist/{chunk-PJP4MECA.cjs → chunk-F4KJNO7M.cjs} +2 -2
  22. package/dist/chunk-FM4ABZQ2.js +5 -0
  23. package/dist/{chunk-A5GTERYN.js → chunk-FT6JWNLV.js} +2 -2
  24. package/dist/{chunk-M6XGEVJY.js → chunk-FUSVGPWR.js} +1 -1
  25. package/dist/{chunk-2HNC5JVK.cjs → chunk-GKNW56X7.cjs} +2 -2
  26. package/dist/{chunk-DMXXNXLS.cjs → chunk-GMLFWSQS.cjs} +4 -4
  27. package/dist/{chunk-LKYBC6DX.cjs → chunk-GTFVNGIA.cjs} +4 -4
  28. package/dist/{chunk-WYJGOC3Y.cjs → chunk-IZMLAJFU.cjs} +2 -2
  29. package/dist/{chunk-2Q2PSPZK.js → chunk-LG6FLQGX.js} +1 -1
  30. package/dist/{chunk-OZU47JET.js → chunk-PYCO3XK3.js} +27 -7
  31. package/dist/{chunk-6XRDZOE3.cjs → chunk-QVZ6T3KX.cjs} +32 -12
  32. package/dist/{chunk-QQGXARP3.js → chunk-R474K3FM.js} +1 -1
  33. package/dist/{chunk-44UTUCBG.cjs → chunk-S5AY4OLS.cjs} +5 -5
  34. package/dist/{chunk-SQANNMRF.cjs → chunk-SKESAE4K.cjs} +3 -3
  35. package/dist/{chunk-3JH36WUJ.cjs → chunk-SXLFAQMD.cjs} +2 -2
  36. package/dist/{chunk-7C2NEC7D.cjs → chunk-TTOSSTZG.cjs} +2 -2
  37. package/dist/{chunk-ZPOCM5XZ.js → chunk-UCRJ442Y.js} +1 -1
  38. package/dist/{chunk-PDFOF6ZP.js → chunk-VBR53KGY.js} +1 -1
  39. package/dist/{chunk-WU7I52LM.js → chunk-WSFKH2Q2.js} +2 -2
  40. package/dist/{chunk-3FS7K4DZ.js → chunk-ZN4SCRM2.js} +1 -1
  41. package/dist/config.d.cts +1 -1
  42. package/dist/config.d.ts +1 -1
  43. package/dist/esbuild.cjs +8 -8
  44. package/dist/esbuild.d.cts +1 -1
  45. package/dist/esbuild.d.ts +1 -1
  46. package/dist/esbuild.js +5 -5
  47. package/dist/farm.cjs +4 -4
  48. package/dist/farm.d.cts +1 -1
  49. package/dist/farm.d.ts +1 -1
  50. package/dist/farm.js +3 -3
  51. package/dist/{hooks-CNEZpkMS.d.ts → hooks-D2UGCryi.d.ts} +1 -1
  52. package/dist/{hooks-CJ1W5lrx.d.cts → hooks-DJG3B-Hw.d.cts} +1 -1
  53. package/dist/index.cjs +27 -27
  54. package/dist/index.d.cts +2 -2
  55. package/dist/index.d.ts +2 -2
  56. package/dist/index.js +17 -17
  57. package/dist/lib/build/esbuild.cjs +4 -4
  58. package/dist/lib/build/esbuild.d.cts +1 -1
  59. package/dist/lib/build/esbuild.d.ts +1 -1
  60. package/dist/lib/build/esbuild.js +1 -1
  61. package/dist/lib/build/index.cjs +24 -24
  62. package/dist/lib/build/index.d.cts +2 -2
  63. package/dist/lib/build/index.d.ts +2 -2
  64. package/dist/lib/build/index.js +8 -8
  65. package/dist/lib/build/rolldown.cjs +3 -3
  66. package/dist/lib/build/rolldown.d.cts +1 -1
  67. package/dist/lib/build/rolldown.d.ts +1 -1
  68. package/dist/lib/build/rolldown.js +2 -2
  69. package/dist/lib/build/rollup.cjs +3 -3
  70. package/dist/lib/build/rollup.d.cts +1 -1
  71. package/dist/lib/build/rollup.d.ts +1 -1
  72. package/dist/lib/build/rollup.js +1 -1
  73. package/dist/lib/build/rspack.cjs +2 -2
  74. package/dist/lib/build/rspack.d.cts +1 -1
  75. package/dist/lib/build/rspack.d.ts +1 -1
  76. package/dist/lib/build/rspack.js +1 -1
  77. package/dist/lib/build/tsup.cjs +5 -5
  78. package/dist/lib/build/tsup.d.cts +1 -1
  79. package/dist/lib/build/tsup.d.ts +1 -1
  80. package/dist/lib/build/tsup.js +2 -2
  81. package/dist/lib/build/unbuild.cjs +5 -5
  82. package/dist/lib/build/unbuild.d.cts +2 -2
  83. package/dist/lib/build/unbuild.d.ts +2 -2
  84. package/dist/lib/build/unbuild.js +2 -2
  85. package/dist/lib/build/vite.cjs +4 -4
  86. package/dist/lib/build/vite.d.cts +1 -1
  87. package/dist/lib/build/vite.d.ts +1 -1
  88. package/dist/lib/build/vite.js +2 -2
  89. package/dist/lib/build/webpack.cjs +2 -2
  90. package/dist/lib/build/webpack.d.cts +1 -1
  91. package/dist/lib/build/webpack.d.ts +1 -1
  92. package/dist/lib/build/webpack.js +1 -1
  93. package/dist/lib/{chunk-GDXHCTCX.cjs → chunk-2OV26JXJ.cjs} +3 -3
  94. package/dist/lib/{chunk-YV6MDKW4.js → chunk-2X5DUDNT.js} +2 -2
  95. package/dist/lib/{chunk-FN7673NC.cjs → chunk-4WMJ7EKB.cjs} +2 -2
  96. package/dist/lib/{chunk-IOM7GRZU.js → chunk-AA74V5Y4.js} +2 -2
  97. package/dist/lib/{chunk-HQ5YA43H.js → chunk-AKBAX4FH.js} +1 -1
  98. package/dist/lib/{chunk-3G4C3YAU.js → chunk-ANZZC3KI.js} +1 -1
  99. package/dist/lib/{chunk-T7RMV2FW.js → chunk-BLY4RHLL.js} +2 -2
  100. package/dist/lib/{chunk-4FX4VOLA.cjs → chunk-DALRRHB4.cjs} +1 -1
  101. package/dist/lib/{chunk-43VJVIL2.js → chunk-DC754347.js} +28 -8
  102. package/dist/lib/{chunk-HOZ37BFN.js → chunk-H6EOZSIZ.js} +1 -1
  103. package/dist/lib/{chunk-LMO7PRBP.cjs → chunk-IQH5BWAE.cjs} +3 -3
  104. package/dist/lib/{chunk-LAFEAMNN.cjs → chunk-JADSLS64.cjs} +3 -3
  105. package/dist/lib/{chunk-CSJ6KNIX.cjs → chunk-JYDGFQIV.cjs} +1 -1
  106. package/dist/lib/{chunk-HCOHRD3Q.cjs → chunk-PHFW55Q4.cjs} +3 -3
  107. package/dist/lib/{chunk-E2MVGKGH.cjs → chunk-RZFE3C3Q.cjs} +2 -2
  108. package/dist/lib/{chunk-Y2BHXV33.cjs → chunk-TDJNFAOV.cjs} +1 -1
  109. package/dist/lib/{chunk-5SP6QZLX.js → chunk-TMZCGC5U.js} +1 -1
  110. package/dist/lib/{chunk-5SADLYYK.js → chunk-VLODA6AM.js} +1 -1
  111. package/dist/lib/{chunk-LPA7UJIR.cjs → chunk-WLFJA6PY.cjs} +28 -8
  112. package/dist/lib/{chunk-27VJFYDM.cjs → chunk-XKMOJSWY.cjs} +1 -1
  113. package/dist/lib/{chunk-QAXCBFBP.js → chunk-XYOCTAWD.js} +1 -1
  114. package/dist/lib/{chunk-5GM5UAUO.js → chunk-YBL5MTHD.js} +2 -2
  115. package/dist/lib/{config-7vXtXiGg.d.cts → config-BoGlIhnH.d.cts} +11 -2
  116. package/dist/lib/{config-B9aVEiiX.d.ts → config-CTej7RMP.d.ts} +11 -2
  117. package/dist/lib/config-file.d.cts +1 -1
  118. package/dist/lib/config-file.d.ts +1 -1
  119. package/dist/lib/create-program.d.cts +1 -1
  120. package/dist/lib/create-program.d.ts +1 -1
  121. package/dist/lib/entry.d.cts +1 -1
  122. package/dist/lib/entry.d.ts +1 -1
  123. package/dist/lib/{hooks-cvv50JDh.d.cts → hooks-CDLPWf7j.d.cts} +1 -1
  124. package/dist/lib/{hooks-BxUBzqCb.d.ts → hooks-Cn-IqwYp.d.ts} +1 -1
  125. package/dist/lib/index.cjs +8 -8
  126. package/dist/lib/index.d.cts +2 -2
  127. package/dist/lib/index.d.ts +2 -2
  128. package/dist/lib/index.js +4 -4
  129. package/dist/lib/logger.d.cts +1 -1
  130. package/dist/lib/logger.d.ts +1 -1
  131. package/dist/lib/typescript/compiler-host.d.cts +1 -1
  132. package/dist/lib/typescript/compiler-host.d.ts +1 -1
  133. package/dist/lib/typescript/import-transformer.d.cts +1 -1
  134. package/dist/lib/typescript/import-transformer.d.ts +1 -1
  135. package/dist/lib/typescript/index.d.cts +1 -1
  136. package/dist/lib/typescript/index.d.ts +1 -1
  137. package/dist/lib/typescript/program.d.cts +1 -1
  138. package/dist/lib/typescript/program.d.ts +1 -1
  139. package/dist/lib/unplugin/factory.cjs +2 -2
  140. package/dist/lib/unplugin/factory.d.cts +2 -2
  141. package/dist/lib/unplugin/factory.d.ts +2 -2
  142. package/dist/lib/unplugin/factory.js +1 -1
  143. package/dist/lib/unplugin/index.cjs +2 -2
  144. package/dist/lib/unplugin/index.d.cts +2 -2
  145. package/dist/lib/unplugin/index.d.ts +2 -2
  146. package/dist/lib/unplugin/index.js +1 -1
  147. package/dist/lib/unplugin/plugin.d.cts +1 -1
  148. package/dist/lib/unplugin/plugin.d.ts +1 -1
  149. package/dist/lib/unplugin/resolve-id.d.cts +1 -1
  150. package/dist/lib/unplugin/resolve-id.d.ts +1 -1
  151. package/dist/lib/utilities/bundle.cjs +3 -3
  152. package/dist/lib/utilities/bundle.d.cts +1 -1
  153. package/dist/lib/utilities/bundle.d.ts +1 -1
  154. package/dist/lib/utilities/bundle.js +2 -2
  155. package/dist/lib/utilities/cache.d.cts +1 -1
  156. package/dist/lib/utilities/cache.d.ts +1 -1
  157. package/dist/lib/utilities/file-header.d.cts +1 -1
  158. package/dist/lib/utilities/file-header.d.ts +1 -1
  159. package/dist/lib/utilities/index.cjs +5 -5
  160. package/dist/lib/utilities/index.d.cts +1 -1
  161. package/dist/lib/utilities/index.d.ts +1 -1
  162. package/dist/lib/utilities/index.js +3 -3
  163. package/dist/lib/utilities/meta.d.cts +1 -1
  164. package/dist/lib/utilities/meta.d.ts +1 -1
  165. package/dist/lib/utilities/resolve-path.d.cts +1 -1
  166. package/dist/lib/utilities/resolve-path.d.ts +1 -1
  167. package/dist/lib/utilities/resolve.cjs +4 -4
  168. package/dist/lib/utilities/resolve.d.cts +1 -1
  169. package/dist/lib/utilities/resolve.d.ts +1 -1
  170. package/dist/lib/utilities/resolve.js +3 -3
  171. package/dist/lib/utilities/source-file.d.cts +1 -1
  172. package/dist/lib/utilities/source-file.d.ts +1 -1
  173. package/dist/lib/utilities/source-map.d.cts +1 -1
  174. package/dist/lib/utilities/source-map.d.ts +1 -1
  175. package/dist/lib/utilities/worker.d.cts +1 -1
  176. package/dist/lib/utilities/worker.d.ts +1 -1
  177. package/dist/lib/utilities/write-file.d.cts +1 -1
  178. package/dist/lib/utilities/write-file.d.ts +1 -1
  179. package/dist/next.cjs +8 -8
  180. package/dist/next.js +5 -5
  181. package/dist/nuxt.cjs +10 -10
  182. package/dist/nuxt.js +7 -7
  183. package/dist/plugin-utils/{chunk-HZIY2AV4.cjs → chunk-NFXNZFMN.cjs} +24 -0
  184. package/dist/plugin-utils/{chunk-DGUQQKZF.js → chunk-SEH3RVMF.js} +24 -1
  185. package/dist/plugin-utils/{context-BseW8r26.d.cts → context-D1I2JQgs.d.cts} +11 -2
  186. package/dist/plugin-utils/{context-BseW8r26.d.ts → context-D1I2JQgs.d.ts} +11 -2
  187. package/dist/plugin-utils/context-helpers.cjs +6 -2
  188. package/dist/plugin-utils/context-helpers.d.cts +9 -2
  189. package/dist/plugin-utils/context-helpers.d.ts +9 -2
  190. package/dist/plugin-utils/context-helpers.js +1 -1
  191. package/dist/plugin-utils/enforce.d.cts +1 -1
  192. package/dist/plugin-utils/enforce.d.ts +1 -1
  193. package/dist/plugin-utils/extend.d.cts +1 -1
  194. package/dist/plugin-utils/extend.d.ts +1 -1
  195. package/dist/plugin-utils/get-config-path.d.cts +1 -1
  196. package/dist/plugin-utils/get-config-path.d.ts +1 -1
  197. package/dist/plugin-utils/helpers.d.cts +1 -1
  198. package/dist/plugin-utils/helpers.d.ts +1 -1
  199. package/dist/plugin-utils/index.cjs +6 -2
  200. package/dist/plugin-utils/index.d.cts +2 -2
  201. package/dist/plugin-utils/index.d.ts +2 -2
  202. package/dist/plugin-utils/index.js +1 -1
  203. package/dist/plugin-utils/merge.d.cts +1 -1
  204. package/dist/plugin-utils/merge.d.ts +1 -1
  205. package/dist/plugin-utils/paths.d.cts +1 -1
  206. package/dist/plugin-utils/paths.d.ts +1 -1
  207. package/dist/{resolved-DWxXKJYy.d.ts → resolved-D1ySEdUv.d.ts} +9 -0
  208. package/dist/{resolved-D8vIizyA.d.cts → resolved-DYLxPDut.d.cts} +9 -0
  209. package/dist/rolldown.cjs +7 -7
  210. package/dist/rolldown.d.cts +1 -1
  211. package/dist/rolldown.d.ts +1 -1
  212. package/dist/rolldown.js +4 -4
  213. package/dist/rollup.cjs +7 -7
  214. package/dist/rollup.d.cts +1 -1
  215. package/dist/rollup.d.ts +1 -1
  216. package/dist/rollup.js +4 -4
  217. package/dist/rspack.cjs +7 -7
  218. package/dist/rspack.d.cts +1 -1
  219. package/dist/rspack.d.ts +1 -1
  220. package/dist/rspack.js +4 -4
  221. package/dist/tsup.cjs +9 -9
  222. package/dist/tsup.js +6 -6
  223. package/dist/types/babel.d.cts +1 -1
  224. package/dist/types/babel.d.ts +1 -1
  225. package/dist/types/commands.d.cts +1 -1
  226. package/dist/types/commands.d.ts +1 -1
  227. package/dist/types/config.d.cts +1 -1
  228. package/dist/types/config.d.ts +1 -1
  229. package/dist/types/context.d.cts +1 -1
  230. package/dist/types/context.d.ts +1 -1
  231. package/dist/types/hooks.d.cts +1 -1
  232. package/dist/types/hooks.d.ts +1 -1
  233. package/dist/types/index.cjs +3 -3
  234. package/dist/types/index.d.cts +1 -1
  235. package/dist/types/index.d.ts +1 -1
  236. package/dist/types/index.js +1 -1
  237. package/dist/types/internal.d.cts +2 -2
  238. package/dist/types/internal.d.ts +2 -2
  239. package/dist/types/plugin.d.cts +1 -1
  240. package/dist/types/plugin.d.ts +1 -1
  241. package/dist/types/resolved.d.cts +1 -1
  242. package/dist/types/resolved.d.ts +1 -1
  243. package/dist/types/unplugin.d.cts +1 -1
  244. package/dist/types/unplugin.d.ts +1 -1
  245. package/dist/types/vfs.cjs +3 -3
  246. package/dist/types/vfs.d.cts +2 -2
  247. package/dist/types/vfs.d.ts +2 -2
  248. package/dist/types/vfs.js +1 -1
  249. package/dist/unloader.cjs +7 -7
  250. package/dist/unloader.d.cts +1 -1
  251. package/dist/unloader.d.ts +1 -1
  252. package/dist/unloader.js +4 -4
  253. package/dist/unplugin.cjs +19 -19
  254. package/dist/unplugin.d.cts +2 -2
  255. package/dist/unplugin.d.ts +2 -2
  256. package/dist/unplugin.js +16 -16
  257. package/dist/vite.cjs +8 -8
  258. package/dist/vite.d.cts +1 -1
  259. package/dist/vite.d.ts +1 -1
  260. package/dist/vite.js +5 -5
  261. package/dist/webpack.cjs +7 -7
  262. package/dist/webpack.d.cts +1 -1
  263. package/dist/webpack.d.ts +1 -1
  264. package/dist/webpack.js +4 -4
  265. package/package.json +2 -2
  266. package/dist/chunk-B4KLWFY6.cjs +0 -32
  267. package/dist/chunk-GRAVJX3I.js +0 -29
  268. package/dist/chunk-ZWF7LZXE.js +0 -5
@@ -1,4 +1,4 @@
1
- import { extractESBuildConfig } from './chunk-3G4C3YAU.js';
1
+ import { extractESBuildConfig } from './chunk-ANZZC3KI.js';
2
2
  import { __name } from './chunk-SHUYVCID.js';
3
3
  import { joinPaths } from '@stryke/path/join-paths';
4
4
  import defu from 'defu';
@@ -56,7 +56,7 @@ function extractViteConfig(context) {
56
56
  mode: context.config.mode === "development" ? "development" : "production",
57
57
  cacheDir: joinPaths(context.cachePath, "vite"),
58
58
  build: {
59
- outDir: context.config.output.outputPath,
59
+ outDir: context.config.output.distPath,
60
60
  tsconfig: context.tsconfig.tsconfigFilePath,
61
61
  tsconfigRaw: context.tsconfig.tsconfigJson
62
62
  },
@@ -126,7 +126,7 @@ function extractRollupConfig(context) {
126
126
  }, context.config.build.variant === "rollup" ? context.config.build.override : {}, context.config.build.variant === "vite" ? context.config.build.override.build?.rollupOptions : {}, {
127
127
  cache: !context.config.skipCache ? joinPaths.joinPaths(context.cachePath, "rollup") : false,
128
128
  output: {
129
- dir: context.config.output.outputPath
129
+ dir: context.config.output.distPath
130
130
  },
131
131
  logLevel: context.config.logLevel
132
132
  }, context.config.build.variant === "rollup" ? context.config.build : {}, context.config.build.variant === "vite" ? context.config.build.build?.rollupOptions : {}, {
@@ -21,6 +21,7 @@ import { install } from '@stryke/fs/install';
21
21
  import { listFiles } from '@stryke/fs/list-files';
22
22
  import { isPackageExists, isPackageListed, doesPackageMatch, getPackageListing } from '@stryke/fs/package-fns';
23
23
  import { resolvePackage } from '@stryke/fs/resolve';
24
+ import { appendPath } from '@stryke/path/append';
24
25
  import { joinPaths as joinPaths$1 } from '@stryke/path/join-paths';
25
26
  import { replacePath } from '@stryke/path/replace';
26
27
  import { isError } from '@stryke/type-checks/is-error';
@@ -42,7 +43,6 @@ import { murmurhash } from '@stryke/hash/murmurhash';
42
43
  import { getUnique } from '@stryke/helpers/get-unique';
43
44
  import { omit } from '@stryke/helpers/omit';
44
45
  import { StormJSON } from '@stryke/json/storm-json';
45
- import { appendPath } from '@stryke/path/append';
46
46
  import { findFileDotExtensionSafe, findFilePath, hasFileExtension, relativePath, findFileName } from '@stryke/path/file-path-fns';
47
47
  import { isAbsolutePath, isAbsolute } from '@stryke/path/is-type';
48
48
  import { joinPaths } from '@stryke/path/join';
@@ -439,8 +439,8 @@ FileSystemData._Metadata = $.CompositeList(FileMetadata);
439
439
  FileSystemData._Files = $.CompositeList(FileData);
440
440
 
441
441
  // src/types/vfs.ts
442
- var __VFS_PATCH__ = Symbol("__VFS_PATCH__");
443
- var __VFS_REVERT__ = Symbol("__VFS_REVERT__");
442
+ var __VFS_PATCH__ = "__VFS_PATCH__";
443
+ var __VFS_REVERT__ = "__VFS_REVERT__";
444
444
  function isBufferEncoding(options) {
445
445
  return isSetString(options) || options === null;
446
446
  }
@@ -644,8 +644,8 @@ var UnifiedFS = class _UnifiedFS extends Union {
644
644
  recursive: true
645
645
  });
646
646
  }
647
- if (!this.#physicalFS.existsSync(joinPaths(this.#context.workspaceConfig.workspaceRoot, this.#context.config.output.outputPath))) {
648
- this.#physicalFS.mkdirSync(joinPaths(this.#context.workspaceConfig.workspaceRoot, this.#context.config.output.outputPath), {
647
+ if (!this.#physicalFS.existsSync(joinPaths(this.#context.workspaceConfig.workspaceRoot, this.#context.config.output.distPath))) {
648
+ this.#physicalFS.mkdirSync(joinPaths(this.#context.workspaceConfig.workspaceRoot, this.#context.config.output.distPath), {
649
649
  recursive: true
650
650
  });
651
651
  }
@@ -732,7 +732,7 @@ var UnifiedFS = class _UnifiedFS extends Union {
732
732
  resolveMode(pathOrUrl, options = {}) {
733
733
  if (options.mode === "virtual" && this.#context.config.output.mode !== "fs" && isParentPath(toFilePath(pathOrUrl), this.#context.artifactsPath)) {
734
734
  return "virtual";
735
- } else if (options.mode === "fs" || this.#context.config.output.mode === "fs" || isParentPath(toFilePath(pathOrUrl), this.#context.dataPath) || isParentPath(toFilePath(pathOrUrl), this.#context.cachePath) || isParentPath(toFilePath(pathOrUrl), joinPaths(this.#context.workspaceConfig.workspaceRoot, this.#context.config.output.outputPath))) {
735
+ } else if (options.mode === "fs" || this.#context.config.output.mode === "fs" || isParentPath(toFilePath(pathOrUrl), this.#context.dataPath) || isParentPath(toFilePath(pathOrUrl), this.#context.cachePath) || isParentPath(toFilePath(pathOrUrl), joinPaths(this.#context.workspaceConfig.workspaceRoot, this.#context.config.output.distPath))) {
736
736
  return "fs";
737
737
  }
738
738
  return void 0;
@@ -2396,12 +2396,18 @@ ${result.errors.map((error) => ` [${error.severity}] ${error.message}${error.co
2396
2396
  ] : [
2397
2397
  "esm"
2398
2398
  ])));
2399
- this.config.output.outputPath ??= joinPaths("dist", this.config.projectRoot || ".");
2399
+ if (this.config.projectRoot && this.config.projectRoot !== "." && this.config.projectRoot !== "./" && this.config.projectRoot !== this.workspaceConfig.workspaceRoot) {
2400
+ this.config.output.outputPath ??= joinPaths("dist", this.config.projectRoot);
2401
+ this.config.output.distPath ??= joinPaths(this.config.projectRoot, "dist");
2402
+ } else {
2403
+ this.config.output.outputPath ??= "dist";
2404
+ this.config.output.distPath ??= "dist";
2405
+ }
2400
2406
  this.config.output.assets = getUnique(this.config.output.assets.map((asset) => {
2401
2407
  return {
2402
2408
  glob: isSetObject(asset) ? asset.glob : asset,
2403
2409
  input: isString(asset) || !asset.input || asset.input === "." || asset.input === "/" || asset.input === "./" ? this.workspaceConfig.workspaceRoot : appendPath(asset.input, this.workspaceConfig.workspaceRoot),
2404
- output: appendPath(isSetObject(asset) && asset.output ? joinPaths(this.config.output.outputPath, replacePath(asset.output, this.config.output.outputPath)) : this.config.output.outputPath, this.workspaceConfig.workspaceRoot),
2410
+ output: appendPath(isSetObject(asset) && asset.output ? joinPaths(this.config.output.distPath, replacePath(asset.output, this.config.output.distPath)) : this.config.output.distPath, this.workspaceConfig.workspaceRoot),
2405
2411
  ignore: isSetObject(asset) && asset.ignore ? toArray(asset.ignore) : void 0
2406
2412
  };
2407
2413
  }));
@@ -3297,6 +3303,9 @@ ${formatTypes(generatedTypes)}
3297
3303
  this.context.log(LogLevelLabel.INFO, "\u{1F9F9} Cleaning the previous Powerlines artifacts");
3298
3304
  await this.prepare(inlineConfig);
3299
3305
  await this.#executeEnvironments(async (context) => {
3306
+ this.context.log(LogLevelLabel.TRACE, "Cleaning the project's dist and artifacts directories.");
3307
+ await context.fs.rmdir(joinPaths$1(context.workspaceConfig.workspaceRoot, context.config.output.distPath));
3308
+ await context.fs.rmdir(joinPaths$1(context.workspaceConfig.workspaceRoot, context.config.output.artifactsFolder));
3300
3309
  await callHook(context, "clean", {
3301
3310
  sequential: true
3302
3311
  });
@@ -3342,6 +3351,17 @@ ${formatTypes(generatedTypes)}
3342
3351
  context.log(LogLevelLabel.DEBUG, `Copying asset(s): ${chalk4.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths$1(replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk4.greenBright(joinPaths$1(replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk4.yellowBright(i)).join(", ")})` : ""}`);
3343
3352
  await copyFiles(asset, asset.output);
3344
3353
  }));
3354
+ if (context.config.output.distPath !== context.config.output.outputPath) {
3355
+ const sourcePath = appendPath(context.config.output.distPath, context.workspaceConfig.workspaceRoot);
3356
+ const destinationPath = joinPaths$1(appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
3357
+ if (sourcePath !== destinationPath) {
3358
+ context.log(LogLevelLabel.INFO, `Copying build output files from project's \`dist\` directory (${context.config.output.distPath}) to the output directory (${context.config.output.outputPath}).`);
3359
+ await copyFiles({
3360
+ input: sourcePath,
3361
+ glob: "**/*"
3362
+ }, destinationPath);
3363
+ }
3364
+ }
3345
3365
  await this.callPostHook(context, "build");
3346
3366
  });
3347
3367
  this.context.log(LogLevelLabel.TRACE, "Powerlines build completed");
@@ -115,7 +115,7 @@ function extractRollupConfig(context) {
115
115
  }, context.config.build.variant === "rollup" ? context.config.build.override : {}, context.config.build.variant === "vite" ? context.config.build.override.build?.rollupOptions : {}, {
116
116
  cache: !context.config.skipCache ? joinPaths(context.cachePath, "rollup") : false,
117
117
  output: {
118
- dir: context.config.output.outputPath
118
+ dir: context.config.output.distPath
119
119
  },
120
120
  logLevel: context.config.logLevel
121
121
  }, context.config.build.variant === "rollup" ? context.config.build : {}, context.config.build.variant === "vite" ? context.config.build.build?.rollupOptions : {}, {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk4FX4VOLA_cjs = require('./chunk-4FX4VOLA.cjs');
3
+ var chunkDALRRHB4_cjs = require('./chunk-DALRRHB4.cjs');
4
4
  var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
5
5
  var pluginBabel = require('@rollup/plugin-babel');
6
6
  var inject = require('@rollup/plugin-inject');
@@ -101,7 +101,7 @@ function extractRolldownConfig(context) {
101
101
  ],
102
102
  preferBuiltins: true
103
103
  }),
104
- chunk4FX4VOLA_cjs.dtsBundlePlugin
104
+ chunkDALRRHB4_cjs.dtsBundlePlugin
105
105
  ]
106
106
  }, context.config.build.variant === "rolldown" || context.config.build.variant === "rollup" ? context.config.build.override : {}, context.config.build.variant === "vite" ? context.config.build.override.build?.rollupOptions : {}, {
107
107
  experimental: {
@@ -117,7 +117,7 @@ function extractRolldownConfig(context) {
117
117
  tsconfig: context.tsconfig.tsconfigFilePath,
118
118
  cache: !context.config.skipCache ? joinPaths.joinPaths(context.cachePath, "rolldown") : false,
119
119
  output: {
120
- dir: context.config.output.outputPath
120
+ dir: context.config.output.distPath
121
121
  },
122
122
  logLevel: context.config.logLevel,
123
123
  onLog: context.log
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk27VJFYDM_cjs = require('./chunk-27VJFYDM.cjs');
3
+ var chunkXKMOJSWY_cjs = require('./chunk-XKMOJSWY.cjs');
4
4
  var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
5
5
  var constants = require('@storm-software/tsup/constants');
6
6
  var defu = require('defu');
@@ -28,7 +28,7 @@ var DEFAULT_TSUP_CONFIG = {
28
28
  banner: {}
29
29
  };
30
30
  function resolveTsupEntry(context, entryPoints) {
31
- return chunk27VJFYDM_cjs.resolveESBuildEntry(context, entryPoints);
31
+ return chunkXKMOJSWY_cjs.resolveESBuildEntry(context, entryPoints);
32
32
  }
33
33
  chunkUSNT2KNT_cjs.__name(resolveTsupEntry, "resolveTsupEntry");
34
34
  function extractTsupConfig(context) {
@@ -57,7 +57,7 @@ function extractTsupConfig(context) {
57
57
  name: context.config.name,
58
58
  assets: context.config.output.assets,
59
59
  resolveExtensions: context.config.build.extensions,
60
- outputPath: context.config.output.outputPath,
60
+ outputPath: context.config.output.distPath,
61
61
  projectRoot: context.config.projectRoot,
62
62
  tsconfig: context.tsconfig.tsconfigFilePath,
63
63
  tsconfigRaw: context.tsconfig.tsconfigJson,
@@ -28,7 +28,7 @@ function extractWebpackConfig(context) {
28
28
  }
29
29
  }, context.config.build.variant === "webpack" ? context.config.build.override : {}, {
30
30
  output: {
31
- path: joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.outputPath)
31
+ path: joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.distPath)
32
32
  },
33
33
  name: context.config.name,
34
34
  node: context.config.build.platform === "node" ? {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk27VJFYDM_cjs = require('./chunk-27VJFYDM.cjs');
3
+ var chunkXKMOJSWY_cjs = require('./chunk-XKMOJSWY.cjs');
4
4
  var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
5
5
  var joinPaths = require('@stryke/path/join-paths');
6
6
  var defu = require('defu');
@@ -62,11 +62,11 @@ function extractViteConfig(context) {
62
62
  mode: context.config.mode === "development" ? "development" : "production",
63
63
  cacheDir: joinPaths.joinPaths(context.cachePath, "vite"),
64
64
  build: {
65
- outDir: context.config.output.outputPath,
65
+ outDir: context.config.output.distPath,
66
66
  tsconfig: context.tsconfig.tsconfigFilePath,
67
67
  tsconfigRaw: context.tsconfig.tsconfigJson
68
68
  },
69
- esbuild: chunk27VJFYDM_cjs.extractESBuildConfig(context),
69
+ esbuild: chunkXKMOJSWY_cjs.extractESBuildConfig(context),
70
70
  logLevel: context.config.logLevel ?? void 0,
71
71
  envDir: context.config.projectRoot
72
72
  }, context.config.build.variant === "vite" ? context.config.build : {}, {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkFN7673NC_cjs = require('./chunk-FN7673NC.cjs');
3
+ var chunk4WMJ7EKB_cjs = require('./chunk-4WMJ7EKB.cjs');
4
4
  var chunkUSNT2KNT_cjs = require('./chunk-USNT2KNT.cjs');
5
5
  var parseTypeDefinition = require('@stryke/convert/parse-type-definition');
6
6
  var isSetString = require('@stryke/type-checks/is-set-string');
@@ -12,7 +12,7 @@ async function resolve(context, type, overrides = {}) {
12
12
  } else {
13
13
  typeDefinition = type;
14
14
  }
15
- const result = await chunkFN7673NC_cjs.bundle(context, typeDefinition.file, overrides);
15
+ const result = await chunk4WMJ7EKB_cjs.bundle(context, typeDefinition.file, overrides);
16
16
  const resolved = await context.resolver.evalModule(result.text, {
17
17
  filename: result.path,
18
18
  forceTranspile: true
@@ -25,7 +25,7 @@ function extractRspackConfig(context) {
25
25
  skipNodeModulesBundle: context.config.build.skipNodeModulesBundle
26
26
  }, {
27
27
  output: {
28
- path: joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.outputPath)
28
+ path: joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.distPath)
29
29
  },
30
30
  name: context.config.name,
31
31
  node: context.config.build.platform === "node" ? {
@@ -19,7 +19,7 @@ function extractRspackConfig(context) {
19
19
  skipNodeModulesBundle: context.config.build.skipNodeModulesBundle
20
20
  }, {
21
21
  output: {
22
- path: joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.outputPath)
22
+ path: joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.distPath)
23
23
  },
24
24
  name: context.config.name,
25
25
  node: context.config.build.platform === "node" ? {
@@ -1,5 +1,5 @@
1
1
  import { resolvePath } from './chunk-NWAD7K4D.js';
2
- import { extractESBuildConfig } from './chunk-3G4C3YAU.js';
2
+ import { extractESBuildConfig } from './chunk-ANZZC3KI.js';
3
3
  import { __name } from './chunk-SHUYVCID.js';
4
4
  import { LogLevelLabel } from '@storm-software/config-tools/types';
5
5
  import { build } from 'esbuild';
@@ -23,6 +23,7 @@ var install = require('@stryke/fs/install');
23
23
  var listFiles = require('@stryke/fs/list-files');
24
24
  var packageFns = require('@stryke/fs/package-fns');
25
25
  var resolve = require('@stryke/fs/resolve');
26
+ var append = require('@stryke/path/append');
26
27
  var joinPaths = require('@stryke/path/join-paths');
27
28
  var replace = require('@stryke/path/replace');
28
29
  var isError = require('@stryke/type-checks/is-error');
@@ -44,7 +45,6 @@ var murmurhash = require('@stryke/hash/murmurhash');
44
45
  var getUnique = require('@stryke/helpers/get-unique');
45
46
  var omit = require('@stryke/helpers/omit');
46
47
  var stormJson = require('@stryke/json/storm-json');
47
- var append = require('@stryke/path/append');
48
48
  var filePathFns = require('@stryke/path/file-path-fns');
49
49
  var isType = require('@stryke/path/is-type');
50
50
  var join = require('@stryke/path/join');
@@ -469,8 +469,8 @@ FileSystemData._Metadata = $__namespace.CompositeList(FileMetadata);
469
469
  FileSystemData._Files = $__namespace.CompositeList(FileData);
470
470
 
471
471
  // src/types/vfs.ts
472
- var __VFS_PATCH__ = Symbol("__VFS_PATCH__");
473
- var __VFS_REVERT__ = Symbol("__VFS_REVERT__");
472
+ var __VFS_PATCH__ = "__VFS_PATCH__";
473
+ var __VFS_REVERT__ = "__VFS_REVERT__";
474
474
  function isBufferEncoding(options) {
475
475
  return isSetString.isSetString(options) || options === null;
476
476
  }
@@ -674,8 +674,8 @@ var UnifiedFS = class _UnifiedFS extends unionfs.Union {
674
674
  recursive: true
675
675
  });
676
676
  }
677
- if (!this.#physicalFS.existsSync(join.joinPaths(this.#context.workspaceConfig.workspaceRoot, this.#context.config.output.outputPath))) {
678
- this.#physicalFS.mkdirSync(join.joinPaths(this.#context.workspaceConfig.workspaceRoot, this.#context.config.output.outputPath), {
677
+ if (!this.#physicalFS.existsSync(join.joinPaths(this.#context.workspaceConfig.workspaceRoot, this.#context.config.output.distPath))) {
678
+ this.#physicalFS.mkdirSync(join.joinPaths(this.#context.workspaceConfig.workspaceRoot, this.#context.config.output.distPath), {
679
679
  recursive: true
680
680
  });
681
681
  }
@@ -762,7 +762,7 @@ var UnifiedFS = class _UnifiedFS extends unionfs.Union {
762
762
  resolveMode(pathOrUrl, options = {}) {
763
763
  if (options.mode === "virtual" && this.#context.config.output.mode !== "fs" && isParentPath.isParentPath(toFilePath(pathOrUrl), this.#context.artifactsPath)) {
764
764
  return "virtual";
765
- } else if (options.mode === "fs" || this.#context.config.output.mode === "fs" || isParentPath.isParentPath(toFilePath(pathOrUrl), this.#context.dataPath) || isParentPath.isParentPath(toFilePath(pathOrUrl), this.#context.cachePath) || isParentPath.isParentPath(toFilePath(pathOrUrl), join.joinPaths(this.#context.workspaceConfig.workspaceRoot, this.#context.config.output.outputPath))) {
765
+ } else if (options.mode === "fs" || this.#context.config.output.mode === "fs" || isParentPath.isParentPath(toFilePath(pathOrUrl), this.#context.dataPath) || isParentPath.isParentPath(toFilePath(pathOrUrl), this.#context.cachePath) || isParentPath.isParentPath(toFilePath(pathOrUrl), join.joinPaths(this.#context.workspaceConfig.workspaceRoot, this.#context.config.output.distPath))) {
766
766
  return "fs";
767
767
  }
768
768
  return void 0;
@@ -2426,12 +2426,18 @@ ${result.errors.map((error) => ` [${error.severity}] ${error.message}${error.co
2426
2426
  ] : [
2427
2427
  "esm"
2428
2428
  ])));
2429
- this.config.output.outputPath ??= join.joinPaths("dist", this.config.projectRoot || ".");
2429
+ if (this.config.projectRoot && this.config.projectRoot !== "." && this.config.projectRoot !== "./" && this.config.projectRoot !== this.workspaceConfig.workspaceRoot) {
2430
+ this.config.output.outputPath ??= join.joinPaths("dist", this.config.projectRoot);
2431
+ this.config.output.distPath ??= join.joinPaths(this.config.projectRoot, "dist");
2432
+ } else {
2433
+ this.config.output.outputPath ??= "dist";
2434
+ this.config.output.distPath ??= "dist";
2435
+ }
2430
2436
  this.config.output.assets = getUnique.getUnique(this.config.output.assets.map((asset) => {
2431
2437
  return {
2432
2438
  glob: isSetObject.isSetObject(asset) ? asset.glob : asset,
2433
2439
  input: isString.isString(asset) || !asset.input || asset.input === "." || asset.input === "/" || asset.input === "./" ? this.workspaceConfig.workspaceRoot : append.appendPath(asset.input, this.workspaceConfig.workspaceRoot),
2434
- output: append.appendPath(isSetObject.isSetObject(asset) && asset.output ? join.joinPaths(this.config.output.outputPath, replace.replacePath(asset.output, this.config.output.outputPath)) : this.config.output.outputPath, this.workspaceConfig.workspaceRoot),
2440
+ output: append.appendPath(isSetObject.isSetObject(asset) && asset.output ? join.joinPaths(this.config.output.distPath, replace.replacePath(asset.output, this.config.output.distPath)) : this.config.output.distPath, this.workspaceConfig.workspaceRoot),
2435
2441
  ignore: isSetObject.isSetObject(asset) && asset.ignore ? toArray.toArray(asset.ignore) : void 0
2436
2442
  };
2437
2443
  }));
@@ -3327,6 +3333,9 @@ ${formatTypes(generatedTypes)}
3327
3333
  this.context.log(types.LogLevelLabel.INFO, "\u{1F9F9} Cleaning the previous Powerlines artifacts");
3328
3334
  await this.prepare(inlineConfig);
3329
3335
  await this.#executeEnvironments(async (context) => {
3336
+ this.context.log(types.LogLevelLabel.TRACE, "Cleaning the project's dist and artifacts directories.");
3337
+ await context.fs.rmdir(joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.distPath));
3338
+ await context.fs.rmdir(joinPaths.joinPaths(context.workspaceConfig.workspaceRoot, context.config.output.artifactsFolder));
3330
3339
  await callHook(context, "clean", {
3331
3340
  sequential: true
3332
3341
  });
@@ -3372,6 +3381,17 @@ ${formatTypes(generatedTypes)}
3372
3381
  context.log(types.LogLevelLabel.DEBUG, `Copying asset(s): ${chalk4__default.default.redBright(context.workspaceConfig.workspaceRoot === asset.input ? asset.glob : joinPaths.joinPaths(replace.replacePath(asset.input, context.workspaceConfig.workspaceRoot), asset.glob))} -> ${chalk4__default.default.greenBright(joinPaths.joinPaths(replace.replacePath(asset.output, context.workspaceConfig.workspaceRoot), asset.glob))} ${Array.isArray(asset.ignore) && asset.ignore.length > 0 ? ` (ignoring: ${asset.ignore.map((i) => chalk4__default.default.yellowBright(i)).join(", ")})` : ""}`);
3373
3382
  await copyFile.copyFiles(asset, asset.output);
3374
3383
  }));
3384
+ if (context.config.output.distPath !== context.config.output.outputPath) {
3385
+ const sourcePath = append.appendPath(context.config.output.distPath, context.workspaceConfig.workspaceRoot);
3386
+ const destinationPath = joinPaths.joinPaths(append.appendPath(context.config.output.outputPath, context.workspaceConfig.workspaceRoot), "dist");
3387
+ if (sourcePath !== destinationPath) {
3388
+ context.log(types.LogLevelLabel.INFO, `Copying build output files from project's \`dist\` directory (${context.config.output.distPath}) to the output directory (${context.config.output.outputPath}).`);
3389
+ await copyFile.copyFiles({
3390
+ input: sourcePath,
3391
+ glob: "**/*"
3392
+ }, destinationPath);
3393
+ }
3394
+ }
3375
3395
  await this.callPostHook(context, "build");
3376
3396
  });
3377
3397
  this.context.log(types.LogLevelLabel.TRACE, "Powerlines build completed");
@@ -109,7 +109,7 @@ export { ${key} };`;
109
109
  format: Array.isArray(context.config.output.format) ? context.config.output.format[0] : context.config.output.format,
110
110
  platform: context.config.build.platform,
111
111
  treeShaking: Boolean(context.config.build?.treeshake) || context.config.build?.treeShaking,
112
- outdir: context.config.output.outputPath,
112
+ outdir: context.config.output.distPath,
113
113
  tsconfig: context.tsconfig.tsconfigFilePath,
114
114
  tsconfigRaw: context.tsconfig.tsconfigJson
115
115
  }, context.config.build.variant === "esbuild" ? omit.omit(context.config.build, [
@@ -1,4 +1,4 @@
1
- import { bundle } from './chunk-5SADLYYK.js';
1
+ import { bundle } from './chunk-VLODA6AM.js';
2
2
  import { __name } from './chunk-SHUYVCID.js';
3
3
  import { parseTypeDefinition } from '@stryke/convert/parse-type-definition';
4
4
  import { isSetString } from '@stryke/type-checks/is-set-string';
@@ -1,4 +1,4 @@
1
- import { dtsBundlePlugin } from './chunk-HOZ37BFN.js';
1
+ import { dtsBundlePlugin } from './chunk-H6EOZSIZ.js';
2
2
  import { __name } from './chunk-SHUYVCID.js';
3
3
  import { getBabelInputPlugin } from '@rollup/plugin-babel';
4
4
  import inject from '@rollup/plugin-inject';
@@ -107,7 +107,7 @@ function extractRolldownConfig(context) {
107
107
  tsconfig: context.tsconfig.tsconfigFilePath,
108
108
  cache: !context.config.skipCache ? joinPaths(context.cachePath, "rolldown") : false,
109
109
  output: {
110
- dir: context.config.output.outputPath
110
+ dir: context.config.output.distPath
111
111
  },
112
112
  logLevel: context.config.logLevel,
113
113
  onLog: context.log
@@ -532,8 +532,8 @@ type InferHookHandler<TContext extends PluginContext, TKey extends HookKeys<TCon
532
532
  type InferHookReturnType<TContext extends PluginContext, TKey extends HookKeys<TContext>> = ReturnType<InferHookHandler<TContext, TKey>> extends Promise<infer U> ? U extends Promise<infer V> ? V : U : ReturnType<InferHookHandler<TContext, TKey>>;
533
533
  type InferHookParameters<TContext extends PluginContext, TKey extends HookKeys<TContext>> = Parameters<InferHookHandler<TContext, TKey>>;
534
534
 
535
- declare const __VFS_PATCH__: unique symbol;
536
- declare const __VFS_REVERT__: unique symbol;
535
+ declare const __VFS_PATCH__ = "__VFS_PATCH__";
536
+ declare const __VFS_REVERT__ = "__VFS_REVERT__";
537
537
  type OutputModeType = "fs" | "virtual";
538
538
  interface VirtualFile {
539
539
  /**
@@ -1304,6 +1304,15 @@ interface OutputConfig {
1304
1304
  * @defaultValue "dist/\{projectRoot\}"
1305
1305
  */
1306
1306
  outputPath?: string;
1307
+ /**
1308
+ * The output directory path for the project build.
1309
+ *
1310
+ * @remarks
1311
+ * This path is used to determine where the built files will be placed after the build process completes. This will be used in scenarios where the monorepo uses TSConfig paths to link packages together.
1312
+ *
1313
+ * @defaultValue "\{projectRoot\}/dist"
1314
+ */
1315
+ distPath?: string;
1307
1316
  /**
1308
1317
  * The format of the output files
1309
1318
  *
@@ -532,8 +532,8 @@ type InferHookHandler<TContext extends PluginContext, TKey extends HookKeys<TCon
532
532
  type InferHookReturnType<TContext extends PluginContext, TKey extends HookKeys<TContext>> = ReturnType<InferHookHandler<TContext, TKey>> extends Promise<infer U> ? U extends Promise<infer V> ? V : U : ReturnType<InferHookHandler<TContext, TKey>>;
533
533
  type InferHookParameters<TContext extends PluginContext, TKey extends HookKeys<TContext>> = Parameters<InferHookHandler<TContext, TKey>>;
534
534
 
535
- declare const __VFS_PATCH__: unique symbol;
536
- declare const __VFS_REVERT__: unique symbol;
535
+ declare const __VFS_PATCH__ = "__VFS_PATCH__";
536
+ declare const __VFS_REVERT__ = "__VFS_REVERT__";
537
537
  type OutputModeType = "fs" | "virtual";
538
538
  interface VirtualFile {
539
539
  /**
@@ -1304,6 +1304,15 @@ interface OutputConfig {
1304
1304
  * @defaultValue "dist/\{projectRoot\}"
1305
1305
  */
1306
1306
  outputPath?: string;
1307
+ /**
1308
+ * The output directory path for the project build.
1309
+ *
1310
+ * @remarks
1311
+ * This path is used to determine where the built files will be placed after the build process completes. This will be used in scenarios where the monorepo uses TSConfig paths to link packages together.
1312
+ *
1313
+ * @defaultValue "\{projectRoot\}/dist"
1314
+ */
1315
+ distPath?: string;
1307
1316
  /**
1308
1317
  * The format of the output files
1309
1318
  *
@@ -1,5 +1,5 @@
1
1
  import { Jiti } from 'jiti';
2
- import { C as Context, e as WorkspaceConfig, P as PowerlinesCommand, f as ParsedUserConfig } from './config-7vXtXiGg.cjs';
2
+ import { C as Context, e as WorkspaceConfig, P as PowerlinesCommand, f as ParsedUserConfig } from './config-BoGlIhnH.cjs';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -1,5 +1,5 @@
1
1
  import { Jiti } from 'jiti';
2
- import { C as Context, e as WorkspaceConfig, P as PowerlinesCommand, f as ParsedUserConfig } from './config-B9aVEiiX.js';
2
+ import { C as Context, e as WorkspaceConfig, P as PowerlinesCommand, f as ParsedUserConfig } from './config-CTej7RMP.js';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -1,5 +1,5 @@
1
1
  import { Project } from 'ts-morph';
2
- import { C as Context } from './config-7vXtXiGg.cjs';
2
+ import { C as Context } from './config-BoGlIhnH.cjs';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -1,5 +1,5 @@
1
1
  import { Project } from 'ts-morph';
2
- import { C as Context } from './config-B9aVEiiX.js';
2
+ import { C as Context } from './config-CTej7RMP.js';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -1,5 +1,5 @@
1
1
  import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
2
- import { C as Context, g as ResolvedEntryTypeDefinition } from './config-7vXtXiGg.cjs';
2
+ import { C as Context, g as ResolvedEntryTypeDefinition } from './config-BoGlIhnH.cjs';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -1,5 +1,5 @@
1
1
  import { TypeDefinition, TypeDefinitionParameter } from '@stryke/types/configuration';
2
- import { C as Context, g as ResolvedEntryTypeDefinition } from './config-B9aVEiiX.js';
2
+ import { C as Context, g as ResolvedEntryTypeDefinition } from './config-CTej7RMP.js';
3
3
  import '@storm-software/build-tools/types';
4
4
  import '@storm-software/config-tools/types';
5
5
  import '@storm-software/config/types';
@@ -1,4 +1,4 @@
1
- import { S as SelectHooksOptions } from './config-7vXtXiGg.cjs';
1
+ import { S as SelectHooksOptions } from './config-BoGlIhnH.cjs';
2
2
 
3
3
  type CallHookOptions = SelectHooksOptions & ({
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { S as SelectHooksOptions } from './config-B9aVEiiX.js';
1
+ import { S as SelectHooksOptions } from './config-CTej7RMP.js';
2
2
 
3
3
  type CallHookOptions = SelectHooksOptions & ({
4
4
  /**
@@ -4,13 +4,13 @@ require('./chunk-EJ25PQEL.cjs');
4
4
  var chunkJG4IL7XL_cjs = require('./chunk-JG4IL7XL.cjs');
5
5
  var chunkVQ7CXQLT_cjs = require('./chunk-VQ7CXQLT.cjs');
6
6
  var chunkT6KEXFRH_cjs = require('./chunk-T6KEXFRH.cjs');
7
- var chunkE2MVGKGH_cjs = require('./chunk-E2MVGKGH.cjs');
8
- var chunkFN7673NC_cjs = require('./chunk-FN7673NC.cjs');
7
+ var chunkRZFE3C3Q_cjs = require('./chunk-RZFE3C3Q.cjs');
8
+ var chunk4WMJ7EKB_cjs = require('./chunk-4WMJ7EKB.cjs');
9
9
  var chunkMZJWK36Q_cjs = require('./chunk-MZJWK36Q.cjs');
10
10
  require('./chunk-RJ4277VZ.cjs');
11
11
  var chunkH7A5QVLY_cjs = require('./chunk-H7A5QVLY.cjs');
12
12
  require('./chunk-VVSEE3JE.cjs');
13
- var chunkLPA7UJIR_cjs = require('./chunk-LPA7UJIR.cjs');
13
+ var chunkWLFJA6PY_cjs = require('./chunk-WLFJA6PY.cjs');
14
14
  var chunk2NZADVP5_cjs = require('./chunk-2NZADVP5.cjs');
15
15
  var chunk4NHFXDTQ_cjs = require('./chunk-4NHFXDTQ.cjs');
16
16
  var chunk7XHBIYIN_cjs = require('./chunk-7XHBIYIN.cjs');
@@ -22,7 +22,7 @@ var chunkXW5TELHB_cjs = require('./chunk-XW5TELHB.cjs');
22
22
  var chunkCGYAL3S2_cjs = require('./chunk-CGYAL3S2.cjs');
23
23
  var chunkJA4HSQRN_cjs = require('./chunk-JA4HSQRN.cjs');
24
24
  var chunk3OCI4TH7_cjs = require('./chunk-3OCI4TH7.cjs');
25
- require('./chunk-27VJFYDM.cjs');
25
+ require('./chunk-XKMOJSWY.cjs');
26
26
  var chunkMPCVQK2D_cjs = require('./chunk-MPCVQK2D.cjs');
27
27
  require('./chunk-USNT2KNT.cjs');
28
28
 
@@ -50,11 +50,11 @@ Object.defineProperty(exports, "setCache", {
50
50
  });
51
51
  Object.defineProperty(exports, "resolve", {
52
52
  enumerable: true,
53
- get: function () { return chunkE2MVGKGH_cjs.resolve; }
53
+ get: function () { return chunkRZFE3C3Q_cjs.resolve; }
54
54
  });
55
55
  Object.defineProperty(exports, "bundle", {
56
56
  enumerable: true,
57
- get: function () { return chunkFN7673NC_cjs.bundle; }
57
+ get: function () { return chunk4WMJ7EKB_cjs.bundle; }
58
58
  });
59
59
  Object.defineProperty(exports, "resolvePath", {
60
60
  enumerable: true,
@@ -66,11 +66,11 @@ Object.defineProperty(exports, "isolatedDeclarations", {
66
66
  });
67
67
  Object.defineProperty(exports, "VirtualFileSystem", {
68
68
  enumerable: true,
69
- get: function () { return chunkLPA7UJIR_cjs.VirtualFileSystem; }
69
+ get: function () { return chunkWLFJA6PY_cjs.VirtualFileSystem; }
70
70
  });
71
71
  Object.defineProperty(exports, "createUnpluginFactory", {
72
72
  enumerable: true,
73
- get: function () { return chunkLPA7UJIR_cjs.createUnpluginFactory; }
73
+ get: function () { return chunkWLFJA6PY_cjs.createUnpluginFactory; }
74
74
  });
75
75
  Object.defineProperty(exports, "writeFile", {
76
76
  enumerable: true,
@@ -2,7 +2,7 @@ export { PartiallyResolvedContext, loadUserConfigFile, loadWorkspaceConfig } fro
2
2
  export { createProgram } from './create-program.cjs';
3
3
  export { getUniqueEntries, resolveEntries, resolveEntriesSync, resolveEntry, resolveEntryInput, resolveEntryInputFile, resolveEntryOutput, resolveVirtualEntry } from './entry.cjs';
4
4
  import fs, { PathLike, ObjectEncodingOptions, PathOrFileDescriptor, Stats, StatSyncOptions } from 'node:fs';
5
- import { V as VirtualFileSystemInterface, C as Context, a as VirtualFileMetadata, R as ResolvePathOptions, b as ResolveFSOptions, M as MakeDirectoryOptions, W as WriteFileData, c as WriteFileOptions, _ as __VFS_PATCH__, d as __VFS_REVERT__ } from './config-7vXtXiGg.cjs';
5
+ import { V as VirtualFileSystemInterface, C as Context, a as VirtualFileMetadata, R as ResolvePathOptions, b as ResolveFSOptions, M as MakeDirectoryOptions, W as WriteFileData, c as WriteFileOptions, _ as __VFS_PATCH__, d as __VFS_REVERT__ } from './config-BoGlIhnH.cjs';
6
6
  export { CreateLogOptions, createLog, extendLog } from './logger.cjs';
7
7
  export { IsolatedDeclarationsResult, isolatedDeclarations } from './typescript/isolated-decl.cjs';
8
8
  export { SourcesMap, createVirtualCompilerHost, createVirtualProgram, getDefaultCompilerOptions, loadLibFiles } from './typescript/program.cjs';
@@ -50,7 +50,7 @@ import './tsconfig-Bz-CiFqD.cjs';
50
50
  import '@stryke/types/tsconfig';
51
51
  import 'typescript';
52
52
  import '@stryke/json/types';
53
- import './hooks-cvv50JDh.cjs';
53
+ import './hooks-CDLPWf7j.cjs';
54
54
 
55
55
  /**
56
56
  * Represents a virtual file system (VFS) that stores files and their associated metadata in virtual memory.
@@ -2,7 +2,7 @@ export { PartiallyResolvedContext, loadUserConfigFile, loadWorkspaceConfig } fro
2
2
  export { createProgram } from './create-program.js';
3
3
  export { getUniqueEntries, resolveEntries, resolveEntriesSync, resolveEntry, resolveEntryInput, resolveEntryInputFile, resolveEntryOutput, resolveVirtualEntry } from './entry.js';
4
4
  import fs, { PathLike, ObjectEncodingOptions, PathOrFileDescriptor, Stats, StatSyncOptions } from 'node:fs';
5
- import { V as VirtualFileSystemInterface, C as Context, a as VirtualFileMetadata, R as ResolvePathOptions, b as ResolveFSOptions, M as MakeDirectoryOptions, W as WriteFileData, c as WriteFileOptions, _ as __VFS_PATCH__, d as __VFS_REVERT__ } from './config-B9aVEiiX.js';
5
+ import { V as VirtualFileSystemInterface, C as Context, a as VirtualFileMetadata, R as ResolvePathOptions, b as ResolveFSOptions, M as MakeDirectoryOptions, W as WriteFileData, c as WriteFileOptions, _ as __VFS_PATCH__, d as __VFS_REVERT__ } from './config-CTej7RMP.js';
6
6
  export { CreateLogOptions, createLog, extendLog } from './logger.js';
7
7
  export { IsolatedDeclarationsResult, isolatedDeclarations } from './typescript/isolated-decl.js';
8
8
  export { SourcesMap, createVirtualCompilerHost, createVirtualProgram, getDefaultCompilerOptions, loadLibFiles } from './typescript/program.js';
@@ -50,7 +50,7 @@ import './tsconfig-Bz-CiFqD.js';
50
50
  import '@stryke/types/tsconfig';
51
51
  import 'typescript';
52
52
  import '@stryke/json/types';
53
- import './hooks-BxUBzqCb.js';
53
+ import './hooks-Cn-IqwYp.js';
54
54
 
55
55
  /**
56
56
  * Represents a virtual file system (VFS) that stores files and their associated metadata in virtual memory.