@metamask/snaps-cli 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (235) hide show
  1. package/CHANGELOG.md +6 -1
  2. package/dist/builders.js +2 -2
  3. package/dist/builders.mjs +2 -2
  4. package/dist/{chunk-MCN7UXG3.mjs → chunk-26C34AS7.mjs} +4 -4
  5. package/dist/{chunk-TX4BG5GS.mjs → chunk-2SUDRRT6.mjs} +2 -2
  6. package/dist/{chunk-MMBQXT2G.mjs → chunk-3WWFQLH4.mjs} +2 -2
  7. package/dist/chunk-45LOTCC4.mjs +1 -0
  8. package/dist/chunk-4QUVE3EK.js +53 -0
  9. package/dist/{chunk-4NHBPMKT.js → chunk-5CLEKHXE.js} +13 -13
  10. package/dist/{chunk-VI3ZJJYO.mjs → chunk-5KQNAW4C.mjs} +6 -6
  11. package/dist/{chunk-GC7BNDLY.js → chunk-6EEZHGF5.js} +6 -6
  12. package/dist/{chunk-USFFVX52.mjs → chunk-7NQQGJZJ.mjs} +2 -2
  13. package/dist/{chunk-YYYOE2GO.mjs → chunk-7RHK2YTB.mjs} +2 -2
  14. package/dist/{chunk-UBWM7UOC.mjs → chunk-AZMQTZXZ.mjs} +1 -5
  15. package/dist/{chunk-UBWM7UOC.mjs.map → chunk-AZMQTZXZ.mjs.map} +1 -1
  16. package/dist/{chunk-IJYBCHVM.js → chunk-B3NNVTA6.js} +3 -3
  17. package/dist/{chunk-46JUPGRY.js → chunk-BALQOCUO.js} +1 -1
  18. package/dist/{chunk-2QVYYMUD.js → chunk-BVPYLBE5.js} +17 -17
  19. package/dist/{chunk-SAEZHRJJ.mjs → chunk-BYNQODL3.mjs} +3 -3
  20. package/dist/{chunk-IQTGFRWK.js → chunk-C44RRX3H.js} +5 -5
  21. package/dist/{chunk-L5TMG6BQ.js → chunk-C46KEPAC.js} +1 -1
  22. package/dist/{chunk-KZFWI73A.js → chunk-CGJKCIHP.js} +3 -3
  23. package/dist/chunk-CIYE263O.js +30 -0
  24. package/dist/{chunk-ASOCIPDR.js → chunk-DBLADLQ4.js} +1 -1
  25. package/dist/chunk-EDEA4QTA.js +35 -0
  26. package/dist/{chunk-DWS4BJTE.mjs → chunk-ERSRIVYH.mjs} +1 -1
  27. package/dist/{chunk-EXJCMAUI.mjs → chunk-G3COWLG5.mjs} +3 -3
  28. package/dist/{chunk-UA5FEKKH.mjs → chunk-GKRRE4WN.mjs} +6 -6
  29. package/dist/{chunk-B455GFXP.mjs → chunk-HQBA5RU6.mjs} +6 -6
  30. package/dist/{chunk-6IF2UBYA.mjs → chunk-HYPSSFE5.mjs} +1 -1
  31. package/dist/{chunk-X4FWMO4H.mjs → chunk-JAHNVVLT.mjs} +3 -3
  32. package/dist/{chunk-QCP4QKMQ.mjs → chunk-JCVSYVPD.mjs} +3 -3
  33. package/dist/chunk-JI3B665Z.js +24 -0
  34. package/dist/{chunk-GU2KH52B.mjs → chunk-JL3URCHO.mjs} +8 -8
  35. package/dist/{chunk-GUXDSKV4.mjs → chunk-K26BOY6Z.mjs} +5 -5
  36. package/dist/{chunk-VTJFPUIA.mjs → chunk-K5QMGTQL.mjs} +3 -3
  37. package/dist/{chunk-WH7GOZP7.js → chunk-KLOPX6DO.js} +9 -9
  38. package/dist/{chunk-EXGQAOQS.js → chunk-KUSHMQXD.js} +13 -13
  39. package/dist/{chunk-TLTTWAEI.mjs → chunk-L72RLBV5.mjs} +1 -1
  40. package/dist/{chunk-7SN4Y44H.js → chunk-MDHJ5HLM.js} +8 -8
  41. package/dist/{chunk-ZOQ32RQI.mjs → chunk-MR44GPM3.mjs} +1 -1
  42. package/dist/{chunk-YDLKS46R.js → chunk-MUYXNION.js} +3 -3
  43. package/dist/{chunk-EQRMXKXY.js → chunk-OKDY7C7S.js} +32 -32
  44. package/dist/{chunk-X2RPNWBJ.mjs → chunk-OPE2PGM6.mjs} +3 -3
  45. package/dist/{chunk-HNLMKJBX.js → chunk-PDYQXXLP.js} +1 -1
  46. package/dist/{chunk-FYTQTDZU.mjs → chunk-PFB25A2Q.mjs} +4 -4
  47. package/dist/chunk-QFK7JVP3.js +52 -0
  48. package/dist/chunk-QHCKVO3P.js +28 -0
  49. package/dist/{chunk-V5Q5HRXB.mjs → chunk-QMD3VO6R.mjs} +1 -1
  50. package/dist/chunk-R6NBQKVH.js +16 -0
  51. package/dist/{chunk-T74IXMA3.mjs → chunk-R77RJHC5.mjs} +2 -8
  52. package/dist/chunk-R77RJHC5.mjs.map +1 -0
  53. package/dist/{chunk-MIV2UFTA.js → chunk-S45DIQPN.js} +1 -1
  54. package/dist/{chunk-IYAFFTJU.js → chunk-S76EZ6HY.js} +6 -6
  55. package/dist/{chunk-6NJAXMSB.js → chunk-S7UP2YYF.js} +1 -1
  56. package/dist/{chunk-NO53G7NT.js → chunk-SVYNCWMH.js} +11 -11
  57. package/dist/{chunk-6VFUO2H5.mjs → chunk-SYRWT2KT.mjs} +1 -1
  58. package/dist/{chunk-QH4AQR33.mjs → chunk-T7NEPTM5.mjs} +6 -6
  59. package/dist/{chunk-5DSV76XV.mjs → chunk-TDSL55B3.mjs} +1 -1
  60. package/dist/{chunk-G3IYVYVR.js → chunk-TJ2F3J6X.js} +1 -1
  61. package/dist/chunk-U4VFMIGO.js +24 -0
  62. package/dist/chunk-VXOV3ZCB.js +1 -0
  63. package/dist/{chunk-WKL7DYYW.mjs → chunk-WO7DMSQU.mjs} +2 -2
  64. package/dist/{chunk-HGYXRW5B.js → chunk-WP2N4NCO.js} +7 -7
  65. package/dist/{chunk-25SLEORF.mjs → chunk-WYDHPUWV.mjs} +2 -2
  66. package/dist/{chunk-OF4BF57X.mjs → chunk-X7TESUC7.mjs} +1 -1
  67. package/dist/{chunk-PDNDGMB2.mjs → chunk-X7VYAL2L.mjs} +4 -4
  68. package/dist/{chunk-5DDAAM2X.js → chunk-XGWLFH7Y.js} +4 -4
  69. package/dist/{chunk-3LNPS7AX.js → chunk-XUYXKO4F.js} +18 -18
  70. package/dist/{chunk-S5ERYB6I.mjs → chunk-XZJLYKES.mjs} +6 -6
  71. package/dist/{chunk-HJ4276TR.mjs → chunk-YCYGKEXF.mjs} +3 -3
  72. package/dist/{chunk-YURDB35F.js → chunk-YGEAZQSC.js} +7 -7
  73. package/dist/{chunk-5VAZH7L7.js → chunk-YQ2E7NEA.js} +3 -3
  74. package/dist/chunk-YQVCFM6L.js +22 -0
  75. package/dist/{chunk-KKTPKAZN.mjs → chunk-YWCNJELN.mjs} +5 -5
  76. package/dist/{chunk-JMISQ4HT.mjs → chunk-ZAW4ZWQX.mjs} +1 -1
  77. package/dist/cli.js +13 -13
  78. package/dist/cli.mjs +13 -13
  79. package/dist/commands/build/build.js +23 -23
  80. package/dist/commands/build/build.mjs +23 -23
  81. package/dist/commands/build/implementation.js +22 -22
  82. package/dist/commands/build/implementation.mjs +22 -22
  83. package/dist/commands/build/index.js +24 -24
  84. package/dist/commands/build/index.mjs +24 -24
  85. package/dist/commands/eval/eval.js +12 -12
  86. package/dist/commands/eval/eval.mjs +12 -12
  87. package/dist/commands/eval/implementation.js +3 -3
  88. package/dist/commands/eval/implementation.mjs +3 -3
  89. package/dist/commands/eval/index.js +13 -13
  90. package/dist/commands/eval/index.mjs +13 -13
  91. package/dist/commands/index.js +33 -33
  92. package/dist/commands/index.mjs +33 -33
  93. package/dist/commands/manifest/implementation.js +11 -11
  94. package/dist/commands/manifest/implementation.mjs +11 -11
  95. package/dist/commands/manifest/index.js +13 -13
  96. package/dist/commands/manifest/index.mjs +13 -13
  97. package/dist/commands/manifest/manifest.js +12 -12
  98. package/dist/commands/manifest/manifest.mjs +12 -12
  99. package/dist/commands/serve/index.js +23 -23
  100. package/dist/commands/serve/index.mjs +23 -23
  101. package/dist/commands/serve/serve.js +22 -22
  102. package/dist/commands/serve/serve.mjs +22 -22
  103. package/dist/commands/watch/implementation.js +22 -22
  104. package/dist/commands/watch/implementation.mjs +22 -22
  105. package/dist/commands/watch/index.js +24 -24
  106. package/dist/commands/watch/index.mjs +24 -24
  107. package/dist/commands/watch/watch.js +23 -23
  108. package/dist/commands/watch/watch.mjs +23 -23
  109. package/dist/config.js +12 -12
  110. package/dist/config.mjs +12 -12
  111. package/dist/errors.js +2 -2
  112. package/dist/errors.mjs +2 -2
  113. package/dist/index.js +21 -21
  114. package/dist/index.mjs +21 -21
  115. package/dist/main.js +36 -36
  116. package/dist/main.mjs +36 -36
  117. package/dist/structs.js +2 -2
  118. package/dist/structs.mjs +2 -2
  119. package/dist/types/yargs.d.mjs +0 -1
  120. package/dist/utils/cli.js +2 -2
  121. package/dist/utils/cli.mjs +2 -2
  122. package/dist/utils/errors.js +3 -3
  123. package/dist/utils/errors.mjs +3 -3
  124. package/dist/utils/index.js +10 -10
  125. package/dist/utils/index.mjs +10 -10
  126. package/dist/utils/legacy.js +3 -3
  127. package/dist/utils/legacy.mjs +3 -3
  128. package/dist/utils/logging.js +2 -2
  129. package/dist/utils/logging.mjs +2 -2
  130. package/dist/utils/path.js +2 -2
  131. package/dist/utils/path.mjs +2 -2
  132. package/dist/utils/steps.js +5 -5
  133. package/dist/utils/steps.mjs +5 -5
  134. package/dist/webpack/compiler.js +19 -19
  135. package/dist/webpack/compiler.mjs +19 -19
  136. package/dist/webpack/config.js +18 -18
  137. package/dist/webpack/config.mjs +18 -18
  138. package/dist/webpack/index.js +21 -21
  139. package/dist/webpack/index.mjs +21 -21
  140. package/dist/webpack/loaders/browserify.js +13 -13
  141. package/dist/webpack/loaders/browserify.mjs +13 -13
  142. package/dist/webpack/loaders/function.js +2 -2
  143. package/dist/webpack/loaders/function.mjs +2 -2
  144. package/dist/webpack/loaders/index.js +13 -13
  145. package/dist/webpack/loaders/index.mjs +13 -13
  146. package/dist/webpack/loaders/wasm.js +2 -2
  147. package/dist/webpack/loaders/wasm.mjs +2 -2
  148. package/dist/webpack/plugins.js +17 -17
  149. package/dist/webpack/plugins.mjs +17 -17
  150. package/dist/webpack/server.js +2 -2
  151. package/dist/webpack/server.mjs +2 -2
  152. package/dist/webpack/utils.js +13 -13
  153. package/dist/webpack/utils.mjs +13 -13
  154. package/package.json +4 -4
  155. package/dist/chunk-4OKAI7AP.js +0 -52
  156. package/dist/chunk-5JPLNWCO.js +0 -24
  157. package/dist/chunk-5YUHRLH6.js +0 -22
  158. package/dist/chunk-FPG4GBXZ.js +0 -30
  159. package/dist/chunk-GKG7TO7T.js +0 -28
  160. package/dist/chunk-K3TSXPME.js +0 -16
  161. package/dist/chunk-O2QUFUOY.js +0 -53
  162. package/dist/chunk-OVCYXVWI.mjs +0 -1
  163. package/dist/chunk-T3KPXUAU.js +0 -24
  164. package/dist/chunk-T74IXMA3.mjs.map +0 -1
  165. package/dist/chunk-WJNHZ4YF.js +0 -35
  166. package/dist/chunk-Y5PQG4KA.js +0 -1
  167. /package/dist/{chunk-MCN7UXG3.mjs.map → chunk-26C34AS7.mjs.map} +0 -0
  168. /package/dist/{chunk-TX4BG5GS.mjs.map → chunk-2SUDRRT6.mjs.map} +0 -0
  169. /package/dist/{chunk-MMBQXT2G.mjs.map → chunk-3WWFQLH4.mjs.map} +0 -0
  170. /package/dist/{chunk-OVCYXVWI.mjs.map → chunk-45LOTCC4.mjs.map} +0 -0
  171. /package/dist/{chunk-O2QUFUOY.js.map → chunk-4QUVE3EK.js.map} +0 -0
  172. /package/dist/{chunk-4NHBPMKT.js.map → chunk-5CLEKHXE.js.map} +0 -0
  173. /package/dist/{chunk-VI3ZJJYO.mjs.map → chunk-5KQNAW4C.mjs.map} +0 -0
  174. /package/dist/{chunk-GC7BNDLY.js.map → chunk-6EEZHGF5.js.map} +0 -0
  175. /package/dist/{chunk-USFFVX52.mjs.map → chunk-7NQQGJZJ.mjs.map} +0 -0
  176. /package/dist/{chunk-YYYOE2GO.mjs.map → chunk-7RHK2YTB.mjs.map} +0 -0
  177. /package/dist/{chunk-IJYBCHVM.js.map → chunk-B3NNVTA6.js.map} +0 -0
  178. /package/dist/{chunk-46JUPGRY.js.map → chunk-BALQOCUO.js.map} +0 -0
  179. /package/dist/{chunk-2QVYYMUD.js.map → chunk-BVPYLBE5.js.map} +0 -0
  180. /package/dist/{chunk-SAEZHRJJ.mjs.map → chunk-BYNQODL3.mjs.map} +0 -0
  181. /package/dist/{chunk-IQTGFRWK.js.map → chunk-C44RRX3H.js.map} +0 -0
  182. /package/dist/{chunk-L5TMG6BQ.js.map → chunk-C46KEPAC.js.map} +0 -0
  183. /package/dist/{chunk-KZFWI73A.js.map → chunk-CGJKCIHP.js.map} +0 -0
  184. /package/dist/{chunk-FPG4GBXZ.js.map → chunk-CIYE263O.js.map} +0 -0
  185. /package/dist/{chunk-ASOCIPDR.js.map → chunk-DBLADLQ4.js.map} +0 -0
  186. /package/dist/{chunk-WJNHZ4YF.js.map → chunk-EDEA4QTA.js.map} +0 -0
  187. /package/dist/{chunk-DWS4BJTE.mjs.map → chunk-ERSRIVYH.mjs.map} +0 -0
  188. /package/dist/{chunk-EXJCMAUI.mjs.map → chunk-G3COWLG5.mjs.map} +0 -0
  189. /package/dist/{chunk-UA5FEKKH.mjs.map → chunk-GKRRE4WN.mjs.map} +0 -0
  190. /package/dist/{chunk-B455GFXP.mjs.map → chunk-HQBA5RU6.mjs.map} +0 -0
  191. /package/dist/{chunk-6IF2UBYA.mjs.map → chunk-HYPSSFE5.mjs.map} +0 -0
  192. /package/dist/{chunk-X4FWMO4H.mjs.map → chunk-JAHNVVLT.mjs.map} +0 -0
  193. /package/dist/{chunk-QCP4QKMQ.mjs.map → chunk-JCVSYVPD.mjs.map} +0 -0
  194. /package/dist/{chunk-5JPLNWCO.js.map → chunk-JI3B665Z.js.map} +0 -0
  195. /package/dist/{chunk-GU2KH52B.mjs.map → chunk-JL3URCHO.mjs.map} +0 -0
  196. /package/dist/{chunk-GUXDSKV4.mjs.map → chunk-K26BOY6Z.mjs.map} +0 -0
  197. /package/dist/{chunk-VTJFPUIA.mjs.map → chunk-K5QMGTQL.mjs.map} +0 -0
  198. /package/dist/{chunk-WH7GOZP7.js.map → chunk-KLOPX6DO.js.map} +0 -0
  199. /package/dist/{chunk-EXGQAOQS.js.map → chunk-KUSHMQXD.js.map} +0 -0
  200. /package/dist/{chunk-TLTTWAEI.mjs.map → chunk-L72RLBV5.mjs.map} +0 -0
  201. /package/dist/{chunk-7SN4Y44H.js.map → chunk-MDHJ5HLM.js.map} +0 -0
  202. /package/dist/{chunk-ZOQ32RQI.mjs.map → chunk-MR44GPM3.mjs.map} +0 -0
  203. /package/dist/{chunk-YDLKS46R.js.map → chunk-MUYXNION.js.map} +0 -0
  204. /package/dist/{chunk-EQRMXKXY.js.map → chunk-OKDY7C7S.js.map} +0 -0
  205. /package/dist/{chunk-X2RPNWBJ.mjs.map → chunk-OPE2PGM6.mjs.map} +0 -0
  206. /package/dist/{chunk-HNLMKJBX.js.map → chunk-PDYQXXLP.js.map} +0 -0
  207. /package/dist/{chunk-FYTQTDZU.mjs.map → chunk-PFB25A2Q.mjs.map} +0 -0
  208. /package/dist/{chunk-4OKAI7AP.js.map → chunk-QFK7JVP3.js.map} +0 -0
  209. /package/dist/{chunk-GKG7TO7T.js.map → chunk-QHCKVO3P.js.map} +0 -0
  210. /package/dist/{chunk-V5Q5HRXB.mjs.map → chunk-QMD3VO6R.mjs.map} +0 -0
  211. /package/dist/{chunk-K3TSXPME.js.map → chunk-R6NBQKVH.js.map} +0 -0
  212. /package/dist/{chunk-MIV2UFTA.js.map → chunk-S45DIQPN.js.map} +0 -0
  213. /package/dist/{chunk-IYAFFTJU.js.map → chunk-S76EZ6HY.js.map} +0 -0
  214. /package/dist/{chunk-6NJAXMSB.js.map → chunk-S7UP2YYF.js.map} +0 -0
  215. /package/dist/{chunk-NO53G7NT.js.map → chunk-SVYNCWMH.js.map} +0 -0
  216. /package/dist/{chunk-6VFUO2H5.mjs.map → chunk-SYRWT2KT.mjs.map} +0 -0
  217. /package/dist/{chunk-QH4AQR33.mjs.map → chunk-T7NEPTM5.mjs.map} +0 -0
  218. /package/dist/{chunk-5DSV76XV.mjs.map → chunk-TDSL55B3.mjs.map} +0 -0
  219. /package/dist/{chunk-G3IYVYVR.js.map → chunk-TJ2F3J6X.js.map} +0 -0
  220. /package/dist/{chunk-T3KPXUAU.js.map → chunk-U4VFMIGO.js.map} +0 -0
  221. /package/dist/{chunk-Y5PQG4KA.js.map → chunk-VXOV3ZCB.js.map} +0 -0
  222. /package/dist/{chunk-WKL7DYYW.mjs.map → chunk-WO7DMSQU.mjs.map} +0 -0
  223. /package/dist/{chunk-HGYXRW5B.js.map → chunk-WP2N4NCO.js.map} +0 -0
  224. /package/dist/{chunk-25SLEORF.mjs.map → chunk-WYDHPUWV.mjs.map} +0 -0
  225. /package/dist/{chunk-OF4BF57X.mjs.map → chunk-X7TESUC7.mjs.map} +0 -0
  226. /package/dist/{chunk-PDNDGMB2.mjs.map → chunk-X7VYAL2L.mjs.map} +0 -0
  227. /package/dist/{chunk-5DDAAM2X.js.map → chunk-XGWLFH7Y.js.map} +0 -0
  228. /package/dist/{chunk-3LNPS7AX.js.map → chunk-XUYXKO4F.js.map} +0 -0
  229. /package/dist/{chunk-S5ERYB6I.mjs.map → chunk-XZJLYKES.mjs.map} +0 -0
  230. /package/dist/{chunk-HJ4276TR.mjs.map → chunk-YCYGKEXF.mjs.map} +0 -0
  231. /package/dist/{chunk-YURDB35F.js.map → chunk-YGEAZQSC.js.map} +0 -0
  232. /package/dist/{chunk-5VAZH7L7.js.map → chunk-YQ2E7NEA.js.map} +0 -0
  233. /package/dist/{chunk-5YUHRLH6.js.map → chunk-YQVCFM6L.js.map} +0 -0
  234. /package/dist/{chunk-KKTPKAZN.mjs.map → chunk-YWCNJELN.mjs.map} +0 -0
  235. /package/dist/{chunk-JMISQ4HT.mjs.map → chunk-ZAW4ZWQX.mjs.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [6.0.1]
10
+ ### Fixed
11
+ - Fix minor build configuration problems ([#2220](https://github.com/MetaMask/snaps/pull/2220))
12
+
9
13
  ## [6.0.0]
10
14
  ### Changed
11
15
  - **BREAKING:** Update ESM build to be fully compliant with the ESM standard ([#2210](https://github.com/MetaMask/snaps/pull/2210))
@@ -119,7 +123,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
119
123
  - The version of the package no longer needs to match the version of all other
120
124
  MetaMask Snaps packages.
121
125
 
122
- [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.0.0...HEAD
126
+ [Unreleased]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.0.1...HEAD
127
+ [6.0.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@6.0.0...@metamask/snaps-cli@6.0.1
123
128
  [6.0.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@5.1.1...@metamask/snaps-cli@6.0.0
124
129
  [5.1.1]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@5.1.0...@metamask/snaps-cli@5.1.1
125
130
  [5.1.0]: https://github.com/MetaMask/snaps/compare/@metamask/snaps-cli@5.0.0...@metamask/snaps-cli@5.1.0
package/dist/builders.js CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk6NJAXMSBjs = require('./chunk-6NJAXMSB.js');
4
+ var _chunkS7UP2YYFjs = require('./chunk-S7UP2YYF.js');
5
5
  require('./chunk-X3D3MHWF.js');
6
6
 
7
7
 
8
8
 
9
- exports.TranspilationModes = _chunk6NJAXMSBjs.TranspilationModes; exports.default = _chunk6NJAXMSBjs.builders_default;
9
+ exports.TranspilationModes = _chunkS7UP2YYFjs.TranspilationModes; exports.default = _chunkS7UP2YYFjs.builders_default;
10
10
  //# sourceMappingURL=builders.js.map
package/dist/builders.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  TranspilationModes,
3
3
  builders_default
4
- } from "./chunk-ZOQ32RQI.mjs";
5
- import "./chunk-T74IXMA3.mjs";
4
+ } from "./chunk-MR44GPM3.mjs";
5
+ import "./chunk-R77RJHC5.mjs";
6
6
  export {
7
7
  TranspilationModes,
8
8
  builders_default as default
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  getFunctionLoader
3
- } from "./chunk-UBWM7UOC.mjs";
3
+ } from "./chunk-AZMQTZXZ.mjs";
4
4
  import {
5
5
  processDependencies
6
- } from "./chunk-V5Q5HRXB.mjs";
6
+ } from "./chunk-QMD3VO6R.mjs";
7
7
  import {
8
8
  __require
9
- } from "./chunk-T74IXMA3.mjs";
9
+ } from "./chunk-R77RJHC5.mjs";
10
10
 
11
11
  // src/webpack/utils.ts
12
12
  import { dim } from "chalk";
@@ -284,4 +284,4 @@ export {
284
284
  formatText,
285
285
  browserify_default
286
286
  };
287
- //# sourceMappingURL=chunk-MCN7UXG3.mjs.map
287
+ //# sourceMappingURL=chunk-26C34AS7.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  error,
3
3
  info,
4
4
  warn
5
- } from "./chunk-JMISQ4HT.mjs";
5
+ } from "./chunk-ZAW4ZWQX.mjs";
6
6
 
7
7
  // src/commands/manifest/implementation.ts
8
8
  import { checkManifest, indent } from "@metamask/snaps-utils/node";
@@ -47,4 +47,4 @@ ${formattedWarnings.join("\n")}`,
47
47
  export {
48
48
  manifest
49
49
  };
50
- //# sourceMappingURL=chunk-TX4BG5GS.mjs.map
50
+ //# sourceMappingURL=chunk-2SUDRRT6.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CommandError
3
- } from "./chunk-OF4BF57X.mjs";
3
+ } from "./chunk-X7TESUC7.mjs";
4
4
 
5
5
  // src/commands/eval/implementation.ts
6
6
  import { evalBundle, SnapEvalError, indent } from "@metamask/snaps-utils/node";
@@ -27,4 +27,4 @@ ${indent(
27
27
  export {
28
28
  evaluate
29
29
  };
30
- //# sourceMappingURL=chunk-MMBQXT2G.mjs.map
30
+ //# sourceMappingURL=chunk-3WWFQLH4.mjs.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-45LOTCC4.mjs.map
@@ -0,0 +1,53 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+ var _chunkC46KEPACjs = require('./chunk-C46KEPAC.js');
7
+
8
+
9
+
10
+
11
+ var _chunkPDYQXXLPjs = require('./chunk-PDYQXXLP.js');
12
+
13
+
14
+ var _chunkDBLADLQ4js = require('./chunk-DBLADLQ4.js');
15
+
16
+
17
+ var _chunkXGWLFH7Yjs = require('./chunk-XGWLFH7Y.js');
18
+
19
+
20
+
21
+ var _chunkB3NNVTA6js = require('./chunk-B3NNVTA6.js');
22
+
23
+
24
+
25
+
26
+ var _chunkTJ2F3J6Xjs = require('./chunk-TJ2F3J6X.js');
27
+
28
+
29
+ var _chunkX3D3MHWFjs = require('./chunk-X3D3MHWF.js');
30
+
31
+ // src/utils/index.ts
32
+ var utils_exports = {};
33
+ _chunkX3D3MHWFjs.__export.call(void 0, utils_exports, {
34
+ CONFIG_FILE: () => _chunkC46KEPACjs.CONFIG_FILE,
35
+ TS_CONFIG_FILE: () => _chunkC46KEPACjs.TS_CONFIG_FILE,
36
+ error: () => _chunkTJ2F3J6Xjs.error,
37
+ executeSteps: () => _chunkXGWLFH7Yjs.executeSteps,
38
+ getDependencyRegExp: () => _chunkPDYQXXLPjs.getDependencyRegExp,
39
+ getErrorMessage: () => _chunkB3NNVTA6js.getErrorMessage,
40
+ getRelativePath: () => _chunkDBLADLQ4js.getRelativePath,
41
+ getYargsErrorMessage: () => _chunkB3NNVTA6js.getYargsErrorMessage,
42
+ info: () => _chunkTJ2F3J6Xjs.info,
43
+ processDependencies: () => _chunkPDYQXXLPjs.processDependencies,
44
+ sanitizeDependencyPaths: () => _chunkPDYQXXLPjs.sanitizeDependencyPaths,
45
+ sanitizeInputs: () => _chunkC46KEPACjs.sanitizeInputs,
46
+ trimPathString: () => _chunkC46KEPACjs.trimPathString,
47
+ warn: () => _chunkTJ2F3J6Xjs.warn
48
+ });
49
+
50
+
51
+
52
+ exports.utils_exports = utils_exports;
53
+ //# sourceMappingURL=chunk-4QUVE3EK.js.map
@@ -1,18 +1,18 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkWJNHZ4YFjs = require('./chunk-WJNHZ4YF.js');
3
+ var _chunkEDEA4QTAjs = require('./chunk-EDEA4QTA.js');
4
4
 
5
5
 
6
- var _chunkYURDB35Fjs = require('./chunk-YURDB35F.js');
6
+ var _chunkYGEAZQSCjs = require('./chunk-YGEAZQSC.js');
7
7
 
8
8
 
9
- var _chunk5DDAAM2Xjs = require('./chunk-5DDAAM2X.js');
9
+ var _chunkXGWLFH7Yjs = require('./chunk-XGWLFH7Y.js');
10
10
 
11
11
 
12
- var _chunkG3IYVYVRjs = require('./chunk-G3IYVYVR.js');
12
+ var _chunkTJ2F3J6Xjs = require('./chunk-TJ2F3J6X.js');
13
13
 
14
14
 
15
- var _chunk46JUPGRYjs = require('./chunk-46JUPGRY.js');
15
+ var _chunkBALQOCUOjs = require('./chunk-BALQOCUO.js');
16
16
 
17
17
  // src/commands/watch/watch.ts
18
18
  var _node = require('@metamask/snaps-utils/node');
@@ -22,7 +22,7 @@ var steps = [
22
22
  task: async ({ config }) => {
23
23
  const { input } = config;
24
24
  if (!await _node.isFile.call(void 0, input)) {
25
- throw new (0, _chunk46JUPGRYjs.CommandError)(
25
+ throw new (0, _chunkBALQOCUOjs.CommandError)(
26
26
  `Input file not found: "${input}". Make sure that the "input" field in your snap config is correct.`
27
27
  );
28
28
  }
@@ -32,23 +32,23 @@ var steps = [
32
32
  name: "Starting the development server.",
33
33
  condition: ({ config }) => config.server.enabled,
34
34
  task: async ({ config, options, spinner }) => {
35
- const server = _chunkYURDB35Fjs.getServer.call(void 0, config);
36
- const { port } = await server.listen(_nullishCoalesce(options.port, () => ( config.server.port)));
37
- _chunkG3IYVYVRjs.info.call(void 0, `The server is listening on http://localhost:${port}.`, spinner);
35
+ const server = _chunkYGEAZQSCjs.getServer.call(void 0, config);
36
+ const { port } = await server.listen(options.port ?? config.server.port);
37
+ _chunkTJ2F3J6Xjs.info.call(void 0, `The server is listening on http://localhost:${port}.`, spinner);
38
38
  }
