@powerlines/plugin-env 0.15.161 → 0.15.162

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 (346) hide show
  1. package/dist/{chunk-CNVrAnJR.cjs → _virtual/rolldown_runtime.cjs} +3 -18
  2. package/dist/{chunk-CsF2CmBJ.mjs → _virtual/rolldown_runtime.mjs} +1 -1
  3. package/dist/babel/index.cjs +2 -5
  4. package/dist/babel/index.d.cts +1 -14
  5. package/dist/babel/index.d.mts +1 -14
  6. package/dist/babel/index.mjs +1 -4
  7. package/dist/babel/plugin.cjs +140 -4
  8. package/dist/babel/plugin.d.cts +9 -15
  9. package/dist/babel/plugin.d.cts.map +1 -0
  10. package/dist/babel/plugin.d.mts +9 -15
  11. package/dist/babel/plugin.d.mts.map +1 -0
  12. package/dist/babel/plugin.mjs +140 -4
  13. package/dist/babel/plugin.mjs.map +1 -0
  14. package/dist/components/docs.cjs +66 -6
  15. package/dist/components/docs.d.cts +25 -2
  16. package/dist/components/docs.d.cts.map +1 -0
  17. package/dist/components/docs.d.mts +25 -2
  18. package/dist/components/docs.d.mts.map +1 -0
  19. package/dist/components/docs.mjs +66 -6
  20. package/dist/components/docs.mjs.map +1 -0
  21. package/dist/components/env.cjs +582 -11
  22. package/dist/components/env.d.cts +23 -2
  23. package/dist/components/env.d.cts.map +1 -0
  24. package/dist/components/env.d.mts +23 -2
  25. package/dist/components/env.d.mts.map +1 -0
  26. package/dist/components/env.mjs +581 -10
  27. package/dist/components/env.mjs.map +1 -0
  28. package/dist/components/index.cjs +5 -15
  29. package/dist/components/index.d.cts +2 -3
  30. package/dist/components/index.d.mts +2 -3
  31. package/dist/components/index.mjs +2 -12
  32. package/dist/helpers/automd-generator.cjs +31 -3
  33. package/dist/helpers/automd-generator.mjs +31 -3
  34. package/dist/helpers/automd-generator.mjs.map +1 -0
  35. package/dist/helpers/create-reflection-resource.cjs +21 -4
  36. package/dist/helpers/create-reflection-resource.d.cts +14 -4
  37. package/dist/helpers/create-reflection-resource.d.cts.map +1 -0
  38. package/dist/helpers/create-reflection-resource.d.mts +14 -4
  39. package/dist/helpers/create-reflection-resource.d.mts.map +1 -0
  40. package/dist/helpers/create-reflection-resource.mjs +22 -4
  41. package/dist/helpers/create-reflection-resource.mjs.map +1 -0
  42. package/dist/helpers/docs-helper.cjs +22 -5
  43. package/dist/helpers/docs-helper.d.cts +1 -2
  44. package/dist/helpers/docs-helper.d.cts.map +1 -1
  45. package/dist/helpers/docs-helper.d.mts +1 -2
  46. package/dist/helpers/docs-helper.d.mts.map +1 -1
  47. package/dist/helpers/docs-helper.mjs +23 -5
  48. package/dist/helpers/docs-helper.mjs.map +1 -0
  49. package/dist/helpers/index.cjs +32 -38
  50. package/dist/helpers/index.d.cts +6 -9
  51. package/dist/helpers/index.d.mts +6 -9
  52. package/dist/helpers/index.mjs +6 -12
  53. package/dist/helpers/load.cjs +133 -10
  54. package/dist/helpers/load.d.cts +36 -4
  55. package/dist/helpers/load.d.cts.map +1 -0
  56. package/dist/helpers/load.d.mts +36 -4
  57. package/dist/helpers/load.d.mts.map +1 -0
  58. package/dist/helpers/load.mjs +132 -9
  59. package/dist/helpers/load.mjs.map +1 -0
  60. package/dist/helpers/persistence.cjs +321 -15
  61. package/dist/helpers/persistence.d.cts +85 -4
  62. package/dist/helpers/persistence.d.cts.map +1 -0
  63. package/dist/helpers/persistence.d.mts +85 -4
  64. package/dist/helpers/persistence.d.mts.map +1 -0
  65. package/dist/helpers/persistence.mjs +310 -5
  66. package/dist/helpers/persistence.mjs.map +1 -0
  67. package/dist/helpers/reflect.cjs +262 -13
  68. package/dist/helpers/reflect.d.cts +47 -4
  69. package/dist/helpers/reflect.d.cts.map +1 -0
  70. package/dist/helpers/reflect.d.mts +47 -4
  71. package/dist/helpers/reflect.d.mts.map +1 -0
  72. package/dist/helpers/reflect.mjs +254 -5
  73. package/dist/helpers/reflect.mjs.map +1 -0
  74. package/dist/helpers/source-file-env.cjs +57 -3
  75. package/dist/helpers/source-file-env.d.cts +9 -2
  76. package/dist/helpers/source-file-env.d.cts.map +1 -0
  77. package/dist/helpers/source-file-env.d.mts +9 -2
  78. package/dist/helpers/source-file-env.d.mts.map +1 -0
  79. package/dist/helpers/source-file-env.mjs +56 -2
  80. package/dist/helpers/source-file-env.mjs.map +1 -0
  81. package/dist/helpers/template-helpers.cjs +69 -6
  82. package/dist/helpers/template-helpers.d.cts +16 -4
  83. package/dist/helpers/template-helpers.d.cts.map +1 -0
  84. package/dist/helpers/template-helpers.d.mts +16 -4
  85. package/dist/helpers/template-helpers.d.mts.map +1 -0
  86. package/dist/helpers/template-helpers.mjs +69 -6
  87. package/dist/helpers/template-helpers.mjs.map +1 -0
  88. package/dist/index.cjs +98 -258
  89. package/dist/index.d.cts +25 -15
  90. package/dist/index.d.cts.map +1 -0
  91. package/dist/index.d.mts +25 -15
  92. package/dist/index.d.mts.map +1 -0
  93. package/dist/index.mjs +22 -182
  94. package/dist/index.mjs.map +1 -1
  95. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.cjs +37 -0
  96. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.mjs +38 -0
  97. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.mjs.map +1 -0
  98. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.cjs +15 -0
  99. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.mjs +15 -0
  100. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.mjs.map +1 -0
  101. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +15 -0
  102. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +15 -0
  103. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs.map +1 -0
  104. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +3 -0
  105. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +5 -0
  106. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +6 -0
  107. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +7 -0
  108. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs.map +1 -0
  109. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +1 -0
  110. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +3 -0
  111. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +19 -0
  112. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +20 -0
  113. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs.map +1 -0
  114. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +63 -0
  115. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +64 -0
  116. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs.map +1 -0
  117. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +12 -0
  118. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +12 -0
  119. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs.map +1 -0
  120. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +15 -0
  121. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +17 -0
  122. package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs.map +1 -0
  123. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.cjs +32 -0
  124. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.mjs +33 -0
  125. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.mjs.map +1 -0
  126. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.cjs +28 -0
  127. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.mjs +29 -0
  128. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.mjs.map +1 -0
  129. package/dist/{join-paths-B0RBTuuw.cjs → node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.cjs} +13 -65
  130. package/dist/{join-paths-Dd9KxuyL.mjs → node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.mjs} +5 -45
  131. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.mjs.map +1 -0
  132. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.cjs +12 -0
  133. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.mjs +9 -0
  134. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.mjs.map +1 -0
  135. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.cjs +15 -0
  136. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.mjs +15 -0
  137. package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.mjs.map +1 -0
  138. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +346 -0
  139. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +347 -0
  140. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs.map +1 -0
  141. package/dist/{json5-DEV_07Nb.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs} +1 -1
  142. package/dist/{json5-jq90mF9X.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs} +2 -2
  143. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs.map +1 -0
  144. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +3 -0
  145. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +3 -0
  146. package/dist/{confbox.DA7CpUDY-DShUZ_rW.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs} +2 -2
  147. package/dist/{confbox.DA7CpUDY-r6FXRsI6.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs} +2 -7
  148. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs.map +1 -0
  149. package/dist/{confbox.DnMsyigM-C13n3X-S.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs} +3 -13
  150. package/dist/{confbox.DnMsyigM-V6Wj0LPC.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs} +3 -3
  151. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs.map +1 -0
  152. package/dist/{toml-DvrxV201.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs} +1 -1
  153. package/dist/{toml-uuOYvEAO.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs} +2 -2
  154. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs.map +1 -0
  155. package/dist/{yaml-CQSFMRMS.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs} +1 -1
  156. package/dist/{yaml-CIn2Gddw.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs} +2 -2
  157. package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs.map +1 -0
  158. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +43 -0
  159. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +43 -0
  160. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs.map +1 -0
  161. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +46 -0
  162. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +46 -0
  163. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs.map +1 -0
  164. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +288 -0
  165. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +286 -0
  166. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs.map +1 -0
  167. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +71 -0
  168. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +69 -0
  169. package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs.map +1 -0
  170. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +1013 -0
  171. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +1008 -0
  172. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +1 -0
  173. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +23 -0
  174. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +14 -0
  175. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs.map +1 -0
  176. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +2698 -0
  177. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +2686 -0
  178. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +1 -0
  179. package/dist/{load-CC_Pu2Om.cjs → node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs} +195 -2332
  180. package/dist/{load-EM4edkA2.mjs → node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs} +195 -2319
  181. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs.map +1 -0
  182. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +29 -0
  183. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +30 -0
  184. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs.map +1 -0
  185. package/dist/{multipart-parser-aEF5a4Xf.cjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs} +8 -5
  186. package/dist/{multipart-parser-D65rtMfY.mjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs} +4 -3
  187. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +1 -0
  188. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +22 -0
  189. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +18 -0
  190. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs.map +1 -0
  191. package/dist/{node-Co8KdzkZ.cjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs} +796 -814
  192. package/dist/{node-D9MigVDD.mjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs} +795 -807
  193. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +1 -0
  194. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +11768 -0
  195. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +11764 -0
  196. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs.map +1 -0
  197. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +25 -0
  198. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +21 -0
  199. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs.map +1 -0
  200. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +20 -0
  201. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +18 -0
  202. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs.map +1 -0
  203. package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.cjs +194 -0
  204. package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs +192 -0
  205. package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs.map +1 -0
  206. package/dist/{dist-BQc8ZRwl.cjs → node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs} +1 -1
  207. package/dist/{dist-mV5Swt78.mjs → node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs} +1 -1
  208. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs.map +1 -0
  209. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +3 -0
  210. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +3 -0
  211. package/dist/{defu-DV5Grr85.mjs → node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs} +8 -43
  212. package/dist/{defu-CrqNIh1A.cjs → node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs} +2 -90
  213. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs.map +1 -0
  214. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +127 -0
  215. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +126 -0
  216. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +1 -0
  217. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +138 -0
  218. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +137 -0
  219. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs.map +1 -0
  220. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +629 -0
  221. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +628 -0
  222. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs.map +1 -0
  223. package/dist/types/index.cjs +9 -10
  224. package/dist/types/index.d.cts +2 -3
  225. package/dist/types/index.d.mts +2 -3
  226. package/dist/types/index.mjs +2 -3
  227. package/dist/types/plugin.cjs +133 -7
  228. package/dist/types/plugin.d.cts +155 -3
  229. package/dist/types/plugin.d.cts.map +1 -0
  230. package/dist/types/plugin.d.mts +155 -3
  231. package/dist/types/plugin.d.mts.map +1 -0
  232. package/dist/types/plugin.mjs +129 -3
  233. package/dist/types/plugin.mjs.map +1 -0
  234. package/dist/types/runtime.cjs +242 -3
  235. package/dist/types/runtime.d.cts +792 -2
  236. package/dist/{runtime-BDzzR4wH.d.cts.map → types/runtime.d.cts.map} +1 -1
  237. package/dist/types/runtime.d.mts +792 -2
  238. package/dist/{runtime-lYSIZdMn.d.mts.map → types/runtime.d.mts.map} +1 -1
  239. package/dist/types/runtime.mjs +241 -2
  240. package/dist/types/runtime.mjs.map +1 -0
  241. package/package.json +9 -9
  242. package/dist/automd-generator-BpvZRK0k.mjs +0 -32
  243. package/dist/automd-generator-BpvZRK0k.mjs.map +0 -1
  244. package/dist/automd-generator-CxG1owAE.cjs +0 -37
  245. package/dist/babel-BZqmdVF4.cjs +0 -0
  246. package/dist/babel-DgietUY3.mjs +0 -1
  247. package/dist/components-BUo6Koax.cjs +0 -0
  248. package/dist/components-DDFmImcI.mjs +0 -1
  249. package/dist/confbox.DA7CpUDY-DShUZ_rW.mjs.map +0 -1
  250. package/dist/confbox.DnMsyigM-V6Wj0LPC.mjs.map +0 -1
  251. package/dist/create-reflection-resource-3svZm2rY.d.cts +0 -14
  252. package/dist/create-reflection-resource-3svZm2rY.d.cts.map +0 -1
  253. package/dist/create-reflection-resource-CCpA76Yq.d.mts +0 -14
  254. package/dist/create-reflection-resource-CCpA76Yq.d.mts.map +0 -1
  255. package/dist/create-reflection-resource-D0QrD1Td.mjs +0 -23
  256. package/dist/create-reflection-resource-D0QrD1Td.mjs.map +0 -1
  257. package/dist/create-reflection-resource-d2zdTyOE.cjs +0 -27
  258. package/dist/defu-DV5Grr85.mjs.map +0 -1
  259. package/dist/dist-C_a6goTt.cjs +0 -15282
  260. package/dist/dist-CjWvISyq.mjs +0 -15271
  261. package/dist/dist-CjWvISyq.mjs.map +0 -1
  262. package/dist/dist-mV5Swt78.mjs.map +0 -1
  263. package/dist/docs-BAKwE4PJ.d.cts +0 -25
  264. package/dist/docs-BAKwE4PJ.d.cts.map +0 -1
  265. package/dist/docs-CVf-w8oz.d.mts +0 -25
  266. package/dist/docs-CVf-w8oz.d.mts.map +0 -1
  267. package/dist/docs-E0aCTO7H.cjs +0 -72
  268. package/dist/docs-WdCIcQmw.mjs +0 -67
  269. package/dist/docs-WdCIcQmw.mjs.map +0 -1
  270. package/dist/docs-helper-BSYSI2cH.mjs +0 -24
  271. package/dist/docs-helper-BSYSI2cH.mjs.map +0 -1
  272. package/dist/docs-helper-BWe1dt1m.cjs +0 -28
  273. package/dist/env-BSCEigpj.cjs +0 -593
  274. package/dist/env-D0KBPuAd.d.mts +0 -23
  275. package/dist/env-D0KBPuAd.d.mts.map +0 -1
  276. package/dist/env-DqI7dwC-.mjs +0 -582
  277. package/dist/env-DqI7dwC-.mjs.map +0 -1
  278. package/dist/env-DwM7pJm7.d.cts +0 -23
  279. package/dist/env-DwM7pJm7.d.cts.map +0 -1
  280. package/dist/helpers-45e1bvAO.mjs +0 -1
  281. package/dist/helpers-DgYP3uej.cjs +0 -0
  282. package/dist/index-BNRXMhlr.d.mts +0 -1
  283. package/dist/index-Bdi8CvaN.d.cts +0 -16
  284. package/dist/index-Bdi8CvaN.d.cts.map +0 -1
  285. package/dist/index-CEDY7cmG.d.cts +0 -1
  286. package/dist/index-CREkvfw9.d.mts +0 -1
  287. package/dist/index-DSiHnMH2.d.cts +0 -1
  288. package/dist/index-Drhzdkqe.d.mts +0 -16
  289. package/dist/index-Drhzdkqe.d.mts.map +0 -1
  290. package/dist/index-dhjtMp5F.d.mts +0 -1
  291. package/dist/index-uTS5iDq_.d.cts +0 -1
  292. package/dist/join-paths-Dd9KxuyL.mjs.map +0 -1
  293. package/dist/json5-jq90mF9X.mjs.map +0 -1
  294. package/dist/jsonc-CBh70baJ.cjs +0 -4
  295. package/dist/jsonc-CDLU6bgi.mjs +0 -4
  296. package/dist/load-EM4edkA2.mjs.map +0 -1
  297. package/dist/load-GpP6cojj.d.mts +0 -36
  298. package/dist/load-GpP6cojj.d.mts.map +0 -1
  299. package/dist/load-PHGmxX_X.d.cts +0 -36
  300. package/dist/load-PHGmxX_X.d.cts.map +0 -1
  301. package/dist/multipart-parser-D65rtMfY.mjs.map +0 -1
  302. package/dist/node-D9MigVDD.mjs.map +0 -1
  303. package/dist/persistence-5S3EirDm.mjs +0 -586
  304. package/dist/persistence-5S3EirDm.mjs.map +0 -1
  305. package/dist/persistence-BR4cUaN6.d.cts +0 -85
  306. package/dist/persistence-BR4cUaN6.d.cts.map +0 -1
  307. package/dist/persistence-DrKQZNCv.d.mts +0 -85
  308. package/dist/persistence-DrKQZNCv.d.mts.map +0 -1
  309. package/dist/persistence-DzS7SzMj.cjs +0 -712
  310. package/dist/plugin-CM1TSv1B.cjs +0 -159
  311. package/dist/plugin-CSVnrdpE.cjs +0 -146
  312. package/dist/plugin-CSe5f2cD.d.cts +0 -155
  313. package/dist/plugin-CSe5f2cD.d.cts.map +0 -1
  314. package/dist/plugin-DMbVjdcQ.d.mts +0 -155
  315. package/dist/plugin-DMbVjdcQ.d.mts.map +0 -1
  316. package/dist/plugin-Vyvy9w9Z.mjs +0 -141
  317. package/dist/plugin-Vyvy9w9Z.mjs.map +0 -1
  318. package/dist/plugin-eBjQJP6x.mjs +0 -130
  319. package/dist/plugin-eBjQJP6x.mjs.map +0 -1
  320. package/dist/reflect-Dm8a3c29.d.cts +0 -47
  321. package/dist/reflect-Dm8a3c29.d.cts.map +0 -1
  322. package/dist/reflect-Dpz8ifa0.d.mts +0 -47
  323. package/dist/reflect-Dpz8ifa0.d.mts.map +0 -1
  324. package/dist/runtime-BDzzR4wH.d.cts +0 -792
  325. package/dist/runtime-C5ukCv3P.mjs +0 -242
  326. package/dist/runtime-C5ukCv3P.mjs.map +0 -1
  327. package/dist/runtime-g0TEIoZK.cjs +0 -253
  328. package/dist/runtime-lYSIZdMn.d.mts +0 -792
  329. package/dist/source-file-env-4Vdtzc5-.cjs +0 -68
  330. package/dist/source-file-env-Brfopjyr.d.cts +0 -9
  331. package/dist/source-file-env-Brfopjyr.d.cts.map +0 -1
  332. package/dist/source-file-env-DWejSP2U.d.mts +0 -9
  333. package/dist/source-file-env-DWejSP2U.d.mts.map +0 -1
  334. package/dist/source-file-env-Tj-6qobx.mjs +0 -57
  335. package/dist/source-file-env-Tj-6qobx.mjs.map +0 -1
  336. package/dist/template-helpers-1SKodHKt.d.mts +0 -16
  337. package/dist/template-helpers-1SKodHKt.d.mts.map +0 -1
  338. package/dist/template-helpers-Cw8aba1r.mjs +0 -70
  339. package/dist/template-helpers-Cw8aba1r.mjs.map +0 -1
  340. package/dist/template-helpers-DoFoTIAC.cjs +0 -75
  341. package/dist/template-helpers-zyitPfMz.d.cts +0 -16
  342. package/dist/template-helpers-zyitPfMz.d.cts.map +0 -1
  343. package/dist/toml-uuOYvEAO.mjs.map +0 -1
  344. package/dist/types-DyPQho_C.mjs +0 -1
  345. package/dist/types-o3zWarRp.cjs +0 -0
  346. package/dist/yaml-CIn2Gddw.mjs.map +0 -1
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
4
+
5
+ //#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs
6
+ var require_node_fetch_native_DhEqb06g = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
7
+ var l = Object.defineProperty;
8
+ var o = (e, t) => l(e, "name", {
9
+ value: t,
10
+ configurable: !0
11
+ });
12
+ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
13
+ function getDefaultExportFromCjs(e) {
14
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
15
+ }
16
+ o(getDefaultExportFromCjs, "getDefaultExportFromCjs"), exports.commonjsGlobal = commonjsGlobal, exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
17
+ }));
18
+
19
+ //#endregion
20
+ Object.defineProperty(exports, 'default', {
21
+ enumerable: true,
22
+ get: function () {
23
+ return require_node_fetch_native_DhEqb06g();
24
+ }
25
+ });
@@ -0,0 +1,21 @@
1
+ import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.mjs";
2
+
3
+ //#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs
4
+ var require_node_fetch_native_DhEqb06g = /* @__PURE__ */ __commonJSMin(((exports) => {
5
+ var l = Object.defineProperty;
6
+ var o = (e, t) => l(e, "name", {
7
+ value: t,
8
+ configurable: !0
9
+ });
10
+ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
11
+ function getDefaultExportFromCjs(e) {
12
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
13
+ }
14
+ o(getDefaultExportFromCjs, "getDefaultExportFromCjs"), exports.commonjsGlobal = commonjsGlobal, exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
15
+ }));
16
+
17
+ //#endregion
18
+ export default require_node_fetch_native_DhEqb06g();
19
+
20
+ export { require_node_fetch_native_DhEqb06g };
21
+ //# sourceMappingURL=node-fetch-native.DhEqb06g.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-fetch-native.DhEqb06g.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs"],"sourcesContent":["\"use strict\";var l=Object.defineProperty;var o=(e,t)=>l(e,\"name\",{value:t,configurable:!0});var commonjsGlobal=typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof global<\"u\"?global:typeof self<\"u\"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}o(getDefaultExportFromCjs,\"getDefaultExportFromCjs\"),exports.commonjsGlobal=commonjsGlobal,exports.getDefaultExportFromCjs=getDefaultExportFromCjs;\n"],"x_google_ignoreList":[0],"mappings":";;;;CAAa,IAAI,IAAE,OAAO;CAAe,IAAI,KAAG,GAAE,MAAI,EAAE,GAAE,QAAO;EAAC,OAAM;EAAE,cAAa,CAAC;EAAE,CAAC;CAAC,IAAI,iBAAe,OAAO,aAAW,MAAI,aAAW,OAAO,SAAO,MAAI,SAAO,OAAO,SAAO,MAAI,SAAO,OAAO,OAAK,MAAI,OAAK,EAAE;CAAC,SAAS,wBAAwB,GAAE;AAAC,SAAO,KAAG,EAAE,cAAY,OAAO,UAAU,eAAe,KAAK,GAAE,UAAU,GAAC,EAAE,UAAQ;;AAAE,GAAE,yBAAwB,0BAA0B,EAAC,QAAQ,iBAAe,gBAAe,QAAQ,0BAAwB"}
@@ -0,0 +1,20 @@
1
+ const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
2
+ const require_index = require('../dist/index.cjs');
3
+
4
+ //#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs
5
+ var require_lib = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
6
+ const nodeFetch = require_index.default;
7
+ function fetch(input, options) {
8
+ return nodeFetch.fetch(input, options);
9
+ }
10
+ for (const key in nodeFetch) fetch[key] = nodeFetch[key];
11
+ module.exports = fetch;
12
+ }));
13
+
14
+ //#endregion
15
+ Object.defineProperty(exports, 'default', {
16
+ enumerable: true,
17
+ get: function () {
18
+ return require_lib();
19
+ }
20
+ });
@@ -0,0 +1,18 @@
1
+ import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.mjs";
2
+ import { require_dist } from "../dist/index.mjs";
3
+
4
+ //#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs
5
+ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6
+ const nodeFetch = require_dist();
7
+ function fetch(input, options) {
8
+ return nodeFetch.fetch(input, options);
9
+ }
10
+ for (const key in nodeFetch) fetch[key] = nodeFetch[key];
11
+ module.exports = fetch;
12
+ }));
13
+
14
+ //#endregion
15
+ export default require_lib();
16
+
17
+ export { require_lib };
18
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs"],"sourcesContent":["const nodeFetch = require(\"../dist/index.cjs\");\n\nfunction fetch(input, options) {\n return nodeFetch.fetch(input, options);\n}\n\nfor (const key in nodeFetch) {\n fetch[key] = nodeFetch[key];\n}\n\nmodule.exports = fetch;\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAAA,MAAM;CAEN,SAAS,MAAM,OAAO,SAAS;AAC7B,SAAO,UAAU,MAAM,OAAO,QAAQ;;AAGxC,MAAK,MAAM,OAAO,UAChB,OAAM,OAAO,UAAU;AAGzB,QAAO,UAAU"}
@@ -0,0 +1,194 @@
1
+ const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
2
+ const require_pathe_M_eThtNZ = require('../../../../pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs');
3
+ const require_main = require('../../../../tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs');
4
+ let node_fs = require("node:fs");
5
+ node_fs = require_rolldown_runtime.__toESM(node_fs);
6
+ let node_path = require("node:path");
7
+ let node_fs_promises = require("node:fs/promises");
8
+ let node_module = require("node:module");
9
+
10
+ //#region ../../node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs
11
+ async function findup(cwd, match, options = {}) {
12
+ const segments = require_pathe_M_eThtNZ.normalize(cwd).split("/");
13
+ while (segments.length > 0) {
14
+ const result = await match(segments.join("/") || "/");
15
+ if (result || !options.includeParentDirs) return result;
16
+ segments.pop();
17
+ }
18
+ }
19
+ function cached(fn) {
20
+ let v;
21
+ return () => {
22
+ if (v === void 0) v = fn().then((r) => {
23
+ v = r;
24
+ return v;
25
+ });
26
+ return v;
27
+ };
28
+ }
29
+ const hasCorepack = cached(async () => {
30
+ if (globalThis.process?.versions?.webcontainer) return false;
31
+ try {
32
+ const { exitCode } = await require_main.K("corepack", ["--version"]);
33
+ return exitCode === 0;
34
+ } catch {
35
+ return false;
36
+ }
37
+ });
38
+ async function executeCommand(command, args, options = {}) {
39
+ const xArgs = command !== "npm" && command !== "bun" && command !== "deno" && options.corepack !== false && await hasCorepack() ? ["corepack", [command, ...args]] : [command, args];
40
+ const { exitCode, stdout, stderr } = await require_main.K(xArgs[0], xArgs[1], { nodeOptions: {
41
+ cwd: require_pathe_M_eThtNZ.resolve(options.cwd || process.cwd()),
42
+ env: options.env,
43
+ stdio: options.silent ? "pipe" : "inherit"
44
+ } });
45
+ if (exitCode !== 0) throw new Error(`\`${xArgs.flat().join(" ")}\` failed.${options.silent ? [
46
+ "",
47
+ stdout,
48
+ stderr
49
+ ].join("\n") : ""}`);
50
+ }
51
+ const NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG = "No package manager auto-detected.";
52
+ async function resolveOperationOptions(options = {}) {
53
+ const cwd = options.cwd || process.cwd();
54
+ const env = {
55
+ ...process.env,
56
+ ...options.env
57
+ };
58
+ const packageManager = (typeof options.packageManager === "string" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());
59
+ if (!packageManager) throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);
60
+ return {
61
+ cwd,
62
+ env,
63
+ silent: options.silent ?? false,
64
+ packageManager,
65
+ dev: options.dev ?? false,
66
+ workspace: options.workspace,
67
+ global: options.global ?? false,
68
+ dry: options.dry ?? false,
69
+ corepack: options.corepack ?? true
70
+ };
71
+ }
72
+ function parsePackageManagerField(packageManager) {
73
+ const [name, _version] = (packageManager || "").split("@");
74
+ const [version, buildMeta] = _version?.split("+") || [];
75
+ if (name && name !== "-" && /^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(name)) return {
76
+ name,
77
+ version,
78
+ buildMeta
79
+ };
80
+ const sanitized = (name || "").replace(/\W+/g, "");
81
+ return {
82
+ name: sanitized,
83
+ version,
84
+ buildMeta,
85
+ warnings: [`Abnormal characters found in \`packageManager\` field, sanitizing from \`${name}\` to \`${sanitized}\``]
86
+ };
87
+ }
88
+ const packageManagers = [
89
+ {
90
+ name: "npm",
91
+ command: "npm",
92
+ lockFile: "package-lock.json"
93
+ },
94
+ {
95
+ name: "pnpm",
96
+ command: "pnpm",
97
+ lockFile: "pnpm-lock.yaml",
98
+ files: ["pnpm-workspace.yaml"]
99
+ },
100
+ {
101
+ name: "bun",
102
+ command: "bun",
103
+ lockFile: ["bun.lockb", "bun.lock"]
104
+ },
105
+ {
106
+ name: "yarn",
107
+ command: "yarn",
108
+ lockFile: "yarn.lock",
109
+ files: [".yarnrc.yml"]
110
+ },
111
+ {
112
+ name: "deno",
113
+ command: "deno",
114
+ lockFile: "deno.lock",
115
+ files: ["deno.json"]
116
+ }
117
+ ];
118
+ /**
119
+ * Detect the package manager used in a directory (and up) by checking various sources:
120
+ *
121
+ * 1. Use `packageManager` field from package.json
122
+ *
123
+ * 2. Known lock files and other files
124
+ */
125
+ async function detectPackageManager(cwd, options = {}) {
126
+ const detected = await findup(require_pathe_M_eThtNZ.resolve(cwd || "."), async (path) => {
127
+ if (!options.ignorePackageJSON) {
128
+ const packageJSONPath = require_pathe_M_eThtNZ.join(path, "package.json");
129
+ if ((0, node_fs.existsSync)(packageJSONPath)) {
130
+ const packageJSON = JSON.parse(await (0, node_fs_promises.readFile)(packageJSONPath, "utf8"));
131
+ if (packageJSON?.packageManager) {
132
+ const { name, version = "0.0.0", buildMeta, warnings } = parsePackageManagerField(packageJSON.packageManager);
133
+ if (name) {
134
+ const majorVersion = version.split(".")[0];
135
+ const packageManager = packageManagers.find((pm) => pm.name === name && pm.majorVersion === majorVersion) || packageManagers.find((pm) => pm.name === name);
136
+ return {
137
+ name,
138
+ command: name,
139
+ version,
140
+ majorVersion,
141
+ buildMeta,
142
+ warnings,
143
+ files: packageManager?.files,
144
+ lockFile: packageManager?.lockFile
145
+ };
146
+ }
147
+ }
148
+ }
149
+ if ((0, node_fs.existsSync)(require_pathe_M_eThtNZ.join(path, "deno.json"))) return packageManagers.find((pm) => pm.name === "deno");
150
+ }
151
+ if (!options.ignoreLockFile) {
152
+ for (const packageManager of packageManagers) if ([packageManager.lockFile, packageManager.files].flat().filter(Boolean).some((file) => (0, node_fs.existsSync)(require_pathe_M_eThtNZ.resolve(path, file)))) return { ...packageManager };
153
+ }
154
+ }, { includeParentDirs: options.includeParentDirs ?? true });
155
+ if (!detected && !options.ignoreArgv) {
156
+ const scriptArg = process.argv[1];
157
+ if (scriptArg) {
158
+ for (const packageManager of packageManagers) if ((/* @__PURE__ */ new RegExp(`[/\\\\]\\.?${packageManager.command}`)).test(scriptArg)) return packageManager;
159
+ }
160
+ }
161
+ return detected;
162
+ }
163
+ /**
164
+ * Installs project dependencies.
165
+ *
166
+ * @param options - Options to pass to the API call.
167
+ * @param options.cwd - The directory to run the command in.
168
+ * @param options.silent - Whether to run the command in silent mode.
169
+ * @param options.packageManager - The package manager info to use (auto-detected).
170
+ * @param options.frozenLockFile - Whether to install dependencies with frozen lock file.
171
+ */
172
+ async function installDependencies(options = {}) {
173
+ const resolvedOptions = await resolveOperationOptions(options);
174
+ const commandArgs = options.frozenLockFile ? {
175
+ npm: ["ci"],
176
+ yarn: ["install", "--immutable"],
177
+ bun: ["install", "--frozen-lockfile"],
178
+ pnpm: ["install", "--frozen-lockfile"],
179
+ deno: ["install", "--frozen"]
180
+ }[resolvedOptions.packageManager.name] : ["install"];
181
+ if (options.ignoreWorkspace && resolvedOptions.packageManager.name === "pnpm") commandArgs.push("--ignore-workspace");
182
+ if (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, commandArgs, {
183
+ cwd: resolvedOptions.cwd,
184
+ silent: resolvedOptions.silent,
185
+ corepack: resolvedOptions.corepack
186
+ });
187
+ return { exec: {
188
+ command: resolvedOptions.packageManager.command,
189
+ args: commandArgs
190
+ } };
191
+ }
192
+
193
+ //#endregion
194
+ exports.installDependencies = installDependencies;
@@ -0,0 +1,192 @@
1
+ import { join, normalize as normalize$1, resolve as resolve$1 } from "../../../../pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs";
2
+ import { K } from "../../../../tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs";
3
+ import { createRequire } from "node:module";
4
+ import { existsSync } from "node:fs";
5
+ import { readFile } from "node:fs/promises";
6
+
7
+ //#region ../../node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs
8
+ async function findup(cwd, match, options = {}) {
9
+ const segments = normalize$1(cwd).split("/");
10
+ while (segments.length > 0) {
11
+ const result = await match(segments.join("/") || "/");
12
+ if (result || !options.includeParentDirs) return result;
13
+ segments.pop();
14
+ }
15
+ }
16
+ function cached(fn) {
17
+ let v;
18
+ return () => {
19
+ if (v === void 0) v = fn().then((r) => {
20
+ v = r;
21
+ return v;
22
+ });
23
+ return v;
24
+ };
25
+ }
26
+ const hasCorepack = cached(async () => {
27
+ if (globalThis.process?.versions?.webcontainer) return false;
28
+ try {
29
+ const { exitCode } = await K("corepack", ["--version"]);
30
+ return exitCode === 0;
31
+ } catch {
32
+ return false;
33
+ }
34
+ });
35
+ async function executeCommand(command, args, options = {}) {
36
+ const xArgs = command !== "npm" && command !== "bun" && command !== "deno" && options.corepack !== false && await hasCorepack() ? ["corepack", [command, ...args]] : [command, args];
37
+ const { exitCode, stdout, stderr } = await K(xArgs[0], xArgs[1], { nodeOptions: {
38
+ cwd: resolve$1(options.cwd || process.cwd()),
39
+ env: options.env,
40
+ stdio: options.silent ? "pipe" : "inherit"
41
+ } });
42
+ if (exitCode !== 0) throw new Error(`\`${xArgs.flat().join(" ")}\` failed.${options.silent ? [
43
+ "",
44
+ stdout,
45
+ stderr
46
+ ].join("\n") : ""}`);
47
+ }
48
+ const NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG = "No package manager auto-detected.";
49
+ async function resolveOperationOptions(options = {}) {
50
+ const cwd = options.cwd || process.cwd();
51
+ const env = {
52
+ ...process.env,
53
+ ...options.env
54
+ };
55
+ const packageManager = (typeof options.packageManager === "string" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());
56
+ if (!packageManager) throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);
57
+ return {
58
+ cwd,
59
+ env,
60
+ silent: options.silent ?? false,
61
+ packageManager,
62
+ dev: options.dev ?? false,
63
+ workspace: options.workspace,
64
+ global: options.global ?? false,
65
+ dry: options.dry ?? false,
66
+ corepack: options.corepack ?? true
67
+ };
68
+ }
69
+ function parsePackageManagerField(packageManager) {
70
+ const [name, _version] = (packageManager || "").split("@");
71
+ const [version, buildMeta] = _version?.split("+") || [];
72
+ if (name && name !== "-" && /^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(name)) return {
73
+ name,
74
+ version,
75
+ buildMeta
76
+ };
77
+ const sanitized = (name || "").replace(/\W+/g, "");
78
+ return {
79
+ name: sanitized,
80
+ version,
81
+ buildMeta,
82
+ warnings: [`Abnormal characters found in \`packageManager\` field, sanitizing from \`${name}\` to \`${sanitized}\``]
83
+ };
84
+ }
85
+ const packageManagers = [
86
+ {
87
+ name: "npm",
88
+ command: "npm",
89
+ lockFile: "package-lock.json"
90
+ },
91
+ {
92
+ name: "pnpm",
93
+ command: "pnpm",
94
+ lockFile: "pnpm-lock.yaml",
95
+ files: ["pnpm-workspace.yaml"]
96
+ },
97
+ {
98
+ name: "bun",
99
+ command: "bun",
100
+ lockFile: ["bun.lockb", "bun.lock"]
101
+ },
102
+ {
103
+ name: "yarn",
104
+ command: "yarn",
105
+ lockFile: "yarn.lock",
106
+ files: [".yarnrc.yml"]
107
+ },
108
+ {
109
+ name: "deno",
110
+ command: "deno",
111
+ lockFile: "deno.lock",
112
+ files: ["deno.json"]
113
+ }
114
+ ];
115
+ /**
116
+ * Detect the package manager used in a directory (and up) by checking various sources:
117
+ *
118
+ * 1. Use `packageManager` field from package.json
119
+ *
120
+ * 2. Known lock files and other files
121
+ */
122
+ async function detectPackageManager(cwd, options = {}) {
123
+ const detected = await findup(resolve$1(cwd || "."), async (path$1) => {
124
+ if (!options.ignorePackageJSON) {
125
+ const packageJSONPath = join(path$1, "package.json");
126
+ if (existsSync(packageJSONPath)) {
127
+ const packageJSON = JSON.parse(await readFile(packageJSONPath, "utf8"));
128
+ if (packageJSON?.packageManager) {
129
+ const { name, version = "0.0.0", buildMeta, warnings } = parsePackageManagerField(packageJSON.packageManager);
130
+ if (name) {
131
+ const majorVersion = version.split(".")[0];
132
+ const packageManager = packageManagers.find((pm) => pm.name === name && pm.majorVersion === majorVersion) || packageManagers.find((pm) => pm.name === name);
133
+ return {
134
+ name,
135
+ command: name,
136
+ version,
137
+ majorVersion,
138
+ buildMeta,
139
+ warnings,
140
+ files: packageManager?.files,
141
+ lockFile: packageManager?.lockFile
142
+ };
143
+ }
144
+ }
145
+ }
146
+ if (existsSync(join(path$1, "deno.json"))) return packageManagers.find((pm) => pm.name === "deno");
147
+ }
148
+ if (!options.ignoreLockFile) {
149
+ for (const packageManager of packageManagers) if ([packageManager.lockFile, packageManager.files].flat().filter(Boolean).some((file) => existsSync(resolve$1(path$1, file)))) return { ...packageManager };
150
+ }
151
+ }, { includeParentDirs: options.includeParentDirs ?? true });
152
+ if (!detected && !options.ignoreArgv) {
153
+ const scriptArg = process.argv[1];
154
+ if (scriptArg) {
155
+ for (const packageManager of packageManagers) if ((/* @__PURE__ */ new RegExp(`[/\\\\]\\.?${packageManager.command}`)).test(scriptArg)) return packageManager;
156
+ }
157
+ }
158
+ return detected;
159
+ }
160
+ /**
161
+ * Installs project dependencies.
162
+ *
163
+ * @param options - Options to pass to the API call.
164
+ * @param options.cwd - The directory to run the command in.
165
+ * @param options.silent - Whether to run the command in silent mode.
166
+ * @param options.packageManager - The package manager info to use (auto-detected).
167
+ * @param options.frozenLockFile - Whether to install dependencies with frozen lock file.
168
+ */
169
+ async function installDependencies(options = {}) {
170
+ const resolvedOptions = await resolveOperationOptions(options);
171
+ const commandArgs = options.frozenLockFile ? {
172
+ npm: ["ci"],
173
+ yarn: ["install", "--immutable"],
174
+ bun: ["install", "--frozen-lockfile"],
175
+ pnpm: ["install", "--frozen-lockfile"],
176
+ deno: ["install", "--frozen"]
177
+ }[resolvedOptions.packageManager.name] : ["install"];
178
+ if (options.ignoreWorkspace && resolvedOptions.packageManager.name === "pnpm") commandArgs.push("--ignore-workspace");
179
+ if (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, commandArgs, {
180
+ cwd: resolvedOptions.cwd,
181
+ silent: resolvedOptions.silent,
182
+ corepack: resolvedOptions.corepack
183
+ });
184
+ return { exec: {
185
+ command: resolvedOptions.packageManager.command,
186
+ args: commandArgs
187
+ } };
188
+ }
189
+
190
+ //#endregion
191
+ export { installDependencies };
192
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["normalize","x","resolve","path"],"sources":["../../../../../../../../../node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs"],"sourcesContent":["import { createRequire } from \"node:module\";\nimport * as fs from \"node:fs\";\nimport { existsSync } from \"node:fs\";\nimport { readFile } from \"node:fs/promises\";\nimport { join, normalize, resolve } from \"pathe\";\nimport { x } from \"tinyexec\";\nimport { join as join$1 } from \"node:path\";\n\n//#region src/_utils.ts\nasync function findup(cwd, match, options = {}) {\n\tconst segments = normalize(cwd).split(\"/\");\n\twhile (segments.length > 0) {\n\t\tconst result = await match(segments.join(\"/\") || \"/\");\n\t\tif (result || !options.includeParentDirs) return result;\n\t\tsegments.pop();\n\t}\n}\nasync function readPackageJSON(cwd) {\n\treturn findup(cwd, (p) => {\n\t\tconst pkgPath = join$1(p, \"package.json\");\n\t\tif (existsSync(pkgPath)) return readFile(pkgPath, \"utf8\").then((data) => JSON.parse(data));\n\t});\n}\nfunction cached(fn) {\n\tlet v;\n\treturn () => {\n\t\tif (v === void 0) v = fn().then((r) => {\n\t\t\tv = r;\n\t\t\treturn v;\n\t\t});\n\t\treturn v;\n\t};\n}\nconst hasCorepack = cached(async () => {\n\tif (globalThis.process?.versions?.webcontainer) return false;\n\ttry {\n\t\tconst { exitCode } = await x(\"corepack\", [\"--version\"]);\n\t\treturn exitCode === 0;\n\t} catch {\n\t\treturn false;\n\t}\n});\nasync function executeCommand(command, args, options = {}) {\n\tconst xArgs = command !== \"npm\" && command !== \"bun\" && command !== \"deno\" && options.corepack !== false && await hasCorepack() ? [\"corepack\", [command, ...args]] : [command, args];\n\tconst { exitCode, stdout, stderr } = await x(xArgs[0], xArgs[1], { nodeOptions: {\n\t\tcwd: resolve(options.cwd || process.cwd()),\n\t\tenv: options.env,\n\t\tstdio: options.silent ? \"pipe\" : \"inherit\"\n\t} });\n\tif (exitCode !== 0) throw new Error(`\\`${xArgs.flat().join(\" \")}\\` failed.${options.silent ? [\n\t\t\"\",\n\t\tstdout,\n\t\tstderr\n\t].join(\"\\n\") : \"\"}`);\n}\nconst NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG = \"No package manager auto-detected.\";\nasync function resolveOperationOptions(options = {}) {\n\tconst cwd = options.cwd || process.cwd();\n\tconst env = {\n\t\t...process.env,\n\t\t...options.env\n\t};\n\tconst packageManager = (typeof options.packageManager === \"string\" ? packageManagers.find((pm) => pm.name === options.packageManager) : options.packageManager) || await detectPackageManager(options.cwd || process.cwd());\n\tif (!packageManager) throw new Error(NO_PACKAGE_MANAGER_DETECTED_ERROR_MSG);\n\treturn {\n\t\tcwd,\n\t\tenv,\n\t\tsilent: options.silent ?? false,\n\t\tpackageManager,\n\t\tdev: options.dev ?? false,\n\t\tworkspace: options.workspace,\n\t\tglobal: options.global ?? false,\n\t\tdry: options.dry ?? false,\n\t\tcorepack: options.corepack ?? true\n\t};\n}\nfunction getWorkspaceArgs(options) {\n\tif (!options.workspace) return [];\n\tconst workspacePkg = typeof options.workspace === \"string\" && options.workspace !== \"\" ? options.workspace : void 0;\n\tif (options.packageManager.name === \"pnpm\") return workspacePkg ? [\"--filter\", workspacePkg] : [\"--workspace-root\"];\n\tif (options.packageManager.name === \"npm\") return workspacePkg ? [\"-w\", workspacePkg] : [\"--workspaces\"];\n\tif (options.packageManager.name === \"yarn\") if (!options.packageManager.majorVersion || options.packageManager.majorVersion === \"1\") return workspacePkg ? [\"--cwd\", workspacePkg] : [\"-W\"];\n\telse return workspacePkg ? [\"workspace\", workspacePkg] : [];\n\treturn [];\n}\nfunction getWorkspaceArgs2(options) {\n\tif (!options.workspace) return [];\n\tconst workspacePkg = typeof options.workspace === \"string\" && options.workspace !== \"\" ? options.workspace : void 0;\n\tif (options.packageManager === \"pnpm\") return workspacePkg ? [\"--filter\", workspacePkg] : [\"--workspace-root\"];\n\tif (options.packageManager === \"npm\") return workspacePkg ? [\"-w\", workspacePkg] : [\"--workspaces\"];\n\tif (options.packageManager === \"yarn\") if (options.yarnBerry) return workspacePkg ? [\"workspace\", workspacePkg] : [];\n\telse return workspacePkg ? [\"--cwd\", workspacePkg] : [\"-W\"];\n\treturn [];\n}\nfunction fmtCommand(args) {\n\treturn args.filter(Boolean).map((arg, i) => i > 0 && arg.includes(\" \") ? `\"${arg}\"` : arg).join(\" \");\n}\nfunction doesDependencyExist(name, options) {\n\tconst require = createRequire(options.cwd.endsWith(\"/\") ? options.cwd : options.cwd + \"/\");\n\ttry {\n\t\treturn require.resolve(name).startsWith(options.cwd);\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction parsePackageManagerField(packageManager) {\n\tconst [name, _version] = (packageManager || \"\").split(\"@\");\n\tconst [version, buildMeta] = _version?.split(\"+\") || [];\n\tif (name && name !== \"-\" && /^(@[a-z0-9-~][a-z0-9-._~]*\\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(name)) return {\n\t\tname,\n\t\tversion,\n\t\tbuildMeta\n\t};\n\tconst sanitized = (name || \"\").replace(/\\W+/g, \"\");\n\treturn {\n\t\tname: sanitized,\n\t\tversion,\n\t\tbuildMeta,\n\t\twarnings: [`Abnormal characters found in \\`packageManager\\` field, sanitizing from \\`${name}\\` to \\`${sanitized}\\``]\n\t};\n}\n\n//#endregion\n//#region src/package-manager.ts\nconst packageManagers = [\n\t{\n\t\tname: \"npm\",\n\t\tcommand: \"npm\",\n\t\tlockFile: \"package-lock.json\"\n\t},\n\t{\n\t\tname: \"pnpm\",\n\t\tcommand: \"pnpm\",\n\t\tlockFile: \"pnpm-lock.yaml\",\n\t\tfiles: [\"pnpm-workspace.yaml\"]\n\t},\n\t{\n\t\tname: \"bun\",\n\t\tcommand: \"bun\",\n\t\tlockFile: [\"bun.lockb\", \"bun.lock\"]\n\t},\n\t{\n\t\tname: \"yarn\",\n\t\tcommand: \"yarn\",\n\t\tlockFile: \"yarn.lock\",\n\t\tfiles: [\".yarnrc.yml\"]\n\t},\n\t{\n\t\tname: \"deno\",\n\t\tcommand: \"deno\",\n\t\tlockFile: \"deno.lock\",\n\t\tfiles: [\"deno.json\"]\n\t}\n];\n/**\n* Detect the package manager used in a directory (and up) by checking various sources:\n*\n* 1. Use `packageManager` field from package.json\n*\n* 2. Known lock files and other files\n*/\nasync function detectPackageManager(cwd, options = {}) {\n\tconst detected = await findup(resolve(cwd || \".\"), async (path) => {\n\t\tif (!options.ignorePackageJSON) {\n\t\t\tconst packageJSONPath = join(path, \"package.json\");\n\t\t\tif (existsSync(packageJSONPath)) {\n\t\t\t\tconst packageJSON = JSON.parse(await readFile(packageJSONPath, \"utf8\"));\n\t\t\t\tif (packageJSON?.packageManager) {\n\t\t\t\t\tconst { name, version = \"0.0.0\", buildMeta, warnings } = parsePackageManagerField(packageJSON.packageManager);\n\t\t\t\t\tif (name) {\n\t\t\t\t\t\tconst majorVersion = version.split(\".\")[0];\n\t\t\t\t\t\tconst packageManager = packageManagers.find((pm) => pm.name === name && pm.majorVersion === majorVersion) || packageManagers.find((pm) => pm.name === name);\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\tcommand: name,\n\t\t\t\t\t\t\tversion,\n\t\t\t\t\t\t\tmajorVersion,\n\t\t\t\t\t\t\tbuildMeta,\n\t\t\t\t\t\t\twarnings,\n\t\t\t\t\t\t\tfiles: packageManager?.files,\n\t\t\t\t\t\t\tlockFile: packageManager?.lockFile\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (existsSync(join(path, \"deno.json\"))) return packageManagers.find((pm) => pm.name === \"deno\");\n\t\t}\n\t\tif (!options.ignoreLockFile) {\n\t\t\tfor (const packageManager of packageManagers) if ([packageManager.lockFile, packageManager.files].flat().filter(Boolean).some((file) => existsSync(resolve(path, file)))) return { ...packageManager };\n\t\t}\n\t}, { includeParentDirs: options.includeParentDirs ?? true });\n\tif (!detected && !options.ignoreArgv) {\n\t\tconst scriptArg = process.argv[1];\n\t\tif (scriptArg) {\n\t\t\tfor (const packageManager of packageManagers) if ((/* @__PURE__ */ new RegExp(`[/\\\\\\\\]\\\\.?${packageManager.command}`)).test(scriptArg)) return packageManager;\n\t\t}\n\t}\n\treturn detected;\n}\n\n//#endregion\n//#region src/cmd.ts\n/**\n* Get the command to install dependencies with the package manager.\n*/\nfunction installDependenciesCommand(packageManager, options = {}) {\n\tconst installCmd = options.short ? \"i\" : \"install\";\n\tconst pmToFrozenLockfileInstallCommand = {\n\t\tnpm: [\"ci\"],\n\t\tyarn: [installCmd, \"--immutable\"],\n\t\tbun: [installCmd, \"--frozen-lockfile\"],\n\t\tpnpm: [installCmd, \"--frozen-lockfile\"],\n\t\tdeno: [installCmd, \"--frozen\"]\n\t};\n\treturn fmtCommand([packageManager, ...options.frozenLockFile ? pmToFrozenLockfileInstallCommand[packageManager] : [installCmd]]);\n}\n/**\n* Get the command to add a dependency with the package manager.\n*/\nfunction addDependencyCommand(packageManager, name, options = {}) {\n\tconst names = Array.isArray(name) ? name : [name];\n\tif (packageManager === \"deno\") {\n\t\tfor (let i = 0; i < names.length; i++) if (!/^(npm|jsr|file):.+$/.test(names[i])) names[i] = `npm:${names[i]}`;\n\t}\n\treturn fmtCommand([packageManager, ...(packageManager === \"yarn\" ? [\n\t\t...getWorkspaceArgs2({\n\t\t\tpackageManager,\n\t\t\t...options\n\t\t}),\n\t\toptions.global && !options.yarnBerry ? \"global\" : \"\",\n\t\t\"add\",\n\t\toptions.dev ? options.short ? \"-D\" : \"--dev\" : \"\",\n\t\t...names\n\t] : [\n\t\tpackageManager === \"npm\" ? options.short ? \"i\" : \"install\" : \"add\",\n\t\t...getWorkspaceArgs2({\n\t\t\tpackageManager,\n\t\t\t...options\n\t\t}),\n\t\toptions.dev ? options.short ? \"-D\" : \"--dev\" : \"\",\n\t\toptions.global ? \"-g\" : \"\",\n\t\t...names\n\t]).filter(Boolean)]);\n}\n/**\n* Get the command to run a script with the package manager.\n*/\nfunction runScriptCommand(packageManager, name, options = {}) {\n\treturn fmtCommand([packageManager, ...[\n\t\tpackageManager === \"deno\" ? \"task\" : \"run\",\n\t\tname,\n\t\t...options.args || []\n\t]]);\n}\n/**\n* Get the command to download and execute a package with the package manager.\n*/\nfunction dlxCommand(packageManager, name, options = {}) {\n\tconst command = {\n\t\tnpm: options.short ? \"npx\" : \"npm exec\",\n\t\tyarn: \"yarn dlx\",\n\t\tpnpm: options.short ? \"pnpx\" : \"pnpm dlx\",\n\t\tbun: options.short ? \"bunx\" : \"bun x\",\n\t\tdeno: \"deno run -A\"\n\t}[packageManager];\n\tlet packages = options.packages || [];\n\tif (packageManager === \"deno\") {\n\t\tif (!name.startsWith(\"npm:\")) name = `npm:${name}`;\n\t\tpackages = packages.map((pkg) => pkg.startsWith(\"npm:\") ? pkg : `npm:${pkg}`);\n\t}\n\tconst packageArgs = [];\n\tif (packages.length > 0 && packageManager !== \"deno\") {\n\t\tconst packageFlag = options.short && /^npm|yarn$/.test(packageManager) ? \"-p\" : \"--package\";\n\t\tfor (const pkg of packages) packageArgs.push(`${packageFlag}=${pkg}`);\n\t}\n\tconst argSep = packageManager === \"npm\" && !options.short ? \"--\" : \"\";\n\treturn fmtCommand([\n\t\tcommand,\n\t\t...packageArgs,\n\t\tname,\n\t\targSep,\n\t\t...options.args || []\n\t]);\n}\n\n//#endregion\n//#region src/api.ts\n/**\n* Installs project dependencies.\n*\n* @param options - Options to pass to the API call.\n* @param options.cwd - The directory to run the command in.\n* @param options.silent - Whether to run the command in silent mode.\n* @param options.packageManager - The package manager info to use (auto-detected).\n* @param options.frozenLockFile - Whether to install dependencies with frozen lock file.\n*/\nasync function installDependencies(options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tconst commandArgs = options.frozenLockFile ? {\n\t\tnpm: [\"ci\"],\n\t\tyarn: [\"install\", \"--immutable\"],\n\t\tbun: [\"install\", \"--frozen-lockfile\"],\n\t\tpnpm: [\"install\", \"--frozen-lockfile\"],\n\t\tdeno: [\"install\", \"--frozen\"]\n\t}[resolvedOptions.packageManager.name] : [\"install\"];\n\tif (options.ignoreWorkspace && resolvedOptions.packageManager.name === \"pnpm\") commandArgs.push(\"--ignore-workspace\");\n\tif (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, commandArgs, {\n\t\tcwd: resolvedOptions.cwd,\n\t\tsilent: resolvedOptions.silent,\n\t\tcorepack: resolvedOptions.corepack\n\t});\n\treturn { exec: {\n\t\tcommand: resolvedOptions.packageManager.command,\n\t\targs: commandArgs\n\t} };\n}\n/**\n* Adds dependency to the project.\n*\n* @param name - Name of the dependency to add.\n* @param options - Options to pass to the API call.\n* @param options.cwd - The directory to run the command in.\n* @param options.silent - Whether to run the command in silent mode.\n* @param options.packageManager - The package manager info to use (auto-detected).\n* @param options.dev - Whether to add the dependency as dev dependency.\n* @param options.workspace - The name of the workspace to use.\n* @param options.global - Whether to run the command in global mode.\n*/\nasync function addDependency(name, options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tconst names = Array.isArray(name) ? name : [name];\n\tif (resolvedOptions.packageManager.name === \"deno\") {\n\t\tfor (let i = 0; i < names.length; i++) if (!/^(npm|jsr|file):.+$/.test(names[i] || \"\")) names[i] = `npm:${names[i]}`;\n\t}\n\tif (names.length === 0) return {};\n\tconst args = (resolvedOptions.packageManager.name === \"yarn\" ? [\n\t\t...getWorkspaceArgs(resolvedOptions),\n\t\tresolvedOptions.global && resolvedOptions.packageManager.majorVersion === \"1\" ? \"global\" : \"\",\n\t\t\"add\",\n\t\tresolvedOptions.dev ? \"-D\" : \"\",\n\t\t...names\n\t] : [\n\t\tresolvedOptions.packageManager.name === \"npm\" ? \"install\" : \"add\",\n\t\t...getWorkspaceArgs(resolvedOptions),\n\t\tresolvedOptions.dev ? \"-D\" : \"\",\n\t\tresolvedOptions.global ? \"-g\" : \"\",\n\t\t...names\n\t]).filter(Boolean);\n\tif (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, args, {\n\t\tcwd: resolvedOptions.cwd,\n\t\tsilent: resolvedOptions.silent,\n\t\tcorepack: resolvedOptions.corepack\n\t});\n\tif (!resolvedOptions.dry && options.installPeerDependencies) {\n\t\tconst existingPkg = await readPackageJSON(resolvedOptions.cwd);\n\t\tconst peerDeps = [];\n\t\tconst peerDevDeps = [];\n\t\tfor (const _name of names) {\n\t\t\tconst pkgName = _name.match(/^(.[^@]+)/)?.[0];\n\t\t\tconst pkg = createRequire(join$1(resolvedOptions.cwd, \"/_.js\"))(`${pkgName}/package.json`);\n\t\t\tif (!pkg.peerDependencies || pkg.name !== pkgName) continue;\n\t\t\tfor (const [peerDependency, version] of Object.entries(pkg.peerDependencies)) {\n\t\t\t\tif (pkg.peerDependenciesMeta?.[peerDependency]?.optional) continue;\n\t\t\t\tif (existingPkg?.dependencies?.[peerDependency] || existingPkg?.devDependencies?.[peerDependency]) continue;\n\t\t\t\t(pkg.peerDependenciesMeta?.[peerDependency]?.dev ? peerDevDeps : peerDeps).push(`${peerDependency}@${version}`);\n\t\t\t}\n\t\t}\n\t\tif (peerDeps.length > 0) await addDependency(peerDeps, { ...resolvedOptions });\n\t\tif (peerDevDeps.length > 0) await addDevDependency(peerDevDeps, { ...resolvedOptions });\n\t}\n\treturn { exec: {\n\t\tcommand: resolvedOptions.packageManager.command,\n\t\targs\n\t} };\n}\n/**\n* Adds dev dependency to the project.\n*\n* @param name - Name of the dev dependency to add.\n* @param options - Options to pass to the API call.\n* @param options.cwd - The directory to run the command in.\n* @param options.silent - Whether to run the command in silent mode.\n* @param options.packageManager - The package manager info to use (auto-detected).\n* @param options.workspace - The name of the workspace to use.\n* @param options.global - Whether to run the command in global mode.\n*\n*/\nasync function addDevDependency(name, options = {}) {\n\treturn await addDependency(name, {\n\t\t...options,\n\t\tdev: true\n\t});\n}\n/**\n* Removes dependency from the project.\n*\n* @param name - Name of the dependency to remove.\n* @param options - Options to pass to the API call.\n* @param options.cwd - The directory to run the command in.\n* @param options.silent - Whether to run the command in silent mode.\n* @param options.packageManager - The package manager info to use (auto-detected).\n* @param options.dev - Whether to remove dev dependency.\n* @param options.workspace - The name of the workspace to use.\n* @param options.global - Whether to run the command in global mode.\n*/\nasync function removeDependency(name, options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tconst names = Array.isArray(name) ? name : [name];\n\tif (names.length === 0) return {};\n\tconst args = (resolvedOptions.packageManager.name === \"yarn\" ? [\n\t\tresolvedOptions.global && resolvedOptions.packageManager.majorVersion === \"1\" ? \"global\" : \"\",\n\t\t...getWorkspaceArgs(resolvedOptions),\n\t\t\"remove\",\n\t\tresolvedOptions.dev ? \"-D\" : \"\",\n\t\tresolvedOptions.global ? \"-g\" : \"\",\n\t\t...names\n\t] : [\n\t\tresolvedOptions.packageManager.name === \"npm\" ? \"uninstall\" : \"remove\",\n\t\t...getWorkspaceArgs(resolvedOptions),\n\t\tresolvedOptions.dev ? \"-D\" : \"\",\n\t\tresolvedOptions.global ? \"-g\" : \"\",\n\t\t...names\n\t]).filter(Boolean);\n\tif (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, args, {\n\t\tcwd: resolvedOptions.cwd,\n\t\tsilent: resolvedOptions.silent,\n\t\tcorepack: resolvedOptions.corepack\n\t});\n\treturn { exec: {\n\t\tcommand: resolvedOptions.packageManager.command,\n\t\targs\n\t} };\n}\n/**\n* Ensures dependency is installed.\n*\n* @param name - Name of the dependency.\n* @param options - Options to pass to the API call.\n* @param options.cwd - The directory to run the command in.\n* @param options.dev - Whether to install as dev dependency (if not already installed).\n* @param options.workspace - The name of the workspace to install dependency in (if not already installed).\n*/\nasync function ensureDependencyInstalled(name, options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tif (doesDependencyExist(name, resolvedOptions)) return true;\n\tawait addDependency(name, resolvedOptions);\n}\n/**\n* Dedupe dependencies in the project.\n*\n* @param options - Options to pass to the API call.\n* @param options.cwd - The directory to run the command in.\n* @param options.packageManager - The package manager info to use (auto-detected).\n* @param options.silent - Whether to run the command in silent mode.\n* @param options.recreateLockfile - Whether to recreate the lockfile instead of deduping.\n*/\nasync function dedupeDependencies(options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tconst isSupported = ![\"bun\", \"deno\"].includes(resolvedOptions.packageManager.name);\n\tif (options.recreateLockfile ?? !isSupported) {\n\t\tconst lockfiles = Array.isArray(resolvedOptions.packageManager.lockFile) ? resolvedOptions.packageManager.lockFile : [resolvedOptions.packageManager.lockFile];\n\t\tfor (const lockfile of lockfiles) if (lockfile) fs.rmSync(resolve(resolvedOptions.cwd, lockfile), { force: true });\n\t\treturn await installDependencies(resolvedOptions);\n\t}\n\tif (isSupported) {\n\t\tconst isyarnv1 = resolvedOptions.packageManager.name === \"yarn\" && resolvedOptions.packageManager.majorVersion === \"1\";\n\t\tif (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, [isyarnv1 ? \"install\" : \"dedupe\"], {\n\t\t\tcwd: resolvedOptions.cwd,\n\t\t\tsilent: resolvedOptions.silent,\n\t\t\tcorepack: resolvedOptions.corepack\n\t\t});\n\t\treturn { exec: {\n\t\t\tcommand: resolvedOptions.packageManager.command,\n\t\t\targs: [isyarnv1 ? \"install\" : \"dedupe\"]\n\t\t} };\n\t}\n\tthrow new Error(`Deduplication is not supported for ${resolvedOptions.packageManager.name}`);\n}\n/**\n* Runs a script defined in the package.json file.\n*\n* @param name - Name of the script to run.\n* @param options - Options to pass to the API call.\n* @param options.cwd - The directory to run the command in.\n* @param options.env - Additional environment variables to set for the script execution.\n* @param options.silent - Whether to run the command in silent mode.\n* @param options.packageManager - The package manager info to use (auto-detected).\n* @param options.args - Additional arguments to pass to the script.\n*/\nasync function runScript(name, options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tconst args = [\n\t\tresolvedOptions.packageManager.name === \"deno\" ? \"task\" : \"run\",\n\t\tname,\n\t\t...options.args || []\n\t];\n\tif (!resolvedOptions.dry) await executeCommand(resolvedOptions.packageManager.command, args, {\n\t\tcwd: resolvedOptions.cwd,\n\t\tenv: resolvedOptions.env,\n\t\tsilent: resolvedOptions.silent,\n\t\tcorepack: resolvedOptions.corepack\n\t});\n\treturn { exec: {\n\t\tcommand: resolvedOptions.packageManager.command,\n\t\targs\n\t} };\n}\n/**\n* Download and execute a package with the package manager.\n*\n* @param name - Name of the package to download and execute.\n* @param options - Options to pass to the API call.\n* @param options.cwd - The directory to run the command in.\n* @param options.env - Additional environment variables to set for the command execution.\n* @param options.silent - Whether to run the command in silent mode.\n* @param options.packageManager - The package manager info to use (auto-detected).\n* @param options.args - The arguments to pass to the command.\n* @param options.short - Whether to use the short version of the command (e.g. pnpx instead of pnpm dlx).\n* @param options.packages - The packages to pass to the command (e.g. npx --package=<package1> --package=<package2> <command>).\n*/\nasync function dlx(name, options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tconst [command, ...args] = dlxCommand(resolvedOptions.packageManager.name, name, {\n\t\targs: options.args,\n\t\tshort: options.short,\n\t\tpackages: options.packages\n\t}).split(\" \");\n\tif (!resolvedOptions.dry) await executeCommand(command, args, {\n\t\tcwd: resolvedOptions.cwd,\n\t\tenv: resolvedOptions.env,\n\t\tsilent: resolvedOptions.silent,\n\t\tcorepack: resolvedOptions.corepack\n\t});\n\treturn { exec: {\n\t\tcommand,\n\t\targs\n\t} };\n}\n\n//#endregion\nexport { addDependency, addDependencyCommand, addDevDependency, dedupeDependencies, detectPackageManager, dlx, dlxCommand, ensureDependencyInstalled, installDependencies, installDependenciesCommand, packageManagers, removeDependency, runScript, runScriptCommand };"],"x_google_ignoreList":[0],"mappings":"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"}
@@ -1,4 +1,4 @@
1
- const require_chunk = require('./chunk-CNVrAnJR.cjs');
1
+ const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.cjs');
2
2
  let node_crypto = require("node:crypto");
