@powerlines/plugin-env 0.16.56 → 0.16.58

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 (185) hide show
  1. package/dist/babel/index.d.cts +2 -0
  2. package/dist/babel/index.d.mts +2 -0
  3. package/dist/babel/plugin.d.cts +9 -0
  4. package/dist/babel/plugin.d.cts.map +1 -0
  5. package/dist/babel/plugin.d.mts +9 -0
  6. package/dist/babel/plugin.d.mts.map +1 -0
  7. package/dist/babel/plugin.mjs +2 -1
  8. package/dist/babel/plugin.mjs.map +1 -0
  9. package/dist/components/docs.d.cts +25 -0
  10. package/dist/components/docs.d.cts.map +1 -0
  11. package/dist/components/docs.d.mts +25 -0
  12. package/dist/components/docs.d.mts.map +1 -0
  13. package/dist/components/docs.mjs +2 -1
  14. package/dist/components/docs.mjs.map +1 -0
  15. package/dist/components/env-builtin.d.cts +23 -0
  16. package/dist/components/env-builtin.d.cts.map +1 -0
  17. package/dist/components/env-builtin.d.mts +23 -0
  18. package/dist/components/env-builtin.d.mts.map +1 -0
  19. package/dist/components/env-builtin.mjs +2 -1
  20. package/dist/components/env-builtin.mjs.map +1 -0
  21. package/dist/components/index.d.cts +3 -0
  22. package/dist/components/index.d.mts +3 -0
  23. package/dist/helpers/automd-generator.d.cts +15 -0
  24. package/dist/helpers/automd-generator.d.cts.map +1 -0
  25. package/dist/helpers/automd-generator.d.mts +15 -0
  26. package/dist/helpers/automd-generator.d.mts.map +1 -0
  27. package/dist/helpers/automd-generator.mjs +2 -1
  28. package/dist/helpers/automd-generator.mjs.map +1 -0
  29. package/dist/helpers/create-reflection-resource.d.cts +14 -0
  30. package/dist/helpers/create-reflection-resource.d.cts.map +1 -0
  31. package/dist/helpers/create-reflection-resource.d.mts +14 -0
  32. package/dist/helpers/create-reflection-resource.d.mts.map +1 -0
  33. package/dist/helpers/create-reflection-resource.mjs +2 -1
  34. package/dist/helpers/create-reflection-resource.mjs.map +1 -0
  35. package/dist/helpers/docs-helper.d.cts +14 -0
  36. package/dist/helpers/docs-helper.d.cts.map +1 -0
  37. package/dist/helpers/docs-helper.d.mts +14 -0
  38. package/dist/helpers/docs-helper.d.mts.map +1 -0
  39. package/dist/helpers/docs-helper.mjs +2 -1
  40. package/dist/helpers/docs-helper.mjs.map +1 -0
  41. package/dist/helpers/index.d.cts +7 -0
  42. package/dist/helpers/index.d.mts +7 -0
  43. package/dist/helpers/load.d.cts +36 -0
  44. package/dist/helpers/load.d.cts.map +1 -0
  45. package/dist/helpers/load.d.mts +36 -0
  46. package/dist/helpers/load.d.mts.map +1 -0
  47. package/dist/helpers/load.mjs +2 -1
  48. package/dist/helpers/load.mjs.map +1 -0
  49. package/dist/helpers/persistence.d.cts +85 -0
  50. package/dist/helpers/persistence.d.cts.map +1 -0
  51. package/dist/helpers/persistence.d.mts +85 -0
  52. package/dist/helpers/persistence.d.mts.map +1 -0
  53. package/dist/helpers/persistence.mjs +2 -1
  54. package/dist/helpers/persistence.mjs.map +1 -0
  55. package/dist/helpers/reflect.d.cts +69 -0
  56. package/dist/helpers/reflect.d.cts.map +1 -0
  57. package/dist/helpers/reflect.d.mts +69 -0
  58. package/dist/helpers/reflect.d.mts.map +1 -0
  59. package/dist/helpers/reflect.mjs +2 -1
  60. package/dist/helpers/reflect.mjs.map +1 -0
  61. package/dist/helpers/source-file-env.d.cts +9 -0
  62. package/dist/helpers/source-file-env.d.cts.map +1 -0
  63. package/dist/helpers/source-file-env.d.mts +9 -0
  64. package/dist/helpers/source-file-env.d.mts.map +1 -0
  65. package/dist/helpers/source-file-env.mjs +2 -1
  66. package/dist/helpers/source-file-env.mjs.map +1 -0
  67. package/dist/helpers/template-helpers.d.cts +16 -0
  68. package/dist/helpers/template-helpers.d.cts.map +1 -0
  69. package/dist/helpers/template-helpers.d.mts +16 -0
  70. package/dist/helpers/template-helpers.d.mts.map +1 -0
  71. package/dist/helpers/template-helpers.mjs +2 -1
  72. package/dist/helpers/template-helpers.mjs.map +1 -0
  73. package/dist/index.d.cts +18 -0
  74. package/dist/index.d.cts.map +1 -0
  75. package/dist/index.d.mts +18 -0
  76. package/dist/index.d.mts.map +1 -0
  77. package/dist/index.mjs +2 -1
  78. package/dist/index.mjs.map +1 -0
  79. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/parse-type-definition.mjs +2 -1
  80. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/parse-type-definition.mjs.map +1 -0
  81. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/to-array.mjs +2 -1
  82. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/to-array.mjs.map +1 -0
  83. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +2 -1
  84. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs.map +1 -0
  85. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +2 -1
  86. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs.map +1 -0
  87. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +2 -1
  88. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs.map +1 -0
  89. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +2 -1
  90. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs.map +1 -0
  91. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +2 -1
  92. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs.map +1 -0
  93. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +2 -1
  94. package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs.map +1 -0
  95. package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-parent-path.mjs +2 -1
  96. package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-parent-path.mjs.map +1 -0
  97. package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-type.mjs +2 -1
  98. package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-type.mjs.map +1 -0
  99. package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/join-paths.mjs +2 -1
  100. package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/join-paths.mjs.map +1 -0
  101. package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/regex.mjs +2 -1
  102. package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/regex.mjs.map +1 -0
  103. package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/slash.mjs +2 -1
  104. package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/slash.mjs.map +1 -0
  105. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs +2 -1
  106. package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs.map +1 -0
  107. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs +2 -1
  108. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs.map +1 -0
  109. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs +2 -1
  110. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs.map +1 -0
  111. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs +2 -1
  112. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs.map +1 -0
  113. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs +2 -1
  114. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs.map +1 -0
  115. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs +2 -1
  116. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs.map +1 -0
  117. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs +2 -1
  118. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs.map +1 -0
  119. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs +2 -1
  120. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs.map +1 -0
  121. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs +2 -1
  122. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs.map +1 -0
  123. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs +2 -1
  124. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs.map +1 -0
  125. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.mjs +2 -1
  126. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/toml.mjs.map +1 -0
  127. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs +2 -1
  128. package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs.map +1 -0
  129. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +2 -1
  130. package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs.map +1 -0
  131. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +2 -1
  132. package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs.map +1 -0
  133. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs +2 -1
  134. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs.map +1 -0
  135. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs +2 -1
  136. package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs.map +1 -0
  137. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +2 -1
  138. package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +1 -0
  139. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +2 -1
  140. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs.map +1 -0
  141. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +2 -1
  142. package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +1 -0
  143. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +2 -1
  144. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs.map +1 -0
  145. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +2 -1
  146. package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs.map +1 -0
  147. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +2 -1
  148. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +1 -0
  149. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +2 -1
  150. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs.map +1 -0
  151. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +2 -1
  152. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +1 -0
  153. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +2 -1
  154. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs.map +1 -0
  155. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +2 -1
  156. 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
  157. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +2 -1
  158. package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs.map +1 -0
  159. package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs +2 -1
  160. package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs.map +1 -0
  161. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +2 -1
  162. package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs.map +1 -0
  163. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +2 -1
  164. package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs.map +1 -0
  165. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +2 -1
  166. package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +1 -0
  167. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +2 -1
  168. package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs.map +1 -0
  169. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +2 -1
  170. package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs.map +1 -0
  171. package/dist/types/index.d.cts +3 -0
  172. package/dist/types/index.d.mts +3 -0
  173. package/dist/types/plugin.d.cts +168 -0
  174. package/dist/types/plugin.d.cts.map +1 -0
  175. package/dist/types/plugin.d.mts +168 -0
  176. package/dist/types/plugin.d.mts.map +1 -0
  177. package/dist/types/plugin.mjs +2 -1
  178. package/dist/types/plugin.mjs.map +1 -0
  179. package/dist/types/runtime.d.cts +792 -0
  180. package/dist/types/runtime.d.cts.map +1 -0
  181. package/dist/types/runtime.d.mts +792 -0
  182. package/dist/types/runtime.d.mts.map +1 -0
  183. package/dist/types/runtime.mjs +2 -1
  184. package/dist/types/runtime.mjs.map +1 -0
  185. package/package.json +9 -9