39
39
  },
40
40
  {
41
41
  name: "Building the snap bundle.",
42
42
  task: async ({ config, spinner }) => {
43
- await _chunkWJNHZ4YFjs.watch.call(void 0, config, { spinner });
43
+ await _chunkEDEA4QTAjs.watch.call(void 0, config, { spinner });
44
44
  }
45
45
  }
46
46
  ];
47
47
  async function watchHandler(config, options) {
48
- await _chunk5DDAAM2Xjs.executeSteps.call(void 0, steps, { config, options });
48
+ await _chunkXGWLFH7Yjs.executeSteps.call(void 0, steps, { config, options });
49
49
  }
50
50
 
51
51
 
52
52
 
53
53
  exports.watchHandler = watchHandler;
54
- //# sourceMappingURL=chunk-4NHBPMKT.js.map
54
+ //# sourceMappingURL=chunk-5CLEKHXE.js.map
@@ -1,24 +1,24 @@
1
1
  import {
2
2
  evaluate
3
- } from "./chunk-MMBQXT2G.mjs";
3
+ } from "./chunk-3WWFQLH4.mjs";
4
4
  import {
5
5
  formatText,
6
6
  pluralize
7
- } from "./chunk-MCN7UXG3.mjs";
7
+ } from "./chunk-26C34AS7.mjs";
8
8
  import {
9
9
  getErrorMessage
10
- } from "./chunk-YYYOE2GO.mjs";
10
+ } from "./chunk-7RHK2YTB.mjs";
11
11
  import {
12
12
  error,
13
13
  info,
14
14
  warn
15
- } from "./chunk-JMISQ4HT.mjs";
15
+ } from "./chunk-ZAW4ZWQX.mjs";
16
16
  import {
17
17
  __privateAdd,
18
18
  __privateGet,
19
19
  __privateMethod,
20
20
  __privateSet
21
- } from "./chunk-T74IXMA3.mjs";
21
+ } from "./chunk-R77RJHC5.mjs";
22
22
 