3
3
 
4
4
  //#region ../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs
@@ -10,4 +10,4 @@ function digest(t) {
10
10
 
11
11
  //#endregion
12
12
  export { digest };
13
- //# sourceMappingURL=dist-mV5Swt78.mjs.map
13
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../../../../../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs"],"sourcesContent":["import { createHash } from 'node:crypto';\n\nconst e=globalThis.process?.getBuiltinModule?.(\"crypto\")?.hash,r=\"sha256\",s=\"base64url\";function digest(t){if(e)return e(r,t,s);const o=createHash(r).update(t);return globalThis.process?.versions?.webcontainer?o.digest().toString(s):o.digest(s)}\n\nexport { digest };\n"],"x_google_ignoreList":[0],"mappings":";;;AAEA,MAAM,IAAE,WAAW,SAAS,mBAAmB,SAAS,EAAE,MAAK,IAAE,UAAS,IAAE;AAAY,SAAS,OAAO,GAAE;AAAC,KAAG,EAAE,QAAO,EAAE,GAAE,GAAE,EAAE;CAAC,MAAM,IAAE,WAAW,EAAE,CAAC,OAAO,EAAE;AAAC,QAAO,WAAW,SAAS,UAAU,eAAa,EAAE,QAAQ,CAAC,SAAS,EAAE,GAAC,EAAE,OAAO,EAAE"}
@@ -0,0 +1,3 @@
1
+ const require_index = require('./crypto/node/index.cjs');
2
+
3
+ exports.digest = require_index.digest;
@@ -0,0 +1,3 @@
1
+ import { digest } from "./crypto/node/index.mjs";
2
+
3
+ export { digest };
@@ -1,3 +1,4 @@
1
+
1
2
  //#region ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