@@ -17,4 +17,5 @@ var require_node_fetch_native_DhEqb06g = /* @__PURE__ */ __commonJSMin(((exports
17
17
  //#endregion
18
18
  export default require_node_fetch_native_DhEqb06g();
19
19
 
20
- export { require_node_fetch_native_DhEqb06g };
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"}
@@ -14,4 +14,5 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14
14
  //#endregion
15
15
  export default require_lib();
16
16
 
17
- export { require_lib };
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"}
@@ -172,4 +172,5 @@ async function installDependencies(options = {}) {
172
172
  }
173
173
 
174
174
  //#endregion
175
- export { installDependencies };
175
+ export { installDependencies };
176
+ //# 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.5/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\";\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}\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];\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 (new RegExp(`[/\\\\\\\\]\\\\.?${packageManager.command}`).test(scriptArg)) return packageManager;\n\t\t}\n\t}\n\treturn detected;\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}\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}\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}\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}\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}\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\tconst _require = createRequire(join$1(resolvedOptions.cwd, \"/_.js\"));\n\t\tfor (const _name of names) {\n\t\t\tconst pkgName = _name.match(/^(.[^@]+)/)?.[0];\n\t\t\tconst pkg = await readPackageJSON(_require.resolve(pkgName));\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}\nasync function addDevDependency(name, options = {}) {\n\treturn await addDependency(name, {\n\t\t...options,\n\t\tdev: true\n\t});\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}\nasync function ensureDependencyInstalled(name, options = {}) {\n\tconst resolvedOptions = await resolveOperationOptions(options);\n\tif (doesDependencyExist(name, resolvedOptions)) return true;\n\tawait addDependency(name, resolvedOptions);\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}\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}\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}\nexport { addDependency, addDependencyCommand, addDevDependency, dedupeDependencies, detectPackageManager, dlx, dlxCommand, ensureDependencyInstalled, installDependencies, installDependenciesCommand, packageManagers, removeDependency, runScript, runScriptCommand };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAOA,eAAe,OAAO,KAAK,OAAO,UAAU,EAAE,EAAE;CAC/C,MAAM,WAAWA,YAAU,IAAI,CAAC,MAAM,IAAI;AAC1C,QAAO,SAAS,SAAS,GAAG;EAC3B,MAAM,SAAS,MAAM,MAAM,SAAS,KAAK,IAAI,IAAI,IAAI;AACrD,MAAI,UAAU,CAAC,QAAQ,kBAAmB,QAAO;AACjD,WAAS,KAAK;;;AAShB,SAAS,OAAO,IAAI;CACnB,IAAI;AACJ,cAAa;AACZ,MAAI,MAAM,KAAK,EAAG,KAAI,IAAI,CAAC,MAAM,MAAM;AACtC,OAAI;AACJ,UAAO;IACN;AACF,SAAO;;;AAGT,MAAM,cAAc,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a;EACnG,KAAK,gBAAgB;EACrB,QAAQ,gBAAgB;EACxB,UAAU,gBAAgB;EAC1B,CAAC;AACF,QAAO,EAAE,MAAM;EACd,SAAS,gBAAgB,eAAe;EACxC,MAAM;EACN,EAAE"}
@@ -9,4 +9,5 @@ function digest(t) {
9
9
  }
10
10
 
11
11
  //#endregion
12
- export { digest };
12
+ export { digest };
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"}
@@ -135,4 +135,5 @@ const basename = function(p, extension) {
135
135
  };
136
136
 
137
137
  //#endregion
138
- export { basename, dirname, extname, isAbsolute, join, normalize, resolve };
138
+ export { basename, dirname, extname, isAbsolute, join, normalize, resolve };
139
+ //# sourceMappingURL=pathe.M-eThtNZ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pathe.M-eThtNZ.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs"],"sourcesContent":["let _lazyMatch = () => { var __lib__=(()=>{var m=Object.defineProperty,V=Object.getOwnPropertyDescriptor,G=Object.getOwnPropertyNames,T=Object.prototype.hasOwnProperty,q=(r,e)=>{for(var n in e)m(r,n,{get:e[n],enumerable:true});},H=(r,e,n,a)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let t of G(e))!T.call(r,t)&&t!==n&&m(r,t,{get:()=>e[t],enumerable:!(a=V(e,t))||a.enumerable});return r},J=r=>H(m({},\"__esModule\",{value:true}),r),w={};q(w,{default:()=>re});var A=r=>Array.isArray(r),d=r=>typeof r==\"function\",Q=r=>r.length===0,W=r=>typeof r==\"number\",K=r=>typeof r==\"object\"&&r!==null,X=r=>r instanceof RegExp,b=r=>typeof r==\"string\",h=r=>r===void 0,Y=r=>{const e=new Map;return n=>{const a=e.get(n);if(a)return a;const t=r(n);return e.set(n,t),t}},rr=(r,e,n={})=>{const a={cache:{},input:r,index:0,indexMax:0,options:n,output:[]};if(v(e)(a)&&a.index===r.length)return a.output;throw new Error(`Failed to parse at index ${a.indexMax}`)},i=(r,e)=>A(r)?er(r,e):b(r)?ar(r,e):nr(r,e),er=(r,e)=>{const n={};for(const a of r){if(a.length!==1)throw new Error(`Invalid character: \"${a}\"`);const t=a.charCodeAt(0);n[t]=true;}return a=>{const t=a.index,o=a.input;for(;a.index<o.length&&o.charCodeAt(a.index)in n;)a.index+=1;const u=a.index;if(u>t){if(!h(e)&&!a.options.silent){const s=a.input.slice(t,u),c=d(e)?e(s,o,String(t)):e;h(c)||a.output.push(c);}a.indexMax=Math.max(a.indexMax,a.index);}return true}},nr=(r,e)=>{const n=r.source,a=r.flags.replace(/y|$/,\"y\"),t=new RegExp(n,a);return g(o=>{t.lastIndex=o.index;const u=t.exec(o.input);if(u){if(!h(e)&&!o.options.silent){const s=d(e)?e(...u,o.input,String(o.index)):e;h(s)||o.output.push(s);}return o.index+=u[0].length,o.indexMax=Math.max(o.indexMax,o.index),true}else return false})},ar=(r,e)=>n=>{if(n.input.startsWith(r,n.index)){if(!h(e)&&!n.options.silent){const t=d(e)?e(r,n.input,String(n.index)):e;h(t)||n.output.push(t);}return n.index+=r.length,n.indexMax=Math.max(n.indexMax,n.index),true}else return false},C=(r,e,n,a)=>{const t=v(r);return g(_(M(o=>{let u=0;for(;u<n;){const s=o.index;if(!t(o)||(u+=1,o.index===s))break}return u>=e})))},tr=(r,e)=>C(r,0,1),f=(r,e)=>C(r,0,1/0),x=(r,e)=>{const n=r.map(v);return g(_(M(a=>{for(let t=0,o=n.length;t<o;t++)if(!n[t](a))return false;return true})))},l=(r,e)=>{const n=r.map(v);return g(_(a=>{for(let t=0,o=n.length;t<o;t++)if(n[t](a))return true;return false}))},M=(r,e=false)=>{const n=v(r);return a=>{const t=a.index,o=a.output.length,u=n(a);return (!u||e)&&(a.index=t,a.output.length!==o&&(a.output.length=o)),u}},_=(r,e)=>{const n=v(r);return n},g=(()=>{let r=0;return e=>{const n=v(e),a=r+=1;return t=>{var o;if(t.options.memoization===false)return n(t);const u=t.index,s=(o=t.cache)[a]||(o[a]=new Map),c=s.get(u);if(c===false)return false;if(W(c))return t.index=c,true;if(c)return t.index=c.index,c.output?.length&&t.output.push(...c.output),true;{const Z=t.output.length;if(n(t)){const D=t.index,U=t.output.length;if(U>Z){const ee=t.output.slice(Z,U);s.set(u,{index:D,output:ee});}else s.set(u,D);return true}else return s.set(u,false),false}}}})(),E=r=>{let e;return n=>(e||(e=v(r())),e(n))},v=Y(r=>{if(d(r))return Q(r)?E(r):r;if(b(r)||X(r))return i(r);if(A(r))return x(r);if(K(r))return l(Object.values(r));throw new Error(\"Invalid rule\")}),P=\"abcdefghijklmnopqrstuvwxyz\",ir=r=>{let e=\"\";for(;r>0;){const n=(r-1)%26;e=P[n]+e,r=Math.floor((r-1)/26);}return e},O=r=>{let e=0;for(let n=0,a=r.length;n<a;n++)e=e*26+P.indexOf(r[n])+1;return e},S=(r,e)=>{if(e<r)return S(e,r);const n=[];for(;r<=e;)n.push(r++);return n},or=(r,e,n)=>S(r,e).map(a=>String(a).padStart(n,\"0\")),R=(r,e)=>S(O(r),O(e)).map(ir),p=r=>r,z=r=>ur(e=>rr(e,r,{memoization:false}).join(\"\")),ur=r=>{const e={};return n=>e[n]??(e[n]=r(n))},sr=i(/^\\*\\*\\/\\*$/,\".*\"),cr=i(/^\\*\\*\\/(\\*)?([ a-zA-Z0-9._-]+)$/,(r,e,n)=>`.*${e?\"\":\"(?:^|/)\"}${n.replaceAll(\".\",\"\\\\.\")}`),lr=i(/^\\*\\*\\/(\\*)?([ a-zA-Z0-9._-]*)\\{([ a-zA-Z0-9._-]+(?:,[ a-zA-Z0-9._-]+)*)\\}$/,(r,e,n,a)=>`.*${e?\"\":\"(?:^|/)\"}${n.replaceAll(\".\",\"\\\\.\")}(?:${a.replaceAll(\",\",\"|\").replaceAll(\".\",\"\\\\.\")})`),y=i(/\\\\./,p),pr=i(/[$.*+?^(){}[\\]\\|]/,r=>`\\\\${r}`),vr=i(/./,p),hr=i(/^(?:!!)*!(.*)$/,(r,e)=>`(?!^${L(e)}$).*?`),dr=i(/^(!!)+/,\"\"),fr=l([hr,dr]),xr=i(/\\/(\\*\\*\\/)+/,\"(?:/.+/|/)\"),gr=i(/^(\\*\\*\\/)+/,\"(?:^|.*/)\"),mr=i(/\\/(\\*\\*)$/,\"(?:/.*|$)\"),_r=i(/\\*\\*/,\".*\"),j=l([xr,gr,mr,_r]),Sr=i(/\\*\\/(?!\\*\\*\\/)/,\"[^/]*/\"),yr=i(/\\*/,\"[^/]*\"),N=l([Sr,yr]),k=i(\"?\",\"[^/]\"),$r=i(\"[\",p),wr=i(\"]\",p),Ar=i(/[!^]/,\"^/\"),br=i(/[a-z]-[a-z]|[0-9]-[0-9]/i,p),Cr=i(/[$.*+?^(){}[\\|]/,r=>`\\\\${r}`),Mr=i(/[^\\]]/,p),Er=l([y,Cr,br,Mr]),B=x([$r,tr(Ar),f(Er),wr]),Pr=i(\"{\",\"(?:\"),Or=i(\"}\",\")\"),Rr=i(/(\\d+)\\.\\.(\\d+)/,(r,e,n)=>or(+e,+n,Math.min(e.length,n.length)).join(\"|\")),zr=i(/([a-z]+)\\.\\.([a-z]+)/,(r,e,n)=>R(e,n).join(\"|\")),jr=i(/([A-Z]+)\\.\\.([A-Z]+)/,(r,e,n)=>R(e.toLowerCase(),n.toLowerCase()).join(\"|\").toUpperCase()),Nr=l([Rr,zr,jr]),I=x([Pr,Nr,Or]),kr=i(\"{\",\"(?:\"),Br=i(\"}\",\")\"),Ir=i(\",\",\"|\"),Fr=i(/[$.*+?^(){[\\]\\|]/,r=>`\\\\${r}`),Lr=i(/[^}]/,p),Zr=E(()=>F),Dr=l([j,N,k,B,I,Zr,y,Fr,Ir,Lr]),F=x([kr,f(Dr),Br]),Ur=f(l([sr,cr,lr,fr,j,N,k,B,I,F,y,pr,vr])),Vr=Ur,Gr=z(Vr),L=Gr,Tr=i(/\\\\./,p),qr=i(/./,p),Hr=i(/\\*\\*\\*+/,\"*\"),Jr=i(/([^/{[(!])\\*\\*/,(r,e)=>`${e}*`),Qr=i(/(^|.)\\*\\*(?=[^*/)\\]}])/,(r,e)=>`${e}*`),Wr=f(l([Tr,Hr,Jr,Qr,qr])),Kr=Wr,Xr=z(Kr),Yr=Xr,$=(r,e)=>{const n=Array.isArray(r)?r:[r];if(!n.length)return false;const a=n.map($.compile),t=n.every(s=>/(\\/(?:\\*\\*)?|\\[\\/\\])$/.test(s)),o=e.replace(/[\\\\\\/]+/g,\"/\").replace(/\\/$/,t?\"/\":\"\");return a.some(s=>s.test(o))};$.compile=r=>new RegExp(`^${L(Yr(r))}$`,\"s\");var re=$;return J(w)})();\n return __lib__.default || __lib__; };\nlet _match;\nconst zeptomatch = (path, pattern) => {\n if (!_match) {\n _match = _lazyMatch();\n _lazyMatch = null;\n }\n return _match(path, pattern);\n};\n\nconst _DRIVE_LETTER_START_RE = /^[A-Za-z]:\\//;\nfunction normalizeWindowsPath(input = \"\") {\n if (!input) {\n return input;\n }\n return input.replace(/\\\\/g, \"/\").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());\n}\n\nconst _UNC_REGEX = /^[/\\\\]{2}/;\nconst _IS_ABSOLUTE_RE = /^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;\nconst _DRIVE_LETTER_RE = /^[A-Za-z]:$/;\nconst _ROOT_FOLDER_RE = /^\\/([A-Za-z]:)?$/;\nconst _EXTNAME_RE = /.(\\.[^./]+|\\.)$/;\nconst _PATH_ROOT_RE = /^[/\\\\]|^[a-zA-Z]:[/\\\\]/;\nconst sep = \"/\";\nconst normalize = function(path) {\n if (path.length === 0) {\n return \".\";\n }\n path = normalizeWindowsPath(path);\n const isUNCPath = path.match(_UNC_REGEX);\n const isPathAbsolute = isAbsolute(path);\n const trailingSeparator = path[path.length - 1] === \"/\";\n path = normalizeString(path, !isPathAbsolute);\n if (path.length === 0) {\n if (isPathAbsolute) {\n return \"/\";\n }\n return trailingSeparator ? \"./\" : \".\";\n }\n if (trailingSeparator) {\n path += \"/\";\n }\n if (_DRIVE_LETTER_RE.test(path)) {\n path += \"/\";\n }\n if (isUNCPath) {\n if (!isPathAbsolute) {\n return `//./${path}`;\n }\n return `//${path}`;\n }\n return isPathAbsolute && !isAbsolute(path) ? `/${path}` : path;\n};\nconst join = function(...segments) {\n let path = \"\";\n for (const seg of segments) {\n if (!seg) {\n continue;\n }\n if (path.length > 0) {\n const pathTrailing = path[path.length - 1] === \"/\";\n const segLeading = seg[0] === \"/\";\n const both = pathTrailing && segLeading;\n if (both) {\n path += seg.slice(1);\n } else {\n path += pathTrailing || segLeading ? seg : `/${seg}`;\n }\n } else {\n path += seg;\n }\n }\n return normalize(path);\n};\nfunction cwd() {\n if (typeof process !== \"undefined\" && typeof process.cwd === \"function\") {\n return process.cwd().replace(/\\\\/g, \"/\");\n }\n return \"/\";\n}\nconst resolve = function(...arguments_) {\n arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));\n let resolvedPath = \"\";\n let resolvedAbsolute = false;\n for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {\n const path = index >= 0 ? arguments_[index] : cwd();\n if (!path || path.length === 0) {\n continue;\n }\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = isAbsolute(path);\n }\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);\n if (resolvedAbsolute && !isAbsolute(resolvedPath)) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : \".\";\n};\nfunction normalizeString(path, allowAboveRoot) {\n let res = \"\";\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let char = null;\n for (let index = 0; index <= path.length; ++index) {\n if (index < path.length) {\n char = path[index];\n } else if (char === \"/\") {\n break;\n } else {\n char = \"/\";\n }\n if (char === \"/\") {\n if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== \".\" || res[res.length - 2] !== \".\") {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(\"/\");\n if (lastSlashIndex === -1) {\n res = \"\";\n lastSegmentLength = 0;\n } else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(\"/\");\n }\n lastSlash = index;\n dots = 0;\n continue;\n } else if (res.length > 0) {\n res = \"\";\n lastSegmentLength = 0;\n lastSlash = index;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? \"/..\" : \"..\";\n lastSegmentLength = 2;\n }\n } else {\n if (res.length > 0) {\n res += `/${path.slice(lastSlash + 1, index)}`;\n } else {\n res = path.slice(lastSlash + 1, index);\n }\n lastSegmentLength = index - lastSlash - 1;\n }\n lastSlash = index;\n dots = 0;\n } else if (char === \".\" && dots !== -1) {\n ++dots;\n } else {\n dots = -1;\n }\n }\n return res;\n}\nconst isAbsolute = function(p) {\n return _IS_ABSOLUTE_RE.test(p);\n};\nconst toNamespacedPath = function(p) {\n return normalizeWindowsPath(p);\n};\nconst extname = function(p) {\n if (p === \"..\") return \"\";\n const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));\n return match && match[1] || \"\";\n};\nconst relative = function(from, to) {\n const _from = resolve(from).replace(_ROOT_FOLDER_RE, \"$1\").split(\"/\");\n const _to = resolve(to).replace(_ROOT_FOLDER_RE, \"$1\").split(\"/\");\n if (_to[0][1] === \":\" && _from[0][1] === \":\" && _from[0] !== _to[0]) {\n return _to.join(\"/\");\n }\n const _fromCopy = [..._from];\n for (const segment of _fromCopy) {\n if (_to[0] !== segment) {\n break;\n }\n _from.shift();\n _to.shift();\n }\n return [..._from.map(() => \"..\"), ..._to].join(\"/\");\n};\nconst dirname = function(p) {\n const segments = normalizeWindowsPath(p).replace(/\\/$/, \"\").split(\"/\").slice(0, -1);\n if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {\n segments[0] += \"/\";\n }\n return segments.join(\"/\") || (isAbsolute(p) ? \"/\" : \".\");\n};\nconst format = function(p) {\n const ext = p.ext ? p.ext.startsWith(\".\") ? p.ext : `.${p.ext}` : \"\";\n const segments = [p.root, p.dir, p.base ?? (p.name ?? \"\") + ext].filter(\n Boolean\n );\n return normalizeWindowsPath(\n p.root ? resolve(...segments) : segments.join(\"/\")\n );\n};\nconst basename = function(p, extension) {\n const segments = normalizeWindowsPath(p).split(\"/\");\n let lastSegment = \"\";\n for (let i = segments.length - 1; i >= 0; i--) {\n const val = segments[i];\n if (val) {\n lastSegment = val;\n break;\n }\n }\n return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;\n};\nconst parse = function(p) {\n const root = _PATH_ROOT_RE.exec(p)?.[0]?.replace(/\\\\/g, \"/\") || \"\";\n const base = basename(p);\n const extension = extname(base);\n return {\n root,\n dir: dirname(p),\n base,\n ext: extension,\n name: base.slice(0, base.length - extension.length)\n };\n};\nconst matchesGlob = (path, pattern) => {\n return zeptomatch(pattern, normalize(path));\n};\n\nconst _path = {\n __proto__: null,\n basename: basename,\n dirname: dirname,\n extname: extname,\n format: format,\n isAbsolute: isAbsolute,\n join: join,\n matchesGlob: matchesGlob,\n normalize: normalize,\n normalizeString: normalizeString,\n parse: parse,\n relative: relative,\n resolve: resolve,\n sep: sep,\n toNamespacedPath: toNamespacedPath\n};\n\nexport { _path as _, normalizeString as a, relative as b, basename as c, dirname as d, extname as e, format as f, normalizeWindowsPath as g, isAbsolute as i, join as j, matchesGlob as m, normalize as n, parse as p, resolve as r, sep as s, toNamespacedPath as t };\n"],"x_google_ignoreList":[0],"mappings":";AAWA,MAAM,yBAAyB;AAC/B,SAAS,qBAAqB,QAAQ,IAAI;AACxC,KAAI,CAAC,MACH,QAAO;AAET,QAAO,MAAM,QAAQ,OAAO,IAAI,CAAC,QAAQ,yBAAyB,MAAM,EAAE,aAAa,CAAC;;AAG1F,MAAM,aAAa;AACnB,MAAM,kBAAkB;AACxB,MAAM,mBAAmB;AAEzB,MAAM,cAAc;AAGpB,MAAM,YAAY,SAAS,MAAM;AAC/B,KAAI,KAAK,WAAW,EAClB,QAAO;AAET,QAAO,qBAAqB,KAAK;CACjC,MAAM,YAAY,KAAK,MAAM,WAAW;CACxC,MAAM,iBAAiB,WAAW,KAAK;CACvC,MAAM,oBAAoB,KAAK,KAAK,SAAS,OAAO;AACpD,QAAO,gBAAgB,MAAM,CAAC,eAAe;AAC7C,KAAI,KAAK,WAAW,GAAG;AACrB,MAAI,eACF,QAAO;AAET,SAAO,oBAAoB,OAAO;;AAEpC,KAAI,kBACF,SAAQ;AAEV,KAAI,iBAAiB,KAAK,KAAK,CAC7B,SAAQ;AAEV,KAAI,WAAW;AACb,MAAI,CAAC,eACH,QAAO,OAAO;AAEhB,SAAO,KAAK;;AAEd,QAAO,kBAAkB,CAAC,WAAW,KAAK,GAAG,IAAI,SAAS;;AAE5D,MAAM,OAAO,SAAS,GAAG,UAAU;CACjC,IAAI,OAAO;AACX,MAAK,MAAM,OAAO,U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,SAAS,GAAG,WAAW;CACtC,MAAM,WAAW,qBAAqB,EAAE,CAAC,MAAM,IAAI;CACnD,IAAI,cAAc;AAClB,MAAK,IAAI,IAAI,SAAS,SAAS,GAAG,KAAK,GAAG,KAAK;EAC7C,MAAM,MAAM,SAAS;AACrB,MAAI,KAAK;AACP,iBAAc;AACd;;;AAGJ,QAAO,aAAa,YAAY,SAAS,UAAU,GAAG,YAAY,MAAM,GAAG,CAAC,UAAU,OAAO,GAAG"}
@@ -123,4 +123,5 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
123
123
  }
124
124
 
125
125
  //#endregion
126
- export { findWorkspaceDir, readPackageJSON };
126
+ export { findWorkspaceDir, readPackageJSON };
127
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["r","parseJSON","parseJSONC"],"sources":["../../../../../../../../../node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs"],"sourcesContent":["import { statSync, promises } from 'node:fs';\nimport { resolve, join, normalize, isAbsolute, dirname } from 'pathe';\nimport { parseJSONC, stringifyJSONC, parseJSON, stringifyJSON, parseJSON5, parseYAML, stringifyJSON5, stringifyYAML } from 'confbox';\nimport { resolveModulePath } from 'exsolve';\nimport { fileURLToPath } from 'node:url';\nimport { readFile, writeFile } from 'node:fs/promises';\nimport { parseINI, stringifyINI } from 'confbox/ini';\n\nconst defaultFindOptions = {\n startingFrom: \".\",\n rootPattern: /^node_modules$/,\n reverse: false,\n test: (filePath) => {\n try {\n if (statSync(filePath).isFile()) {\n return true;\n }\n } catch {\n }\n }\n};\nasync function findFile(filename, _options = {}) {\n const filenames = Array.isArray(filename) ? filename : [filename];\n const options = { ...defaultFindOptions, ..._options };\n const basePath = resolve(options.startingFrom);\n const leadingSlash = basePath[0] === \"/\";\n const segments = basePath.split(\"/\").filter(Boolean);\n if (filenames.includes(segments.at(-1)) && await options.test(basePath)) {\n return basePath;\n }\n if (leadingSlash) {\n segments[0] = \"/\" + segments[0];\n }\n let root = segments.findIndex((r) => r.match(options.rootPattern));\n if (root === -1) {\n root = 0;\n }\n if (options.reverse) {\n for (let index = root + 1; index <= segments.length; index++) {\n for (const filename2 of filenames) {\n const filePath = join(...segments.slice(0, index), filename2);\n if (await options.test(filePath)) {\n return filePath;\n }\n }\n }\n } else {\n for (let index = segments.length; index > root; index--) {\n for (const filename2 of filenames) {\n const filePath = join(...segments.slice(0, index), filename2);\n if (await options.test(filePath)) {\n return filePath;\n }\n }\n }\n }\n throw new Error(\n `Cannot find matching ${filename} in ${options.startingFrom} or parent directories`\n );\n}\nfunction findNearestFile(filename, options = {}) {\n return findFile(filename, options);\n}\nfunction findFarthestFile(filename, options = {}) {\n return findFile(filename, { ...options, reverse: true });\n}\n\nfunction _resolvePath(id, opts = {}) {\n if (id instanceof URL || id.startsWith(\"file://\")) {\n return normalize(fileURLToPath(id));\n }\n if (isAbsolute(id)) {\n return normalize(id);\n }\n return resolveModulePath(id, {\n ...opts,\n from: opts.from || opts.parent || opts.url\n });\n}\n\nconst FileCache$1 = /* @__PURE__ */ new Map();\nfunction defineTSConfig(tsconfig) {\n return tsconfig;\n}\nasync function readTSConfig(id, options = {}) {\n const resolvedPath = await resolveTSConfig(id, options);\n const cache = options.cache && typeof options.cache !== \"boolean\" ? options.cache : FileCache$1;\n if (options.cache && cache.has(resolvedPath)) {\n return cache.get(resolvedPath);\n }\n const text = await promises.readFile(resolvedPath, \"utf8\");\n const parsed = parseJSONC(text);\n cache.set(resolvedPath, parsed);\n return parsed;\n}\nasync function writeTSConfig(path, tsconfig) {\n await promises.writeFile(path, stringifyJSONC(tsconfig));\n}\nasync function resolveTSConfig(id = process.cwd(), options = {}) {\n return findNearestFile(\"tsconfig.json\", {\n ...options,\n startingFrom: _resolvePath(id, options)\n });\n}\n\nconst lockFiles = [\n \"yarn.lock\",\n \"package-lock.json\",\n \"pnpm-lock.yaml\",\n \"npm-shrinkwrap.json\",\n \"bun.lockb\",\n \"bun.lock\",\n \"deno.lock\"\n];\nconst packageFiles = [\"package.json\", \"package.json5\", \"package.yaml\"];\nconst workspaceFiles = [\n \"pnpm-workspace.yaml\",\n \"lerna.json\",\n \"turbo.json\",\n \"rush.json\",\n \"deno.json\",\n \"deno.jsonc\"\n];\nconst FileCache = /* @__PURE__ */ new Map();\nfunction definePackageJSON(pkg) {\n return pkg;\n}\nasync function findPackage(id = process.cwd(), options = {}) {\n return findNearestFile(packageFiles, {\n ...options,\n startingFrom: _resolvePath(id, options)\n });\n}\nasync function readPackage(id, options = {}) {\n const resolvedPath = await findPackage(id, options);\n const cache = options.cache && typeof options.cache !== \"boolean\" ? options.cache : FileCache;\n if (options.cache && cache.has(resolvedPath)) {\n return cache.get(resolvedPath);\n }\n const blob = await promises.readFile(resolvedPath, \"utf8\");\n let parsed;\n if (resolvedPath.endsWith(\".json5\")) {\n parsed = parseJSON5(blob);\n } else if (resolvedPath.endsWith(\".yaml\")) {\n parsed = parseYAML(blob);\n } else {\n try {\n parsed = parseJSON(blob);\n } catch {\n parsed = parseJSONC(blob);\n }\n }\n cache.set(resolvedPath, parsed);\n return parsed;\n}\nasync function writePackage(path, pkg) {\n let content;\n if (path.endsWith(\".json5\")) {\n content = stringifyJSON5(pkg);\n } else if (path.endsWith(\".yaml\")) {\n content = stringifyYAML(pkg);\n } else {\n content = stringifyJSON(pkg);\n }\n await promises.writeFile(path, content);\n}\nasync function readPackageJSON(id, options = {}) {\n const resolvedPath = await resolvePackageJSON(id, options);\n const cache = options.cache && typeof options.cache !== \"boolean\" ? options.cache : FileCache;\n if (options.cache && cache.has(resolvedPath)) {\n return cache.get(resolvedPath);\n }\n const blob = await promises.readFile(resolvedPath, \"utf8\");\n let parsed;\n try {\n parsed = parseJSON(blob);\n } catch {\n parsed = parseJSONC(blob);\n }\n cache.set(resolvedPath, parsed);\n return parsed;\n}\nasync function writePackageJSON(path, pkg) {\n await promises.writeFile(path, stringifyJSON(pkg));\n}\nasync function resolvePackageJSON(id = process.cwd(), options = {}) {\n return findNearestFile(\"package.json\", {\n ...options,\n startingFrom: _resolvePath(id, options)\n });\n}\nasync function resolveLockfile(id = process.cwd(), options = {}) {\n return findNearestFile(lockFiles, {\n ...options,\n startingFrom: _resolvePath(id, options)\n });\n}\nconst workspaceTests = {\n workspaceFile: (opts) => findFile(workspaceFiles, opts).then((r) => dirname(r)),\n gitConfig: (opts) => findFile(\".git/config\", opts).then((r) => resolve(r, \"../..\")),\n lockFile: (opts) => findFile(lockFiles, opts).then((r) => dirname(r)),\n packageJson: (opts) => findFile(packageFiles, opts).then((r) => dirname(r))\n};\nasync function findWorkspaceDir(id = process.cwd(), options = {}) {\n const startingFrom = _resolvePath(id, options);\n const tests = options.tests || [\"workspaceFile\", \"gitConfig\", \"lockFile\", \"packageJson\"];\n for (const testName of tests) {\n const test = workspaceTests[testName];\n if (options[testName] === false || !test) {\n continue;\n }\n const direction = options[testName] || (testName === \"gitConfig\" ? \"closest\" : \"furthest\");\n const detected = await test({\n ...options,\n startingFrom,\n reverse: direction === \"furthest\"\n }).catch(() => {\n });\n if (detected) {\n return detected;\n }\n }\n throw new Error(`Cannot detect workspace root from ${id}`);\n}\nasync function updatePackage(id, callback, options = {}) {\n const resolvedPath = await findPackage(id, options);\n const pkg = await readPackage(id, options);\n const proxy = new Proxy(pkg, {\n get(target, prop) {\n if (typeof prop === \"string\" && objectKeys.has(prop) && !Object.hasOwn(target, prop)) {\n target[prop] = {};\n }\n return Reflect.get(target, prop);\n }\n });\n const updated = await callback(proxy) || pkg;\n await writePackage(resolvedPath, updated);\n}\nfunction sortPackage(pkg) {\n const sorted = {};\n const originalKeys = Object.keys(pkg);\n const knownKeysPresent = defaultFieldOrder.filter(\n (key) => Object.hasOwn(pkg, key)\n );\n for (const key of originalKeys) {\n const currentIndex = knownKeysPresent.indexOf(key);\n if (currentIndex === -1) {\n sorted[key] = pkg[key];\n continue;\n }\n for (let i = 0; i <= currentIndex; i++) {\n const knownKey = knownKeysPresent[i];\n if (!Object.hasOwn(sorted, knownKey)) {\n sorted[knownKey] = pkg[knownKey];\n }\n }\n }\n for (const key of [...dependencyKeys, \"scripts\"]) {\n const value = sorted[key];\n if (isObject(value)) {\n sorted[key] = sortObject(value);\n }\n }\n return sorted;\n}\nfunction normalizePackage(pkg) {\n const normalized = sortPackage(pkg);\n for (const key of dependencyKeys) {\n if (!Object.hasOwn(normalized, key)) {\n continue;\n }\n const value = normalized[key];\n if (!isObject(value)) {\n delete normalized[key];\n }\n }\n return normalized;\n}\nfunction isObject(value) {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\nfunction sortObject(obj) {\n return Object.fromEntries(\n Object.entries(obj).sort(([a], [b]) => a.localeCompare(b))\n );\n}\nconst dependencyKeys = [\n \"dependencies\",\n \"devDependencies\",\n \"optionalDependencies\",\n \"peerDependencies\"\n];\nconst objectKeys = /* @__PURE__ */ new Set([\n \"typesVersions\",\n \"scripts\",\n \"resolutions\",\n \"overrides\",\n \"dependencies\",\n \"devDependencies\",\n \"dependenciesMeta\",\n \"peerDependencies\",\n \"peerDependenciesMeta\",\n \"optionalDependencies\",\n \"engines\",\n \"publishConfig\"\n]);\nconst defaultFieldOrder = [\n \"$schema\",\n \"name\",\n \"version\",\n \"private\",\n \"description\",\n \"keywords\",\n \"homepage\",\n \"bugs\",\n \"repository\",\n \"funding\",\n \"license\",\n \"author\",\n \"sideEffects\",\n \"type\",\n \"imports\",\n \"exports\",\n \"main\",\n \"module\",\n \"browser\",\n \"types\",\n \"typesVersions\",\n \"typings\",\n \"bin\",\n \"man\",\n \"files\",\n \"workspaces\",\n \"scripts\",\n \"resolutions\",\n \"overrides\",\n \"dependencies\",\n \"devDependencies\",\n \"dependenciesMeta\",\n \"peerDependencies\",\n \"peerDependenciesMeta\",\n \"optionalDependencies\",\n \"bundledDependencies\",\n \"bundleDependencies\",\n \"packageManager\",\n \"engines\",\n \"publishConfig\"\n];\n\nfunction defineGitConfig(config) {\n return config;\n}\nasync function resolveGitConfig(dir, opts) {\n return findNearestFile(\".git/config\", { ...opts, startingFrom: dir });\n}\nasync function readGitConfig(dir, opts) {\n const path = await resolveGitConfig(dir, opts);\n const ini = await readFile(path, \"utf8\");\n return parseGitConfig(ini);\n}\nasync function writeGitConfig(path, config) {\n await writeFile(path, stringifyGitConfig(config));\n}\nfunction parseGitConfig(ini) {\n return parseINI(ini.replaceAll(/^\\[(\\w+) \"(.+)\"\\]$/gm, \"[$1.$2]\"));\n}\nfunction stringifyGitConfig(config) {\n return stringifyINI(config).replaceAll(/^\\[(\\w+)\\.(\\w+)\\]$/gm, '[$1 \"$2\"]');\n}\n\nexport { defineGitConfig, definePackageJSON, defineTSConfig, findFarthestFile, findFile, findNearestFile, findPackage, findWorkspaceDir, normalizePackage, parseGitConfig, readGitConfig, readPackage, readPackageJSON, readTSConfig, resolveGitConfig, resolveLockfile, resolvePackageJSON, resolveTSConfig, sortPackage, stringifyGitConfig, updatePackage, writeGitConfig, writePackage, writePackageJSON, writeTSConfig };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AAQA,MAAM,qBAAqB;CACzB,cAAc;CACd,aAAa;CACb,SAAS;CACT,OAAO,aAAa;AAClB,MAAI;AACF,OAAI,SAAS,SAAS,CAAC,QAAQ,CAC7B,QAAO;UAEH;;CAGX;AACD,eAAe,SAAS,UAAU,WAAW,EAAE,EAAE;CAC/C,MAAM,YAAY,MAAM,QAAQ,SAAS,GAAG,WAAW,CAAC,SAAS;CACjE,MAAM,UAAU;EAAE,GAAG;EAAoB,GAAG;EAAU;CACtD,MAAM,WAAW,QAAQ,QAAQ,aAAa;CAC9C,MAAM,eAAe,SAAS,OAAO;CACrC,MAAM,WAAW,SAAS,MAAM,IAAI,CAAC,OAAO,QAAQ;AACpD,KAAI,UAAU,SAAS,SAAS,GAAG,GAAG,CAAC,IAAI,MAAM,QAAQ,KAAK,SAAS,CACrE,QAAO;AAET,KAAI,aACF,UAAS,KAAK,MAAM,SAAS;CAE/B,IAAI,OAAO,SAAS,WAAW,QA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@ -133,4 +133,5 @@ function readUser(options) {
133
133
  }
134
134
 
135
135
  //#endregion
136
- export { read, readUser };
136
+ export { read, readUser };
137
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":["delimiter","target","result","path"],"sources":["../../../../../../../../../node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs"],"sourcesContent":["import { existsSync, readFileSync, writeFileSync } from 'node:fs';\nimport { resolve } from 'node:path';\nimport { homedir } from 'node:os';\nimport destr from 'destr';\nimport { defu } from 'defu';\n\nfunction isBuffer (obj) {\n return obj &&\n obj.constructor &&\n (typeof obj.constructor.isBuffer === 'function') &&\n obj.constructor.isBuffer(obj)\n}\n\nfunction keyIdentity (key) {\n return key\n}\n\nfunction flatten (target, opts) {\n opts = opts || {};\n\n const delimiter = opts.delimiter || '.';\n const maxDepth = opts.maxDepth;\n const transformKey = opts.transformKey || keyIdentity;\n const output = {};\n\n function step (object, prev, currentDepth) {\n currentDepth = currentDepth || 1;\n Object.keys(object).forEach(function (key) {\n const value = object[key];\n const isarray = opts.safe && Array.isArray(value);\n const type = Object.prototype.toString.call(value);\n const isbuffer = isBuffer(value);\n const isobject = (\n type === '[object Object]' ||\n type === '[object Array]'\n );\n\n const newKey = prev\n ? prev + delimiter + transformKey(key)\n : transformKey(key);\n\n if (!isarray && !isbuffer && isobject && Object.keys(value).length &&\n (!opts.maxDepth || currentDepth < maxDepth)) {\n return step(value, newKey, currentDepth + 1)\n }\n\n output[newKey] = value;\n });\n }\n\n step(target);\n\n return output\n}\n\nfunction unflatten (target, opts) {\n opts = opts || {};\n\n const delimiter = opts.delimiter || '.';\n const overwrite = opts.overwrite || false;\n const transformKey = opts.transformKey || keyIdentity;\n const result = {};\n\n const isbuffer = isBuffer(target);\n if (isbuffer || Object.prototype.toString.call(target) !== '[object Object]') {\n return target\n }\n\n // safely ensure that the key is\n // an integer.\n function getkey (key) {\n const parsedKey = Number(key);\n\n return (\n isNaN(parsedKey) ||\n key.indexOf('.') !== -1 ||\n opts.object\n )\n ? key\n : parsedKey\n }\n\n function addKeys (keyPrefix, recipient, target) {\n return Object.keys(target).reduce(function (result, key) {\n result[keyPrefix + delimiter + key] = target[key];\n\n return result\n }, recipient)\n }\n\n function isEmpty (val) {\n const type = Object.prototype.toString.call(val);\n const isArray = type === '[object Array]';\n const isObject = type === '[object Object]';\n\n if (!val) {\n return true\n } else if (isArray) {\n return !val.length\n } else if (isObject) {\n return !Object.keys(val).length\n }\n }\n\n target = Object.keys(target).reduce(function (result, key) {\n const type = Object.prototype.toString.call(target[key]);\n const isObject = (type === '[object Object]' || type === '[object Array]');\n if (!isObject || isEmpty(target[key])) {\n result[key] = target[key];\n return result\n } else {\n return addKeys(\n key,\n result,\n flatten(target[key], opts)\n )\n }\n }, {});\n\n Object.keys(target).forEach(function (key) {\n const split = key.split(delimiter).map(transformKey);\n let key1 = getkey(split.shift());\n let key2 = getkey(split[0]);\n let recipient = result;\n\n while (key2 !== undefined) {\n if (key1 === '__proto__') {\n return\n }\n\n const type = Object.prototype.toString.call(recipient[key1]);\n const isobject = (\n type === '[object Object]' ||\n type === '[object Array]'\n );\n\n // do not write over falsey, non-undefined values if overwrite is false\n if (!overwrite && !isobject && typeof recipient[key1] !== 'undefined') {\n return\n }\n\n if ((overwrite && !isobject) || (!overwrite && recipient[key1] == null)) {\n recipient[key1] = (\n typeof key2 === 'number' &&\n !opts.object\n ? []\n : {}\n );\n }\n\n recipient = recipient[key1];\n if (split.length > 0) {\n key1 = getkey(split.shift());\n key2 = getkey(split[0]);\n }\n }\n\n // unflatten again for 'messy objects'\n recipient[key1] = unflatten(target[key], opts);\n });\n\n return result\n}\n\nconst RE_KEY_VAL = /^\\s*([^\\s=]+)\\s*=\\s*(.*)?\\s*$/;\nconst RE_LINES = /\\n|\\r|\\r\\n/;\nconst defaults = {\n name: \".conf\",\n dir: process.cwd(),\n flat: false\n};\nfunction withDefaults(options) {\n if (typeof options === \"string\") {\n options = { name: options };\n }\n return { ...defaults, ...options };\n}\nfunction parse(contents, options = {}) {\n const config = {};\n const lines = contents.split(RE_LINES);\n for (const line of lines) {\n const match = line.match(RE_KEY_VAL);\n if (!match) {\n continue;\n }\n const key = match[1];\n if (!key || key === \"__proto__\" || key === \"constructor\") {\n continue;\n }\n const value = destr(\n (match[2] || \"\").trim()\n /* val */\n );\n if (key.endsWith(\"[]\")) {\n const nkey = key.slice(0, Math.max(0, key.length - 2));\n config[nkey] = (config[nkey] || []).concat(value);\n continue;\n }\n config[key] = value;\n }\n return options.flat ? config : unflatten(config, { overwrite: true });\n}\nfunction parseFile(path, options) {\n if (!existsSync(path)) {\n return {};\n }\n return parse(readFileSync(path, \"utf8\"), options);\n}\nfunction read(options) {\n options = withDefaults(options);\n return parseFile(resolve(options.dir, options.name), options);\n}\nfunction readUser(options) {\n options = withDefaults(options);\n options.dir = process.env.XDG_CONFIG_HOME || homedir();\n return read(options);\n}\nfunction serialize(config) {\n return Object.entries(flatten(config)).map(([key, value]) => `${key}=${JSON.stringify(value)}`).join(\"\\n\");\n}\nfunction write(config, options) {\n options = withDefaults(options);\n writeFileSync(resolve(options.dir, options.name), serialize(config), {\n encoding: \"utf8\"\n });\n}\nfunction writeUser(config, options) {\n options = withDefaults(options);\n options.dir = process.env.XDG_CONFIG_HOME || homedir();\n write(config, options);\n}\nfunction update(config, options) {\n options = withDefaults(options);\n if (!options.flat) {\n config = unflatten(config, { overwrite: true });\n }\n const newConfig = defu(config, read(options));\n write(newConfig, options);\n return newConfig;\n}\nfunction updateUser(config, options) {\n options = withDefaults(options);\n options.dir = process.env.XDG_CONFIG_HOME || homedir();\n return update(config, options);\n}\n\nexport { defaults, parse, parseFile, read, readUser, serialize, update, updateUser, write, writeUser };\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAMA,SAAS,SAAU,KAAK;AACtB,QAAO,OACL,IAAI,eACH,OAAO,IAAI,YAAY,aAAa,cACrC,IAAI,YAAY,SAAS,IAAI;;AAGjC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,MAAM,QAAQ,IAAI,mBAAmB,SAAS;AACtD,QAAO,KAAK,QAAQ"}
@@ -624,4 +624,5 @@ const K = (e, t, n) => {
624
624
  const q = K;
625
625
 
626
626
  //#endregion
627
- export { K };
627
+ export { K };
628
+ //# sourceMappingURL=main.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.mjs","names":["e","n","a","r","s","t","i","o","c","l","u","d","f"],"sources":["../../../../../../../../../node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.js"],"sourcesContent":["import { createRequire as e } from \"module\";\nimport { spawn as t } from \"node:child_process\";\nimport { delimiter as n, dirname as r, normalize as i, resolve as a } from \"node:path\";\nimport { cwd as o } from \"node:process\";\nimport { PassThrough as s } from \"node:stream\";\nimport c from \"node:readline\";\nvar l = Object.create;\nvar u = Object.defineProperty;\nvar d = Object.getOwnPropertyDescriptor;\nvar f = Object.getOwnPropertyNames;\nvar p = Object.getPrototypeOf;\nvar m = Object.prototype.hasOwnProperty;\nvar h = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);\nvar g = (e, t, n, r) => {\n\tif (t && typeof t === \"object\" || typeof t === \"function\") for (var i = f(t), a = 0, o = i.length, s; a < o; a++) {\n\t\ts = i[a];\n\t\tif (!m.call(e, s) && s !== n) u(e, s, {\n\t\t\tget: ((e) => t[e]).bind(null, s),\n\t\t\tenumerable: !(r = d(t, s)) || r.enumerable\n\t\t});\n\t}\n\treturn e;\n};\nvar _ = (e, t, n) => (n = e != null ? l(p(e)) : {}, g(t || !e || !e.__esModule ? u(n, \"default\", {\n\tvalue: e,\n\tenumerable: true\n}) : n, e));\nvar v = /* @__PURE__ */ e(import.meta.url);\nconst y = /^path$/i;\nconst b = {\n\tkey: \"PATH\",\n\tvalue: \"\"\n};\nfunction x(e) {\n\tfor (const t in e) {\n\t\tif (!Object.prototype.hasOwnProperty.call(e, t) || !y.test(t)) continue;\n\t\tconst n = e[t];\n\t\tif (!n) return b;\n\t\treturn {\n\t\t\tkey: t,\n\t\t\tvalue: n\n\t\t};\n\t}\n\treturn b;\n}\nfunction S(e, t) {\n\tconst i = t.value.split(n);\n\tlet o = e;\n\tlet s;\n\tdo {\n\t\ti.push(a(o, \"node_modules\", \".bin\"));\n\t\ts = o;\n\t\to = r(o);\n\t} while (o !== s);\n\treturn {\n\t\tkey: t.key,\n\t\tvalue: i.join(n)\n\t};\n}\nfunction C(e, t) {\n\tconst n = {\n\t\t...process.env,\n\t\t...t\n\t};\n\tconst r = S(e, x(n));\n\tn[r.key] = r.value;\n\treturn n;\n}\nconst w = (e) => {\n\tlet t = e.length;\n\tconst n = new s();\n\tconst r = () => {\n\t\tif (--t === 0) n.emit(\"end\");\n\t};\n\tfor (const t of e) {\n\t\tt.pipe(n, { end: false });\n\t\tt.on(\"end\", r);\n\t}\n\treturn n;\n};\nvar T = h((exports, t) => {\n\tt.exports = a;\n\ta.sync = o;\n\tvar n = v(\"fs\");\n\tfunction r(e, t) {\n\t\tvar n = t.pathExt !== void 0 ? t.pathExt : process.env.PATHEXT;\n\t\tif (!n) return true;\n\t\tn = n.split(\";\");\n\t\tif (n.indexOf(\"\") !== -1) return true;\n\t\tfor (var r = 0; r < n.length; r++) {\n\t\t\tvar i = n[r].toLowerCase();\n\t\t\tif (i && e.substr(-i.length).toLowerCase() === i) return true;\n\t\t}\n\t\treturn false;\n\t}\n\tfunction i(e, t, n) {\n\t\tif (!e.isSymbolicLink() && !e.isFile()) return false;\n\t\treturn r(t, n);\n\t}\n\tfunction a(e, t, r) {\n\t\tn.stat(e, function(n, a) {\n\t\t\tr(n, n ? false : i(a, e, t));\n\t\t});\n\t}\n\tfunction o(e, t) {\n\t\treturn i(n.statSync(e), e, t);\n\t}\n});\nvar E = h((exports, t) => {\n\tt.exports = r;\n\tr.sync = i;\n\tvar n = v(\"fs\");\n\tfunction r(e, t, r) {\n\t\tn.stat(e, function(e, n) {\n\t\t\tr(e, e ? false : a(n, t));\n\t\t});\n\t}\n\tfunction i(e, t) {\n\t\treturn a(n.statSync(e), t);\n\t}\n\tfunction a(e, t) {\n\t\treturn e.isFile() && o(e, t);\n\t}\n\tfunction o(e, t) {\n\t\tvar n = e.mode;\n\t\tvar r = e.uid;\n\t\tvar i = e.gid;\n\t\tvar a = t.uid !== void 0 ? t.uid : process.getuid && process.getuid();\n\t\tvar o = t.gid !== void 0 ? t.gid : process.getgid && process.getgid();\n\t\tvar s = parseInt(\"100\", 8);\n\t\tvar c = parseInt(\"010\", 8);\n\t\tvar l = parseInt(\"001\", 8);\n\t\tvar u = s | c;\n\t\tvar d = n & l || n & c && i === o || n & s && r === a || n & u && a === 0;\n\t\treturn d;\n\t}\n});\nvar D = h((exports, t) => {\n\tvar n = v(\"fs\");\n\tvar r;\n\tif (process.platform === \"win32\" || global.TESTING_WINDOWS) r = T();\n\telse r = E();\n\tt.exports = i;\n\ti.sync = a;\n\tfunction i(e, t, n) {\n\t\tif (typeof t === \"function\") {\n\t\t\tn = t;\n\t\t\tt = {};\n\t\t}\n\t\tif (!n) {\n\t\t\tif (typeof Promise !== \"function\") throw new TypeError(\"callback not provided\");\n\t\t\treturn new Promise(function(n, r) {\n\t\t\t\ti(e, t || {}, function(e, t) {\n\t\t\t\t\tif (e) r(e);\n\t\t\t\t\telse n(t);\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t\tr(e, t || {}, function(e, r) {\n\t\t\tif (e) {\n\t\t\t\tif (e.code === \"EACCES\" || t && t.ignoreErrors) {\n\t\t\t\t\te = null;\n\t\t\t\t\tr = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tn(e, r);\n\t\t});\n\t}\n\tfunction a(e, t) {\n\t\ttry {\n\t\t\treturn r.sync(e, t || {});\n\t\t} catch (e) {\n\t\t\tif (t && t.ignoreErrors || e.code === \"EACCES\") return false;\n\t\t\telse throw e;\n\t\t}\n\t}\n});\nvar O = h((exports, t) => {\n\tconst n = process.platform === \"win32\" || process.env.OSTYPE === \"cygwin\" || process.env.OSTYPE === \"msys\";\n\tconst r = v(\"path\");\n\tconst i = n ? \";\" : \":\";\n\tconst a = D();\n\tconst o = (e) => Object.assign(new Error(`not found: ${e}`), { code: \"ENOENT\" });\n\tconst s = (e, t) => {\n\t\tconst r = t.colon || i;\n\t\tconst a = e.match(/\\//) || n && e.match(/\\\\/) ? [\"\"] : [...n ? [process.cwd()] : [], ...(t.path || process.env.PATH || \"\").split(r)];\n\t\tconst o = n ? t.pathExt || process.env.PATHEXT || \".EXE;.CMD;.BAT;.COM\" : \"\";\n\t\tconst s = n ? o.split(r) : [\"\"];\n\t\tif (n) {\n\t\t\tif (e.indexOf(\".\") !== -1 && s[0] !== \"\") s.unshift(\"\");\n\t\t}\n\t\treturn {\n\t\t\tpathEnv: a,\n\t\t\tpathExt: s,\n\t\t\tpathExtExe: o\n\t\t};\n\t};\n\tconst c = (e, t, n) => {\n\t\tif (typeof t === \"function\") {\n\t\t\tn = t;\n\t\t\tt = {};\n\t\t}\n\t\tif (!t) t = {};\n\t\tconst { pathEnv: i, pathExt: c, pathExtExe: l } = s(e, t);\n\t\tconst u = [];\n\t\tconst d = (n) => new Promise((a, s) => {\n\t\t\tif (n === i.length) return t.all && u.length ? a(u) : s(o(e));\n\t\t\tconst c = i[n];\n\t\t\tconst l = /^\".*\"$/.test(c) ? c.slice(1, -1) : c;\n\t\t\tconst d = r.join(l, e);\n\t\t\tconst p = !l && /^\\.[\\\\\\/]/.test(e) ? e.slice(0, 2) + d : d;\n\t\t\ta(f(p, n, 0));\n\t\t});\n\t\tconst f = (e, n, r) => new Promise((i, o) => {\n\t\t\tif (r === c.length) return i(d(n + 1));\n\t\t\tconst s = c[r];\n\t\t\ta(e + s, { pathExt: l }, (a, o) => {\n\t\t\t\tif (!a && o) if (t.all) u.push(e + s);\n\t\t\t\telse return i(e + s);\n\t\t\t\treturn i(f(e, n, r + 1));\n\t\t\t});\n\t\t});\n\t\treturn n ? d(0).then((e) => n(null, e), n) : d(0);\n\t};\n\tconst l = (e, t) => {\n\t\tt = t || {};\n\t\tconst { pathEnv: n, pathExt: i, pathExtExe: c } = s(e, t);\n\t\tconst l = [];\n\t\tfor (let o = 0; o < n.length; o++) {\n\t\t\tconst s = n[o];\n\t\t\tconst u = /^\".*\"$/.test(s) ? s.slice(1, -1) : s;\n\t\t\tconst d = r.join(u, e);\n\t\t\tconst f = !u && /^\\.[\\\\\\/]/.test(e) ? e.slice(0, 2) + d : d;\n\t\t\tfor (let e = 0; e < i.length; e++) {\n\t\t\t\tconst n = f + i[e];\n\t\t\t\ttry {\n\t\t\t\t\tconst e = a.sync(n, { pathExt: c });\n\t\t\t\t\tif (e) if (t.all) l.push(n);\n\t\t\t\t\telse return n;\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\t\t}\n\t\tif (t.all && l.length) return l;\n\t\tif (t.nothrow) return null;\n\t\tthrow o(e);\n\t};\n\tt.exports = c;\n\tc.sync = l;\n});\nvar k = h((exports, t) => {\n\tconst n = (e = {}) => {\n\t\tconst t = e.env || process.env;\n\t\tconst n = e.platform || process.platform;\n\t\tif (n !== \"win32\") return \"PATH\";\n\t\treturn Object.keys(t).reverse().find((e) => e.toUpperCase() === \"PATH\") || \"Path\";\n\t};\n\tt.exports = n;\n\tt.exports.default = n;\n});\nvar A = h((exports, t) => {\n\tconst n = v(\"path\");\n\tconst r = O();\n\tconst i = k();\n\tfunction a(e, t) {\n\t\tconst a = e.options.env || process.env;\n\t\tconst o = process.cwd();\n\t\tconst s = e.options.cwd != null;\n\t\tconst c = s && process.chdir !== void 0 && !process.chdir.disabled;\n\t\tif (c) try {\n\t\t\tprocess.chdir(e.options.cwd);\n\t\t} catch (e) {}\n\t\tlet l;\n\t\ttry {\n\t\t\tl = r.sync(e.command, {\n\t\t\t\tpath: a[i({ env: a })],\n\t\t\t\tpathExt: t ? n.delimiter : void 0\n\t\t\t});\n\t\t} catch (e) {} finally {\n\t\t\tif (c) process.chdir(o);\n\t\t}\n\t\tif (l) l = n.resolve(s ? e.options.cwd : \"\", l);\n\t\treturn l;\n\t}\n\tfunction o(e) {\n\t\treturn a(e) || a(e, true);\n\t}\n\tt.exports = o;\n});\nvar j = h((exports, t) => {\n\tconst n = /([()\\][%!^\"`<>&|;, *?])/g;\n\tfunction r(e) {\n\t\te = e.replace(n, \"^$1\");\n\t\treturn e;\n\t}\n\tfunction i(e, t) {\n\t\te = `${e}`;\n\t\te = e.replace(/(\\\\*)\"/g, \"$1$1\\\\\\\"\");\n\t\te = e.replace(/(\\\\*)$/, \"$1$1\");\n\t\te = `\"${e}\"`;\n\t\te = e.replace(n, \"^$1\");\n\t\tif (t) e = e.replace(n, \"^$1\");\n\t\treturn e;\n\t}\n\tt.exports.command = r;\n\tt.exports.argument = i;\n});\nvar M = h((exports, t) => {\n\tt.exports = /^#!(.*)/;\n});\nvar N = h((exports, t) => {\n\tconst n = M();\n\tt.exports = (e = \"\") => {\n\t\tconst t = e.match(n);\n\t\tif (!t) return null;\n\t\tconst [r, i] = t[0].replace(/#! ?/, \"\").split(\" \");\n\t\tconst a = r.split(\"/\").pop();\n\t\tif (a === \"env\") return i;\n\t\treturn i ? `${a} ${i}` : a;\n\t};\n});\nvar P = h((exports, t) => {\n\tconst n = v(\"fs\");\n\tconst r = N();\n\tfunction i(e) {\n\t\tconst t = 150;\n\t\tconst i = Buffer.alloc(t);\n\t\tlet a;\n\t\ttry {\n\t\t\ta = n.openSync(e, \"r\");\n\t\t\tn.readSync(a, i, 0, t, 0);\n\t\t\tn.closeSync(a);\n\t\t} catch (e) {}\n\t\treturn r(i.toString());\n\t}\n\tt.exports = i;\n});\nvar F = h((exports, t) => {\n\tconst n = v(\"path\");\n\tconst r = A();\n\tconst i = j();\n\tconst a = P();\n\tconst o = process.platform === \"win32\";\n\tconst s = /\\.(?:com|exe)$/i;\n\tconst c = /node_modules[\\\\/].bin[\\\\/][^\\\\/]+\\.cmd$/i;\n\tfunction l(e) {\n\t\te.file = r(e);\n\t\tconst t = e.file && a(e.file);\n\t\tif (t) {\n\t\t\te.args.unshift(e.file);\n\t\t\te.command = t;\n\t\t\treturn r(e);\n\t\t}\n\t\treturn e.file;\n\t}\n\tfunction u(e) {\n\t\tif (!o) return e;\n\t\tconst t = l(e);\n\t\tconst r = !s.test(t);\n\t\tif (e.options.forceShell || r) {\n\t\t\tconst r = c.test(t);\n\t\t\te.command = n.normalize(e.command);\n\t\t\te.command = i.command(e.command);\n\t\t\te.args = e.args.map((e) => i.argument(e, r));\n\t\t\tconst a = [e.command].concat(e.args).join(\" \");\n\t\t\te.args = [\n\t\t\t\t\"/d\",\n\t\t\t\t\"/s\",\n\t\t\t\t\"/c\",\n\t\t\t\t`\"${a}\"`\n\t\t\t];\n\t\t\te.command = process.env.comspec || \"cmd.exe\";\n\t\t\te.options.windowsVerbatimArguments = true;\n\t\t}\n\t\treturn e;\n\t}\n\tfunction d(e, t, n) {\n\t\tif (t && !Array.isArray(t)) {\n\t\t\tn = t;\n\t\t\tt = null;\n\t\t}\n\t\tt = t ? t.slice(0) : [];\n\t\tn = Object.assign({}, n);\n\t\tconst r = {\n\t\t\tcommand: e,\n\t\t\targs: t,\n\t\t\toptions: n,\n\t\t\tfile: void 0,\n\t\t\toriginal: {\n\t\t\t\tcommand: e,\n\t\t\t\targs: t\n\t\t\t}\n\t\t};\n\t\treturn n.shell ? r : u(r);\n\t}\n\tt.exports = d;\n});\nvar I = h((exports, t) => {\n\tconst n = process.platform === \"win32\";\n\tfunction r(e, t) {\n\t\treturn Object.assign(new Error(`${t} ${e.command} ENOENT`), {\n\t\t\tcode: \"ENOENT\",\n\t\t\terrno: \"ENOENT\",\n\t\t\tsyscall: `${t} ${e.command}`,\n\t\t\tpath: e.command,\n\t\t\tspawnargs: e.args\n\t\t});\n\t}\n\tfunction i(e, t) {\n\t\tif (!n) return;\n\t\tconst r = e.emit;\n\t\te.emit = function(n, i) {\n\t\t\tif (n === \"exit\") {\n\t\t\t\tconst n = a(i, t, \"spawn\");\n\t\t\t\tif (n) return r.call(e, \"error\", n);\n\t\t\t}\n\t\t\treturn r.apply(e, arguments);\n\t\t};\n\t}\n\tfunction a(e, t) {\n\t\tif (n && e === 1 && !t.file) return r(t.original, \"spawn\");\n\t\treturn null;\n\t}\n\tfunction o(e, t) {\n\t\tif (n && e === 1 && !t.file) return r(t.original, \"spawnSync\");\n\t\treturn null;\n\t}\n\tt.exports = {\n\t\thookChildProcess: i,\n\t\tverifyENOENT: a,\n\t\tverifyENOENTSync: o,\n\t\tnotFoundError: r\n\t};\n});\nvar L = h((exports, t) => {\n\tconst n = v(\"child_process\");\n\tconst r = F();\n\tconst i = I();\n\tfunction a(e, t, a) {\n\t\tconst o = r(e, t, a);\n\t\tconst s = n.spawn(o.command, o.args, o.options);\n\t\ti.hookChildProcess(s, o);\n\t\treturn s;\n\t}\n\tfunction o(e, t, a) {\n\t\tconst o = r(e, t, a);\n\t\tconst s = n.spawnSync(o.command, o.args, o.options);\n\t\ts.error = s.error || i.verifyENOENTSync(s.status, o);\n\t\treturn s;\n\t}\n\tt.exports = a;\n\tt.exports.spawn = a;\n\tt.exports.sync = o;\n\tt.exports._parse = r;\n\tt.exports._enoent = i;\n});\nvar R = _(L(), 1);\nvar z = class extends Error {\n\tresult;\n\toutput;\n\tget exitCode() {\n\t\tif (this.result.exitCode !== null) return this.result.exitCode;\n\t\treturn void 0;\n\t}\n\tconstructor(e, t) {\n\t\tsuper(`Process exited with non-zero status (${e.exitCode})`);\n\t\tthis.result = e;\n\t\tthis.output = t;\n\t}\n};\nconst B = {\n\ttimeout: void 0,\n\tpersist: false\n};\nconst V = { windowsHide: true };\nfunction H(e, t) {\n\tconst n = i(e);\n\tconst r = t ?? [];\n\treturn {\n\t\tcommand: n,\n\t\targs: r\n\t};\n}\nfunction U(e) {\n\tconst t = new AbortController();\n\tfor (const n of e) {\n\t\tif (n.aborted) {\n\t\t\tt.abort();\n\t\t\treturn n;\n\t\t}\n\t\tconst e = () => {\n\t\t\tt.abort(n.reason);\n\t\t};\n\t\tn.addEventListener(\"abort\", e, { signal: t.signal });\n\t}\n\treturn t.signal;\n}\nasync function W(e) {\n\tlet t = \"\";\n\tfor await (const n of e) t += n.toString();\n\treturn t;\n}\nvar G = class {\n\t_process;\n\t_aborted = false;\n\t_options;\n\t_command;\n\t_args;\n\t_resolveClose;\n\t_processClosed;\n\t_thrownError;\n\tget process() {\n\t\treturn this._process;\n\t}\n\tget pid() {\n\t\treturn this._process?.pid;\n\t}\n\tget exitCode() {\n\t\tif (this._process && this._process.exitCode !== null) return this._process.exitCode;\n\t\treturn void 0;\n\t}\n\tconstructor(e, t, n) {\n\t\tthis._options = {\n\t\t\t...B,\n\t\t\t...n\n\t\t};\n\t\tthis._command = e;\n\t\tthis._args = t ?? [];\n\t\tthis._processClosed = new Promise((e) => {\n\t\t\tthis._resolveClose = e;\n\t\t});\n\t}\n\tkill(e) {\n\t\treturn this._process?.kill(e) === true;\n\t}\n\tget aborted() {\n\t\treturn this._aborted;\n\t}\n\tget killed() {\n\t\treturn this._process?.killed === true;\n\t}\n\tpipe(e, t, n) {\n\t\treturn q(e, t, {\n\t\t\t...n,\n\t\t\tstdin: this\n\t\t});\n\t}\n\tasync *[Symbol.asyncIterator]() {\n\t\tconst e = this._process;\n\t\tif (!e) return;\n\t\tconst t = [];\n\t\tif (this._streamErr) t.push(this._streamErr);\n\t\tif (this._streamOut) t.push(this._streamOut);\n\t\tconst n = w(t);\n\t\tconst r = c.createInterface({ input: n });\n\t\tfor await (const e of r) yield e.toString();\n\t\tawait this._processClosed;\n\t\te.removeAllListeners();\n\t\tif (this._thrownError) throw this._thrownError;\n\t\tif (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this);\n\t}\n\tasync _waitForOutput() {\n\t\tconst e = this._process;\n\t\tif (!e) throw new Error(\"No process was started\");\n\t\tconst [t, n] = await Promise.all([this._streamOut ? W(this._streamOut) : \"\", this._streamErr ? W(this._streamErr) : \"\"]);\n\t\tawait this._processClosed;\n\t\tif (this._options?.stdin) await this._options.stdin;\n\t\te.removeAllListeners();\n\t\tif (this._thrownError) throw this._thrownError;\n\t\tconst r = {\n\t\t\tstderr: n,\n\t\t\tstdout: t,\n\t\t\texitCode: this.exitCode\n\t\t};\n\t\tif (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this, r);\n\t\treturn r;\n\t}\n\tthen(e, t) {\n\t\treturn this._waitForOutput().then(e, t);\n\t}\n\t_streamOut;\n\t_streamErr;\n\tspawn() {\n\t\tconst e = o();\n\t\tconst n = this._options;\n\t\tconst r = {\n\t\t\t...V,\n\t\t\t...n.nodeOptions\n\t\t};\n\t\tconst i = [];\n\t\tthis._resetState();\n\t\tif (n.timeout !== void 0) i.push(AbortSignal.timeout(n.timeout));\n\t\tif (n.signal !== void 0) i.push(n.signal);\n\t\tif (n.persist === true) r.detached = true;\n\t\tif (i.length > 0) r.signal = U(i);\n\t\tr.env = C(e, r.env);\n\t\tconst { command: a, args: s } = H(this._command, this._args);\n\t\tconst c = (0, R._parse)(a, s, r);\n\t\tconst l = t(c.command, c.args, c.options);\n\t\tif (l.stderr) this._streamErr = l.stderr;\n\t\tif (l.stdout) this._streamOut = l.stdout;\n\t\tthis._process = l;\n\t\tl.once(\"error\", this._onError);\n\t\tl.once(\"close\", this._onClose);\n\t\tif (n.stdin !== void 0 && l.stdin && n.stdin.process) {\n\t\t\tconst { stdout: e } = n.stdin.process;\n\t\t\tif (e) e.pipe(l.stdin);\n\t\t}\n\t}\n\t_resetState() {\n\t\tthis._aborted = false;\n\t\tthis._processClosed = new Promise((e) => {\n\t\t\tthis._resolveClose = e;\n\t\t});\n\t\tthis._thrownError = void 0;\n\t}\n\t_onError = (e) => {\n\t\tif (e.name === \"AbortError\" && (!(e.cause instanceof Error) || e.cause.name !== \"TimeoutError\")) {\n\t\t\tthis._aborted = true;\n\t\t\treturn;\n\t\t}\n\t\tthis._thrownError = e;\n\t};\n\t_onClose = () => {\n\t\tif (this._resolveClose) this._resolveClose();\n\t};\n};\nconst K = (e, t, n) => {\n\tconst r = new G(e, t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AAM,EAAE,KAAK,UAAU,KAAK,MAAM;EAC5D,MAAMC,OAAK,GAAG,EAAE,QAAQ,GAAG,GAAG,EAAE;EAChC,MAAMC,MAAIJ,MAAEG,IAAE,SAASA,IAAE,MAAMA,IAAE,QAAQ;AACzC,MAAIC,IAAE,OAAQ,MAAK,aAAaA,IAAE;AAClC,MAAIA,IAAE,OAAQ,MAAK,aAAaA,IAAE;AAClC,OAAK,WAAWA;AAChB,MAAE,KAAK,SAAS,KAAK,SAAS;AAC9B,MAAE,KAAK,SAAS,KAAK,SAAS;AAC9B,MAAI,EAAE,UAAU,KAAK,KAAKA,IAAE,SAAS,EAAE,MAAM,SAAS;GACrD,MAAM,EAAE,QAAQT,QAAM,EAAE,MAAM;AAC9B,OAAIA,IAAG,KAAE,KAAKS,IAAE,MAAM;;;CAGxB,cAAc;AACb,OAAK,WAAW;AAChB,OAAK,iBAAiB,IAAI,SAAS,MAAM;AACxC,QAAK,gBAAgB;IACpB;AACF,OAAK,eAAe,KAAK;;CAE1B,YAAY,MAAM;AACjB,MAAI,EAAE,SAAS,iBAAiB,EAAE,EAAE,iBAAiB,UAAU,EAAE,MAAM,SAAS,iBAAiB;AAChG,QAAK,WAAW;AAChB;;AAED,OAAK,eAAe;;CAErB,iBAAiB;AAChB,MAAI,KAAK,cAAe,MAAK,eAAe;;;AAG9C,MAAM,KAAK,GAAG,GAAG,MAAM;CACtB,MAAM,IAAI,IAAI,EAAE,GAAG,GAAG,EAAE;AACxB,GAAE,OAAO;AACT,QAAO;;AAER,MAAM,IAAI"}
@@ -0,0 +1,3 @@
1
+ import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./runtime.cjs";
2
+ import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./plugin.cjs";
3
+ export { EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, SecretsInterface, __ΩEnvInterface, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType, __ΩSecretsInterface };
@@ -0,0 +1,3 @@
1
+ import { EnvInterface, SecretsInterface, __ΩEnvInterface, __ΩSecretsInterface } from "./runtime.mjs";
2
+ import { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType } from "./plugin.mjs";
3
+ export { EnvInterface, EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, SecretsInterface, __ΩEnvInterface, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType, __ΩSecretsInterface };
@@ -0,0 +1,168 @@
1
+ import { EnvInterface, SecretsInterface } from "./runtime.cjs";
2
+ import { Children } from "@alloy-js/core";
3
+ import { Reflection } from "@powerlines/deepkit/types";
4
+ import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig, AlloyPluginUserConfig } from "@powerlines/plugin-alloy/types";
5
+ import { AutoMDPluginOptions } from "@powerlines/plugin-automd/types/plugin";
6
+ import { BabelPluginContext, BabelPluginOptions, BabelPluginResolvedConfig, BabelPluginUserConfig } from "@powerlines/plugin-babel/types";
7
+ import { DotenvParseOutput } from "@stryke/env/types";
8
+ import { DotenvConfiguration, TypeDefinition, TypeDefinitionParameter } from "@stryke/types/configuration";
9
+
10
+ //#region src/types/plugin.d.ts
11
+ type EnvType = "env" | "secrets";
12
+ type EnvPluginOptions = Omit<DotenvConfiguration, "types"> & {
13
+ /**
14
+ * A path to the type definition for the expected env configuration parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigConfiguration"`.
15
+ */
16
+ types?: TypeDefinitionParameter;
17
+ /**
18
+ * A path to the type definition for the expected env secret parameters. This value can include both a path to the typescript file and the name of the type definition to use separated by a `":"` or `"#"` character. For example: `"./src/types/env.ts#ConfigSecrets"`.
19
+ */
20
+ secrets?: TypeDefinitionParameter;
21
+ /**
22
+ * An additional prefix (or list of additional prefixes) to apply to the environment variables
23
+ *
24
+ * @remarks
25
+ * By default, the plugin will use the `POWERLINES_` prefix. This option is useful for avoiding conflicts with other environment variables.
26
+ */
27
+ prefix?: string | string[];
28
+ /**
29
+ * Should the plugin inject the env variables in the source code with their values?
30
+ *
31
+ * @defaultValue false
32
+ */
33
+ inject?: boolean;
34
+ /**
35
+ * Should the plugin validate the loaded environment variables against the provided type definitions?
36
+ *
37
+ * @defaultValue false
38
+ */
39
+ validate?: boolean;
40
+ /**
41
+ * The default configuration to use when loading environment variables.
42
+ *
43
+ * @remarks
44
+ * This configuration is used as the base configuration when loading environment variables, and will be overridden by any values found in the `.env` file or the process environment.
45
+ */
46
+ defaultConfig?: Children;
47
+ /**
48
+ * Babel configuration options to use when injecting environment variables into the source code.
49
+ *
50
+ * @remarks
51
+ * This option allows you to customize the Babel transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Babel settings.
52
+ */
53
+ babel?: BabelPluginOptions;
54
+ /**
55
+ * AutoMD configuration options to allow injecting environment variables documentation into a markdown file such as a README.md.
56
+ *
57
+ * @remarks
58
+ * The README.md file should contain the `<!-- automd:env --><!-- /automd -->` comment block where the documentation will be injected.
59
+ */
60
+ automd?: AutoMDPluginOptions;
61
+ /**
62
+ * Alloy configuration options to use when injecting environment variables into the source code.
63
+ *
64
+ * @remarks
65
+ * This option allows you to customize the Alloy transformation process used to inject environment variables into the source code. If not provided, the plugin will use default Alloy settings.
66
+ */
67
+ alloy?: AlloyPluginOptions;
68
+ };
69
+ type EnvPluginUserConfig = BabelPluginUserConfig & AlloyPluginUserConfig & {
70
+ env: EnvPluginOptions;
71
+ };
72
+ type EnvPluginResolvedConfig = BabelPluginResolvedConfig & AlloyPluginResolvedConfig & {
73
+ env: Required<Pick<DotenvConfiguration, "additionalFiles">> & Required<Pick<EnvPluginOptions, "defaultConfig">> & {
74
+ /**
75
+ * The type definition for the expected env variable parameters
76
+ *
77
+ * @remarks
78
+ * This value is parsed from the {@link EnvPluginOptions.types} option.
79
+ */
80
+ types: TypeDefinition;
81
+ /**
82
+ * The type definition for the expected env secret parameters
83
+ *
84
+ * @remarks
85
+ * This value is parsed from the {@link EnvPluginOptions.secrets} option.
86
+ */
87
+ secrets: TypeDefinition;
88
+ /**
89
+ * Should the plugin inject the env variables in the source code with their values?
90
+ *
91
+ * @remarks
92
+ * This value is the result of reflecting the {@link EnvPluginOptions.inject} option.
93
+ */
94
+ inject: boolean;
95
+ /**
96
+ * Should the plugin validate the loaded environment variables against the provided type definitions?
97
+ *
98
+ * @remarks
99
+ * This value is the result of reflecting the {@link EnvPluginOptions.validate} option.
100
+ */
101
+ validate: boolean;
102
+ /**
103
+ * The prefix used for environment variables
104
+ *
105
+ * @remarks
106
+ * This value is used to filter environment variables that are loaded from the .env file and the process environment.
107
+ */
108
+ prefix: string[];
109
+ };
110
+ };
111
+ interface EnvPluginContext<TResolvedConfig extends EnvPluginResolvedConfig = EnvPluginResolvedConfig> extends BabelPluginContext<TResolvedConfig>, AlloyPluginContext<TResolvedConfig> {
112
+ env: {
113
+ /**
114
+ * The type definitions reflection for the env variables and secrets
115
+ *
116
+ * @remarks
117
+ * These reflections contains the structure of the expected environment variables and secrets as defined by the type definitions provided in the plugin configuration.
118
+ */
119
+ types: {
120
+ /**
121
+ * The type definitions for the expected env variables
122
+ */
123
+ env: Reflection;
124
+ /**
125
+ * The type definitions for the expected env secrets
126
+ */
127
+ secrets: Reflection;
128
+ };
129
+ /**
130
+ * The current **used** environment variables and secrets reflection
131
+ *
132
+ * @remarks
133
+ * This reflection contains the structure of the current environment variables and secrets as defined during the plugin initialization by extracting the values from the source code.
134
+ */
135
+ used: {
136
+ /**
137
+ * The current env variables reflection
138
+ */
139
+ env: Reflection<EnvInterface>;
140
+ /**
141
+ * The current env secrets reflection
142
+ */
143
+ secrets: Reflection<SecretsInterface>;
144
+ };
145
+ /**
146
+ * The parsed .env configuration object
147
+ *
148
+ * @remarks
149
+ * This value is the result of loading the .env configuration file found in the project root directory and merging it with the values provided at {@link EnvPluginOptions.values}
150
+ */
151
+ parsed: DotenvParseOutput;
152
+ /**
153
+ * The injected environment variables and secrets reflection
154
+ *
155
+ * @remarks
156
+ * This reflection contains the structure of the injected environment variables and secrets that were injected into the source code during the build process.
157
+ */
158
+ injected: Reflection;
159
+ };
160
+ }
161
+ declare type __ΩEnvType = any[];
162
+ declare type __ΩEnvPluginOptions = any[];
163
+ declare type __ΩEnvPluginUserConfig = any[];
164
+ declare type __ΩEnvPluginResolvedConfig = any[];
165
+ declare type __ΩEnvPluginContext = any[];
166
+ //#endregion
167
+ export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType, __ΩEnvPluginContext, __ΩEnvPluginOptions, __ΩEnvPluginResolvedConfig, __ΩEnvPluginUserConfig, __ΩEnvType };
168
+ //# sourceMappingURL=plugin.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;KAyCY,OAAA;KAEA,gBAAA,GAAmB,KAAK;EAFxB;AAEZ;;EAA+B,KAAA,CAAA,EAIrB,uBAJqB;EAIrB;;;EA2CA,OAAA,CAAA,EAtCE,uBAsCF;EAQC;;;AAWX;;;EAES,MAAA,CAAA,EAAA,MAAA,GAAA,MAAA,EAAA;EAAgB;AAGzB;;;;EAEkB,MAAA,CAAA,EAAA,OAAA;EAAT;;;;;EAgBQ,QAAA,CAAA,EAAA,OAAA;EAAc;AA4B/B;;;;;EAiBW,aAAA,CAAA,EA/FO,QA+FP;EAKI;;;;;;EAmCD,KAAA,CAAA,EA/HJ,kBA+HI;EArDV;;;;;;WAlEO;;;;;;;UAQD;;KAGE,mBAAA,GAAsB,wBAChC;OACO;;KAGG,uBAAA,GAA0B,4BACpC;OACO,SAAS,KAAK,2CACjB,SAAS,KAAK;;;;;;;WAOL;;;;;;;aAQE;;;;;;;;;;;;;;;;;;;;;;;;UA4BA,yCACS,0BAA0B,iCAGhD,mBAAmB,kBACnB,mBAAmB;;;;;;;;;;;;WAYZ;;;;eAKI;;;;;;;;;;;;WAaJ,WAAW;;;;eAKP,WAAW;;;;;;;;YASd;;;;;;;cAQE"}