23
23
  // src/webpack/plugins.ts
24
24
  import { assert, hasProperty, isObject } from "@metamask/utils";
@@ -343,4 +343,4 @@ export {
343
343
  SnapsBuiltInResolver,
344
344
  SnapsBundleWarningsPlugin
345
345
  };
346
- //# sourceMappingURL=chunk-VI3ZJJYO.mjs.map
346
+ //# sourceMappingURL=chunk-5KQNAW4C.mjs.map
@@ -1,23 +1,23 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkWH7GOZP7js = require('./chunk-WH7GOZP7.js');
3
+ var _chunkKLOPX6DOjs = require('./chunk-KLOPX6DO.js');
4
4
 
5
5
 
6
- var _chunk6NJAXMSBjs = require('./chunk-6NJAXMSB.js');
6
+ var _chunkS7UP2YYFjs = require('./chunk-S7UP2YYF.js');
7
7
 
8
8
  // src/commands/eval/index.ts
9
9
  var command = {
10
10
  command: ["eval", "e"],
11
11
  desc: "Attempt to evaluate snap bundle in SES",
12
12
  builder: (yarg) => {
13
- yarg.option("bundle", _chunk6NJAXMSBjs.builders_default.bundle);
14
- yarg.option("input", _chunk6NJAXMSBjs.builders_default.input);
13
+ yarg.option("bundle", _chunkS7UP2YYFjs.builders_default.bundle);
14
+ yarg.option("input", _chunkS7UP2YYFjs.builders_default.input);
15
15
  },
16
- handler: async (argv) => _chunkWH7GOZP7js.evaluateHandler.call(void 0, argv.context.config, { input: argv.input })
16
+ handler: async (argv) => _chunkKLOPX6DOjs.evaluateHandler.call(void 0, argv.context.config, { input: argv.input })
17
17
  };