2
3
  const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
3
4
  function normalizeWindowsPath(input = "") {
@@ -135,46 +136,10 @@ const basename = function(p, extension) {
135
136
  };
136
137
 
137
138
  //#endregion
138
- //#region ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
139
- function isPlainObject(value) {
140
- if (value === null || typeof value !== "object") return false;
141
- const prototype = Object.getPrototypeOf(value);
142
- if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) return false;
143
- if (Symbol.iterator in value) return false;
144
- if (Symbol.toStringTag in value) return Object.prototype.toString.call(value) === "[object Module]";
145
- return true;
146
- }
147
- function _defu(baseObject, defaults, namespace = ".", merger) {
148
- if (!isPlainObject(defaults)) return _defu(baseObject, {}, namespace, merger);
149
- const object = Object.assign({}, defaults);
150
- for (const key in baseObject) {
151
- if (key === "__proto__" || key === "constructor") continue;
152
- const value = baseObject[key];
153
- if (value === null || value === void 0) continue;
154
- if (merger && merger(object, key, value, namespace)) continue;
155
- if (Array.isArray(value) && Array.isArray(object[key])) object[key] = [...value, ...object[key]];
156
- else if (isPlainObject(value) && isPlainObject(object[key])) object[key] = _defu(value, object[key], (namespace ? `${namespace}.` : "") + key.toString(), merger);
157
- else object[key] = value;
158
- }
159
- return object;
160
- }
161
- function createDefu(merger) {
162
- return (...arguments_) => arguments_.reduce((p, c) => _defu(p, c, "", merger), {});
163
- }
164
- const defu = createDefu();
165
- const defuFn = createDefu((object, key, currentValue) => {
166
- if (object[key] !== void 0 && typeof currentValue === "function") {
167
- object[key] = currentValue(object[key]);
168
- return true;
169
- }
170
- });
171
- const defuArrayFn = createDefu((object, key, currentValue) => {
172
- if (Array.isArray(object[key]) && typeof currentValue === "function") {
173
- object[key] = currentValue(object[key]);
174
- return true;
175
- }
176
- });
177
-
178
- //#endregion
179
- export { isAbsolute as a, resolve as c, extname as i, basename as n, join as o, dirname as r, normalize as s, defu as t };
180
- //# sourceMappingURL=defu-DV5Grr85.mjs.map
139
+ exports.basename = basename;
140
+ exports.dirname = dirname;
141
+ exports.extname = extname;
142
+ exports.isAbsolute = isAbsolute;
143
+ exports.join = join;
144
+ exports.normalize = normalize;
145
+ exports.resolve = resolve;