18
18
  var eval_default = command;
19
19
 
20
20
 
21
21
 
22
22
  exports.eval_default = eval_default;
23
- //# sourceMappingURL=chunk-GC7BNDLY.js.map
23
+ //# sourceMappingURL=chunk-6EEZHGF5.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getCompiler
3
- } from "./chunk-WKL7DYYW.mjs";
3
+ } from "./chunk-WO7DMSQU.mjs";
4
4
 
5
5
  // src/commands/watch/implementation.ts
6
6
  import { basename } from "path";
@@ -32,4 +32,4 @@ async function watch(config, options) {
32
32
  export {
33
33
  watch
34
34
  };
35
- //# sourceMappingURL=chunk-USFFVX52.mjs.map
35
+ //# sourceMappingURL=chunk-7NQQGJZJ.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CLIError
3
- } from "./chunk-OF4BF57X.mjs";
3
+ } from "./chunk-X7TESUC7.mjs";
4
4
 
5
5
  // src/utils/errors.ts
6
6
  import { hasProperty, isObject } from "@metamask/utils";
@@ -29,4 +29,4 @@ export {
29
29
  getYargsErrorMessage,
30
30
  getErrorMessage
31
31
  };
32
- //# sourceMappingURL=chunk-YYYOE2GO.mjs.map
32
+ //# sourceMappingURL=chunk-7RHK2YTB.mjs.map
@@ -1,7 +1,3 @@
1
- import {
2
- __filename
3
- } from "./chunk-T74IXMA3.mjs";
4
-
5
1
  // src/webpack/loaders/function.ts
6
2
  var loader = function(content) {
7
3
  const { fn } = this.getOptions();
@@ -29,4 +25,4 @@ export {
29
25
  function_default,
30
26
  getFunctionLoader
31
27
  };
32
- //# sourceMappingURL=chunk-UBWM7UOC.mjs.map
28
+ //# sourceMappingURL=chunk-AZMQTZXZ.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/webpack/loaders/function.ts"],"sourcesContent":["import type { LoaderDefinitionFunction } from 'webpack';\n\n/**\n * Options for the function loader.\n */\nexport type FunctionLoaderOptions = {\n /**\n * The function to execute. This is bound to the loader context, so it can\n * access the loader options and other properties.\n */\n fn: LoaderDefinitionFunction;\n};\n\n/**\n * A loader that executes a function. See {@link getFunctionLoader} for more\n * information.\n *\n * @param content - The input file contents as a `Uint8Array`.\n * @returns The output of the function.\n */\nconst loader: LoaderDefinitionFunction<FunctionLoaderOptions> = function (\n content,\n) {\n const { fn } = this.getOptions();\n return fn.bind(this)(content);\n};\n\nexport default loader;\n\n/**\n * Get a loader that executes the given function. This is useful for executing\n * loaders without needing to pass a file to Webpack.\n *\n * @param fn - The function to execute.\n * @param options - The options to pass to the loader.\n * @returns The loader definition.\n */\nexport function getFunctionLoader<Options>(\n fn: LoaderDefinitionFunction<Options>,\n options: Options,\n) {\n return {\n // We use `__filename` as the loader, so Webpack will execute the loader in\n // this file, with the actual function in the options.\n loader: __filename,\n options: {\n fn,\n ...options,\n },\n };\n}\n\n// When running as CJS, we need to export the loader as a default export, since\n// `tsup` exports it as `loader_default`.\n// istanbul ignore next 3\n// eslint-disable-next-line n/no-process-env\nif (typeof module !== 'undefined' && process?.env?.NODE_ENV !== 'test') {\n module.exports = loader;\n module.exports.getFunctionLoader = getFunctionLoader;\n module.exports.raw = true;\n}\n"],"mappings":";;;;;AAoBA,IAAM,SAA0D,SAC9D,SACA;AACA,QAAM,EAAE,GAAG,IAAI,KAAK,WAAW;AAC/B,SAAO,GAAG,KAAK,IAAI,EAAE,OAAO;AAC9B;AAEA,IAAO,mBAAQ;AAUR,SAAS,kBACd,IACA,SACA;AACA,SAAO;AAAA;AAAA;AAAA,IAGL,QAAQ;AAAA,IACR,SAAS;AAAA,MACP;AAAA,MACA,GAAG;AAAA,IACL;AAAA,EACF;AACF;AAMA,IAAI,OAAO,WAAW,eAAe,SAAS,KAAK,aAAa,QAAQ;AACtE,SAAO,UAAU;AACjB,SAAO,QAAQ,oBAAoB;AACnC,SAAO,QAAQ,MAAM;AACvB;","names":[]}
1
+ {"version":3,"sources":["../src/webpack/loaders/function.ts"],"sourcesContent":["import type { LoaderDefinitionFunction } from 'webpack';\n\n/**\n * Options for the function loader.\n */\nexport type FunctionLoaderOptions = {\n /**\n * The function to execute. This is bound to the loader context, so it can\n * access the loader options and other properties.\n */\n fn: LoaderDefinitionFunction;\n};\n\n/**\n * A loader that executes a function. See {@link getFunctionLoader} for more\n * information.\n *\n * @param content - The input file contents as a `Uint8Array`.\n * @returns The output of the function.\n */\nconst loader: LoaderDefinitionFunction<FunctionLoaderOptions> = function (\n content,\n) {\n const { fn } = this.getOptions();\n return fn.bind(this)(content);\n};\n\nexport default loader;\n\n/**\n * Get a loader that executes the given function. This is useful for executing\n * loaders without needing to pass a file to Webpack.\n *\n * @param fn - The function to execute.\n * @param options - The options to pass to the loader.\n * @returns The loader definition.\n */\nexport function getFunctionLoader<Options>(\n fn: LoaderDefinitionFunction<Options>,\n options: Options,\n) {\n return {\n // We use `__filename` as the loader, so Webpack will execute the loader in\n // this file, with the actual function in the options.\n loader: __filename,\n options: {\n fn,\n ...options,\n },\n };\n}\n\n// When running as CJS, we need to export the loader as a default export, since\n// `tsup` exports it as `loader_default`.\n// istanbul ignore next 3\n// eslint-disable-next-line n/no-process-env\nif (typeof module !== 'undefined' && process?.env?.NODE_ENV !== 'test') {\n module.exports = loader;\n module.exports.getFunctionLoader = getFunctionLoader;\n module.exports.raw = true;\n}\n"],"mappings":";AAoBA,IAAM,SAA0D,SAC9D,SACA;AACA,QAAM,EAAE,GAAG,IAAI,KAAK,WAAW;AAC/B,SAAO,GAAG,KAAK,IAAI,EAAE,OAAO;AAC9B;AAEA,IAAO,mBAAQ;AAUR,SAAS,kBACd,IACA,SACA;AACA,SAAO;AAAA;AAAA;AAAA,IAGL,QAAQ;AAAA,IACR,SAAS;AAAA,MACP;AAAA,MACA,GAAG;AAAA,IACL;AAAA,EACF;AACF;AAMA,IAAI,OAAO,WAAW,eAAe,SAAS,KAAK,aAAa,QAAQ;AACtE,SAAO,UAAU;AACjB,SAAO,QAAQ,oBAAoB;AACnC,SAAO,QAAQ,MAAM;AACvB;","names":[]}
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk46JUPGRYjs = require('./chunk-46JUPGRY.js');
3
+ var _chunkBALQOCUOjs = require('./chunk-BALQOCUO.js');
4
4
 
5
5
  // src/utils/errors.ts
6
6
  var _utils = require('@metamask/utils');
7
7
  function getYargsErrorMessage(message, error) {
8
8
  if (error) {
9
- if (error instanceof _chunk46JUPGRYjs.CLIError) {
9
+ if (error instanceof _chunkBALQOCUOjs.CLIError) {
10
10
  return error.message;
11
11
  }
12
12
  return getErrorMessage(error);
@@ -29,4 +29,4 @@ function getErrorMessage(error) {
29
29
 
30
30
 
31
31
  exports.getYargsErrorMessage = getYargsErrorMessage; exports.getErrorMessage = getErrorMessage;
32
- //# sourceMappingURL=chunk-IJYBCHVM.js.map
32
+ //# sourceMappingURL=chunk-B3NNVTA6.js.map
@@ -19,4 +19,4 @@ var ConfigError = class extends CommandError {
19
19
 
20
20
 
21
21
  exports.CLIError = CLIError; exports.CommandError = CommandError; exports.ConfigError = ConfigError;
22
- //# sourceMappingURL=chunk-46JUPGRY.js.map
22
+ //# sourceMappingURL=chunk-BALQOCUO.js.map
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkMIV2UFTAjs = require('./chunk-MIV2UFTA.js');
3
+ var _chunkS45DIQPNjs = require('./chunk-S45DIQPN.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkL5TMG6BQjs = require('./chunk-L5TMG6BQ.js');
7
+ var _chunkC46KEPACjs = require('./chunk-C46KEPAC.js');
8
8
 
9
9
 
10
- var _chunk46JUPGRYjs = require('./chunk-46JUPGRY.js');
10
+ var _chunkBALQOCUOjs = require('./chunk-BALQOCUO.js');
11
11
 
12
12
  // src/config.ts
13
13
  var _snapssdk = require('@metamask/snaps-sdk');
@@ -40,7 +40,7 @@ var _path = require('path');
40
40
 
41
41
 
42
42
  var _superstruct = require('superstruct');
43
- var CONFIG_FILES = [_chunkL5TMG6BQjs.CONFIG_FILE, _chunkL5TMG6BQjs.TS_CONFIG_FILE];
43
+ var CONFIG_FILES = [_chunkC46KEPACjs.CONFIG_FILE, _chunkC46KEPACjs.TS_CONFIG_FILE];
44
44
  var SnapsBrowserifyBundlerCustomizerFunctionStruct = _superstruct.define.call(void 0,
45
45
  "function",
46
46
  _superstruct.func.call(void 0, ).validator
@@ -49,15 +49,15 @@ var SnapsBrowserifyConfigStruct = _superstruct.object.call(void 0, {
49
49
  bundler: _snapssdk.literal.call(void 0, "browserify"),
50
50
  cliOptions: _superstruct.defaulted.call(void 0,
51
51
  _superstruct.object.call(void 0, {
52
- bundle: _superstruct.optional.call(void 0, _chunkMIV2UFTAjs.file.call(void 0, )),
53
- dist: _superstruct.defaulted.call(void 0, _chunkMIV2UFTAjs.file.call(void 0, ), "dist"),
52
+ bundle: _superstruct.optional.call(void 0, _chunkS45DIQPNjs.file.call(void 0, )),
53
+ dist: _superstruct.defaulted.call(void 0, _chunkS45DIQPNjs.file.call(void 0, ), "dist"),
54
54
  eval: _superstruct.defaulted.call(void 0, _superstruct.boolean.call(void 0, ), true),
55
55
  manifest: _superstruct.defaulted.call(void 0, _superstruct.boolean.call(void 0, ), true),
56
56
  port: _superstruct.defaulted.call(void 0, _superstruct.number.call(void 0, ), 8081),
57
57
  outfileName: _superstruct.defaulted.call(void 0, _superstruct.string.call(void 0, ), "bundle.js"),
58
- root: _superstruct.defaulted.call(void 0, _chunkMIV2UFTAjs.file.call(void 0, ), process.cwd()),
58
+ root: _superstruct.defaulted.call(void 0, _chunkS45DIQPNjs.file.call(void 0, ), process.cwd()),
59
59
  sourceMaps: _superstruct.defaulted.call(void 0, _superstruct.boolean.call(void 0, ), false),
60
- src: _superstruct.defaulted.call(void 0, _chunkMIV2UFTAjs.file.call(void 0, ), "src/index.js"),
60
+ src: _superstruct.defaulted.call(void 0, _chunkS45DIQPNjs.file.call(void 0, ), "src/index.js"),
61
61
  stripComments: _superstruct.defaulted.call(void 0, _superstruct.boolean.call(void 0, ), true),
62
62
  suppressWarnings: _superstruct.defaulted.call(void 0, _superstruct.boolean.call(void 0, ), false),
63
63
  transpilationMode: _superstruct.defaulted.call(void 0,
@@ -79,12 +79,12 @@ var SnapsWebpackCustomizeWebpackConfigFunctionStruct = _superstruct.define.call(
79
79
  );
80
80
  var SnapsWebpackConfigStruct = _superstruct.object.call(void 0, {
81
81
  bundler: _superstruct.defaulted.call(void 0, _snapssdk.literal.call(void 0, "webpack"), "webpack"),
82
- input: _superstruct.defaulted.call(void 0, _chunkMIV2UFTAjs.file.call(void 0, ), _path.resolve.call(void 0, process.cwd(), "src/index.js")),
82
+ input: _superstruct.defaulted.call(void 0, _chunkS45DIQPNjs.file.call(void 0, ), _path.resolve.call(void 0, process.cwd(), "src/index.js")),
83
83
  sourceMap: _superstruct.defaulted.call(void 0, _snapssdk.union.call(void 0, [_superstruct.boolean.call(void 0, ), _snapssdk.literal.call(void 0, "inline")]), false),
84
84
  evaluate: _superstruct.defaulted.call(void 0, _superstruct.boolean.call(void 0, ), true),
85
85
  output: _superstruct.defaulted.call(void 0,
86
86
  _superstruct.object.call(void 0, {
87
- path: _superstruct.defaulted.call(void 0, _chunkMIV2UFTAjs.file.call(void 0, ), _path.resolve.call(void 0, process.cwd(), "dist")),
87
+ path: _superstruct.defaulted.call(void 0, _chunkS45DIQPNjs.file.call(void 0, ), _path.resolve.call(void 0, process.cwd(), "dist")),
88
88
  filename: _superstruct.defaulted.call(void 0, _superstruct.string.call(void 0, ), "bundle.js"),
89
89
  clean: _superstruct.defaulted.call(void 0, _superstruct.boolean.call(void 0, ), false),
90
90
  minimize: _superstruct.defaulted.call(void 0, _superstruct.boolean.call(void 0, ), true)
@@ -93,7 +93,7 @@ var SnapsWebpackConfigStruct = _superstruct.object.call(void 0, {
93
93
  ),
94
94
  manifest: _superstruct.defaulted.call(void 0,
95
95
  _superstruct.object.call(void 0, {
96
- path: _superstruct.defaulted.call(void 0, _chunkMIV2UFTAjs.file.call(void 0, ), _path.resolve.call(void 0, process.cwd(), "snap.manifest.json")),
96
+ path: _superstruct.defaulted.call(void 0, _chunkS45DIQPNjs.file.call(void 0, ), _path.resolve.call(void 0, process.cwd(), "snap.manifest.json")),
97
97
  update: _superstruct.defaulted.call(void 0, _superstruct.boolean.call(void 0, ), true)
98
98
  }),
99
99
  {}
@@ -101,7 +101,7 @@ var SnapsWebpackConfigStruct = _superstruct.object.call(void 0, {
101
101
  server: _superstruct.defaulted.call(void 0,
102
102
  _superstruct.object.call(void 0, {
103
103
  enabled: _superstruct.defaulted.call(void 0, _superstruct.boolean.call(void 0, ), true),
104
- root: _superstruct.defaulted.call(void 0, _chunkMIV2UFTAjs.file.call(void 0, ), process.cwd()),
104
+ root: _superstruct.defaulted.call(void 0, _chunkS45DIQPNjs.file.call(void 0, ), process.cwd()),
105
105
  port: _superstruct.defaulted.call(void 0, _superstruct.number.call(void 0, ), 8081)
106
106
  }),
107
107
  {}
@@ -248,9 +248,9 @@ async function loadConfig(path, argv) {
248
248
  return getConfig(config.exports.default, argv);
249
249
  } catch (error) {
250
250
  if (error instanceof _node.SnapsStructError) {
251
- throw new (0, _chunk46JUPGRYjs.ConfigError)(error.message);
251
+ throw new (0, _chunkBALQOCUOjs.ConfigError)(error.message);
252
252
  }
253
- throw new (0, _chunk46JUPGRYjs.ConfigError)(
253
+ throw new (0, _chunkBALQOCUOjs.ConfigError)(
254
254
  `Unable to load snap config file at "${path}".
255
255
 
256
256
  ${_node.indent.call(void 0,
@@ -266,14 +266,14 @@ async function resolveConfig(path, argv) {
266
266
  return await loadConfig(filePath, argv);
267
267
  }
268
268
  }
269
- throw new (0, _chunk46JUPGRYjs.ConfigError)(
269
+ throw new (0, _chunkBALQOCUOjs.ConfigError)(
270
270
  `Could not find a "snap.config.js" or "snap.config.ts" file in the current or specified directory ("${path}").`
271
271
  );
272
272
  }
273
273
  async function getConfigByArgv(argv, cwd = process.cwd()) {
274
274
  if (argv.config) {
275
275
  if (!await _node.isFile.call(void 0, argv.config)) {
276
- throw new (0, _chunk46JUPGRYjs.ConfigError)(
276
+ throw new (0, _chunkBALQOCUOjs.ConfigError)(
277
277
  `Could not find a config file at "${argv.config}". Make sure that the path is correct.`
278
278
  );
279
279
  }
@@ -362,4 +362,4 @@ function getWebpackConfig(legacyConfig) {
362
362
 
363
363
 
364
364
  exports.SnapsBrowserifyConfigStruct = SnapsBrowserifyConfigStruct; exports.SnapsWebpackConfigStruct = SnapsWebpackConfigStruct; exports.SnapsConfigStruct = SnapsConfigStruct; exports.LegacyOptionsStruct = LegacyOptionsStruct; exports.getConfig = getConfig; exports.loadConfig = loadConfig; exports.resolveConfig = resolveConfig; exports.getConfigByArgv = getConfigByArgv; exports.mergeLegacyOptions = mergeLegacyOptions; exports.getWebpackConfig = getWebpackConfig;
365
- //# sourceMappingURL=chunk-2QVYYMUD.js.map
365
+ //# sourceMappingURL=chunk-BVPYLBE5.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  evaluateHandler
3
- } from "./chunk-GUXDSKV4.mjs";
3
+ } from "./chunk-K26BOY6Z.mjs";
4
4
  import {
5
5
  builders_default
6
- } from "./chunk-ZOQ32RQI.mjs";
6
+ } from "./chunk-MR44GPM3.mjs";
7
7
 
8
8
  // src/commands/eval/index.ts
9
9
  var command = {
@@ -20,4 +20,4 @@ var eval_default = command;
20
20
  export {
21
21
  eval_default
22
22
  };
23
- //# sourceMappingURL=chunk-SAEZHRJJ.mjs.map
23
+ //# sourceMappingURL=chunk-BYNQODL3.mjs.map
@@ -1,18 +1,18 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkYURDB35Fjs = require('./chunk-YURDB35F.js');
3
+ var _chunkYGEAZQSCjs = require('./chunk-YGEAZQSC.js');
4
4
 
5
5
 
6
- var _chunkG3IYVYVRjs = require('./chunk-G3IYVYVR.js');
6
+ var _chunkTJ2F3J6Xjs = require('./chunk-TJ2F3J6X.js');
7
7
 
8
8
  // src/commands/serve/serve.ts
9
9
  async function serveHandler(config, options) {
10
- const server = _chunkYURDB35Fjs.getServer.call(void 0, config);
10
+ const server = _chunkYGEAZQSCjs.getServer.call(void 0, config);
11
11
  const { port } = await server.listen(options.port);
12
- _chunkG3IYVYVRjs.info.call(void 0, `The server is listening on http://localhost:${port}.`);
12
+ _chunkTJ2F3J6Xjs.info.call(void 0, `The server is listening on http://localhost:${port}.`);
13
13
  }
14
14
 
15
15
 
16
16
 
17
17
  exports.serveHandler = serveHandler;
18
- //# sourceMappingURL=chunk-IQTGFRWK.js.map
18
+ //# sourceMappingURL=chunk-C44RRX3H.js.map
@@ -34,4 +34,4 @@ function trimPathString(pathString) {
34
34
 
35
35
 
36
36
  exports.CONFIG_FILE = CONFIG_FILE; exports.TS_CONFIG_FILE = TS_CONFIG_FILE; exports.sanitizeInputs = sanitizeInputs; exports.trimPathString = trimPathString;
37
- //# sourceMappingURL=chunk-L5TMG6BQ.js.map
37
+ //# sourceMappingURL=chunk-C46KEPAC.js.map
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkK3TSXPMEjs = require('./chunk-K3TSXPME.js');
3
+ var _chunkR6NBQKVHjs = require('./chunk-R6NBQKVH.js');
4
4
 
5
5
  // src/commands/build/implementation.ts
6
6
  async function build(config, options) {
7
- const compiler = await _chunkK3TSXPMEjs.getCompiler.call(void 0, config, options);
7
+ const compiler = await _chunkR6NBQKVHjs.getCompiler.call(void 0, config, options);
8
8
  return await new Promise((resolve, reject) => {
9
9
  compiler.run((runError) => {
10
10
  if (runError) {
@@ -25,4 +25,4 @@ async function build(config, options) {
25
25
 
26
26
 
27
27
  exports.build = build;
28
- //# sourceMappingURL=chunk-KZFWI73A.js.map
28
+ //# sourceMappingURL=chunk-CGJKCIHP.js.map
@@ -0,0 +1,30 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkJI3B665Zjs = require('./chunk-JI3B665Z.js');
4
+
5
+
6
+ var _chunkYQVCFM6Ljs = require('./chunk-YQVCFM6L.js');
7
+
8
+
9
+ var _chunkS76EZ6HYjs = require('./chunk-S76EZ6HY.js');
10
+
11
+
12
+ var _chunkU4VFMIGOjs = require('./chunk-U4VFMIGO.js');
13
+
14
+
15
+ var _chunk6EEZHGF5js = require('./chunk-6EEZHGF5.js');
16
+
17
+ // src/commands/index.ts
18
+ var commands = [
19
+ _chunkYQVCFM6Ljs.build_default,
20
+ _chunk6EEZHGF5js.eval_default,
21
+ _chunkS76EZ6HYjs.manifest_default,
22
+ _chunkU4VFMIGOjs.serve_default,
23
+ _chunkJI3B665Zjs.watch_default
24
+ ];
25
+ var commands_default = commands;
26
+
27
+
28
+
29
+ exports.commands_default = commands_default;
30
+ //# sourceMappingURL=chunk-CIYE263O.js.map
@@ -7,4 +7,4 @@ function getRelativePath(absolutePath, cwd = process.cwd()) {
7
7
 
8
8
 
9
9
  exports.getRelativePath = getRelativePath;
10
- //# sourceMappingURL=chunk-ASOCIPDR.js.map
10
+ //# sourceMappingURL=chunk-DBLADLQ4.js.map
@@ -0,0 +1,35 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkR6NBQKVHjs = require('./chunk-R6NBQKVH.js');
4
+
5
+ // src/commands/watch/implementation.ts
6
+ var _path = require('path');
7
+ async function watch(config, options) {
8
+ const compiler = await _chunkR6NBQKVHjs.getCompiler.call(void 0, config, {
9
+ evaluate: config.evaluate,
10
+ watch: true,
11
+ spinner: options?.spinner
12
+ });
13
+ return new Promise((resolve, reject) => {
14
+ compiler.watch(
15
+ {
16
+ ignored: [
17
+ "**/node_modules/**/*",
18
+ `**/${_path.basename.call(void 0, config.output.path)}/**/*`
19
+ ]
20
+ },
21
+ (watchError) => {
22
+ if (watchError) {
23
+ reject(watchError);
24
+ return;
25
+ }
26
+ resolve(compiler.watching);
27
+ }
28
+ );
29
+ });
30
+ }
31
+
32
+
33
+
34
+ exports.watch = watch;
35
+ //# sourceMappingURL=chunk-EDEA4QTA.js.map
@@ -61,4 +61,4 @@ export {
61
61
  wasm_default,
62
62
  raw
63
63
  };
64
- //# sourceMappingURL=chunk-DWS4BJTE.mjs.map
64
+ //# sourceMappingURL=chunk-ERSRIVYH.mjs.map