@modern-js/module-tools 2.0.0-beta.3 → 2.0.0-beta.6

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 (463) hide show
  1. package/CHANGELOG.md +331 -211
  2. package/bin/modern.js +1 -0
  3. package/compiled/@babel/code-frame/index.d.ts +1 -0
  4. package/compiled/@babel/code-frame/index.js +1 -0
  5. package/compiled/@babel/code-frame/license +22 -0
  6. package/compiled/@babel/code-frame/package.json +1 -0
  7. package/compiled/@babel/generator/index.d.ts +1 -0
  8. package/compiled/@babel/generator/index.js +1 -0
  9. package/compiled/@babel/generator/license +22 -0
  10. package/compiled/@babel/generator/package.json +1 -0
  11. package/compiled/@babel/helper-validator-identifier/index.d.ts +1 -0
  12. package/compiled/@babel/helper-validator-identifier/index.js +1 -0
  13. package/compiled/@babel/helper-validator-identifier/license +22 -0
  14. package/compiled/@babel/helper-validator-identifier/package.json +1 -0
  15. package/compiled/@babel/highlight/index.d.ts +1 -0
  16. package/compiled/@babel/highlight/index.js +1 -0
  17. package/compiled/@babel/highlight/license +22 -0
  18. package/compiled/@babel/highlight/package.json +1 -0
  19. package/compiled/@babel/parser/@babel/types/lib/index-legacy.d.ts +2742 -0
  20. package/compiled/@babel/parser/index.js +1 -0
  21. package/compiled/@babel/parser/license +19 -0
  22. package/compiled/@babel/parser/package.json +1 -0
  23. package/compiled/@babel/parser/typings/babel-parser.d.ts +214 -0
  24. package/compiled/@babel/template/index.d.ts +1 -0
  25. package/compiled/@babel/template/index.js +1 -0
  26. package/compiled/@babel/template/license +22 -0
  27. package/compiled/@babel/template/package.json +1 -0
  28. package/compiled/@babel/traverse/index.d.ts +1199 -0
  29. package/compiled/@babel/traverse/index.js +1 -0
  30. package/compiled/@babel/traverse/license +22 -0
  31. package/compiled/@babel/traverse/package.json +1 -0
  32. package/compiled/@babel/types/index.js +1 -0
  33. package/compiled/@babel/types/lib/index-legacy.d.ts +2732 -0
  34. package/compiled/@babel/types/license +22 -0
  35. package/compiled/@babel/types/package.json +1 -0
  36. package/compiled/@rollup/plugin-json/@rollup/pluginutils/types/index.d.ts +86 -0
  37. package/compiled/@rollup/plugin-json/estree/index.d.ts +548 -0
  38. package/compiled/@rollup/plugin-json/index.js +1 -0
  39. package/compiled/@rollup/plugin-json/license +21 -0
  40. package/compiled/@rollup/plugin-json/package.json +1 -0
  41. package/compiled/@rollup/plugin-json/rollup/dist/rollup.d.ts +948 -0
  42. package/compiled/@rollup/plugin-json/types/index.d.ts +41 -0
  43. package/compiled/find-up/index.d.ts +138 -0
  44. package/compiled/find-up/index.js +1 -0
  45. package/compiled/find-up/license +9 -0
  46. package/compiled/find-up/locate-path/index.d.ts +83 -0
  47. package/compiled/find-up/package.json +1 -0
  48. package/compiled/less/index.d.ts +282 -0
  49. package/compiled/less/index.js +1 -0
  50. package/compiled/less/package.json +1 -0
  51. package/compiled/normalize-path/index.d.ts +8 -0
  52. package/compiled/normalize-path/index.js +8 -0
  53. package/compiled/normalize-path/license +21 -0
  54. package/compiled/normalize-path/package.json +1 -0
  55. package/compiled/p-map/@szmarczak/http-timer/dist/source/index.d.ts +32 -0
  56. package/compiled/p-map/cacheable-lookup/index.d.ts +139 -0
  57. package/compiled/p-map/cacheable-request/index.d.ts +137 -0
  58. package/compiled/p-map/got/dist/source/as-promise/index.d.ts +3 -0
  59. package/compiled/p-map/got/dist/source/as-promise/types.d.ts +256 -0
  60. package/compiled/p-map/got/dist/source/core/index.d.ts +1124 -0
  61. package/compiled/p-map/got/dist/source/core/utils/dns-ip-version.d.ts +5 -0
  62. package/compiled/p-map/got/dist/source/core/utils/options-to-url.d.ts +14 -0
  63. package/compiled/p-map/got/dist/source/core/utils/timed-out.d.ts +29 -0
  64. package/compiled/p-map/got/dist/source/index.d.ts +4 -0
  65. package/compiled/p-map/got/dist/source/types.d.ts +344 -0
  66. package/compiled/p-map/http-cache-semantics/index.d.ts +170 -0
  67. package/compiled/p-map/index.d.ts +67 -0
  68. package/compiled/p-map/index.js +1 -0
  69. package/compiled/p-map/keyv/src/index.d.ts +104 -0
  70. package/compiled/p-map/license +9 -0
  71. package/compiled/p-map/p-cancelable/index.d.ts +176 -0
  72. package/compiled/p-map/package.json +1 -0
  73. package/compiled/p-map/responselike/index.d.ts +34 -0
  74. package/compiled/postcss-custom-properties/index.d.ts +1 -0
  75. package/compiled/postcss-custom-properties/index.js +1 -0
  76. package/compiled/postcss-custom-properties/package.json +1 -0
  77. package/compiled/postcss-flexbugs-fixes/index.d.ts +1 -0
  78. package/compiled/postcss-flexbugs-fixes/index.js +1 -0
  79. package/compiled/postcss-flexbugs-fixes/license +20 -0
  80. package/compiled/postcss-flexbugs-fixes/package.json +1 -0
  81. package/compiled/postcss-font-variant/index.d.ts +1 -0
  82. package/compiled/postcss-font-variant/index.js +1 -0
  83. package/compiled/postcss-font-variant/license +20 -0
  84. package/compiled/postcss-font-variant/package.json +1 -0
  85. package/compiled/postcss-initial/index.d.ts +1 -0
  86. package/compiled/postcss-initial/index.js +1 -0
  87. package/compiled/postcss-initial/license +20 -0
  88. package/compiled/postcss-initial/package.json +1 -0
  89. package/compiled/postcss-media-minmax/index.d.ts +1 -0
  90. package/compiled/postcss-media-minmax/index.js +1 -0
  91. package/compiled/postcss-media-minmax/license +22 -0
  92. package/compiled/postcss-media-minmax/package.json +1 -0
  93. package/compiled/postcss-nesting/index.d.ts +1 -0
  94. package/compiled/postcss-nesting/index.js +2 -0
  95. package/compiled/postcss-nesting/package.json +1 -0
  96. package/compiled/postcss-page-break/index.d.ts +1 -0
  97. package/compiled/postcss-page-break/index.js +1 -0
  98. package/compiled/postcss-page-break/license +20 -0
  99. package/compiled/postcss-page-break/package.json +1 -0
  100. package/compiled/postcss-value-parser/index.d.ts +1 -0
  101. package/compiled/postcss-value-parser/index.js +1 -0
  102. package/compiled/postcss-value-parser/license +22 -0
  103. package/compiled/postcss-value-parser/package.json +1 -0
  104. package/compiled/rollup/fsevents.node +0 -0
  105. package/compiled/rollup/index.js +82 -0
  106. package/compiled/rollup/package.json +1 -0
  107. package/compiled/rollup/types/rollup.d.ts +948 -0
  108. package/compiled/rollup-plugin-dts/dist/rollup-plugin-dts.d.ts +21 -0
  109. package/compiled/rollup-plugin-dts/index.js +1 -0
  110. package/compiled/rollup-plugin-dts/package.json +1 -0
  111. package/compiled/rollup-plugin-dts/rollup/dist/rollup.d.ts +948 -0
  112. package/compiled/sass/index.js +1 -0
  113. package/compiled/sass/license +1619 -0
  114. package/compiled/sass/package.json +1 -0
  115. package/compiled/sass/types/compile.d.ts +152 -0
  116. package/compiled/sass/types/exception.d.ts +41 -0
  117. package/compiled/sass/types/importer.d.ts +294 -0
  118. package/compiled/sass/types/index.d.ts +80 -0
  119. package/compiled/sass/types/legacy/exception.d.ts +54 -0
  120. package/compiled/sass/types/legacy/function.d.ts +756 -0
  121. package/compiled/sass/types/legacy/importer.d.ts +168 -0
  122. package/compiled/sass/types/legacy/options.d.ts +642 -0
  123. package/compiled/sass/types/legacy/plugin_this.d.ts +73 -0
  124. package/compiled/sass/types/legacy/render.d.ts +139 -0
  125. package/compiled/sass/types/logger/index.d.ts +94 -0
  126. package/compiled/sass/types/logger/source_location.d.ts +21 -0
  127. package/compiled/sass/types/logger/source_span.d.ts +34 -0
  128. package/compiled/sass/types/options.d.ts +435 -0
  129. package/compiled/sass/types/util/promise_or.d.ts +17 -0
  130. package/compiled/sass/types/value/argument_list.d.ts +47 -0
  131. package/compiled/sass/types/value/boolean.d.ts +29 -0
  132. package/compiled/sass/types/value/color.d.ts +107 -0
  133. package/compiled/sass/types/value/function.d.ts +22 -0
  134. package/compiled/sass/types/value/index.d.ts +173 -0
  135. package/compiled/sass/types/value/list.d.ts +54 -0
  136. package/compiled/sass/types/value/map.d.ts +41 -0
  137. package/compiled/sass/types/value/number.d.ts +305 -0
  138. package/compiled/sass/types/value/string.d.ts +84 -0
  139. package/compiled/signal-exit/index.d.ts +24 -0
  140. package/compiled/signal-exit/index.js +1 -0
  141. package/compiled/signal-exit/package.json +1 -0
  142. package/dist/builder/build.d.ts +23 -0
  143. package/dist/builder/build.js +269 -0
  144. package/dist/builder/build.js.map +1 -0
  145. package/dist/builder/clear.d.ts +3 -0
  146. package/dist/builder/clear.js +67 -0
  147. package/dist/builder/clear.js.map +1 -0
  148. package/dist/builder/copy.d.ts +11 -0
  149. package/dist/builder/copy.js +196 -0
  150. package/dist/builder/copy.js.map +1 -0
  151. package/dist/builder/dts/index.d.ts +2 -0
  152. package/dist/builder/dts/index.js +32 -0
  153. package/dist/builder/dts/index.js.map +1 -0
  154. package/dist/builder/dts/rollup.d.ts +17 -0
  155. package/dist/builder/dts/rollup.js +167 -0
  156. package/dist/builder/dts/rollup.js.map +1 -0
  157. package/dist/builder/dts/tsc.d.ts +3 -0
  158. package/dist/builder/dts/tsc.js +153 -0
  159. package/dist/builder/dts/tsc.js.map +1 -0
  160. package/dist/builder/index.d.ts +8 -0
  161. package/dist/builder/index.js +116 -0
  162. package/dist/builder/index.js.map +1 -0
  163. package/dist/builder/platform.d.ts +4 -0
  164. package/dist/builder/platform.js +132 -0
  165. package/dist/builder/platform.js.map +1 -0
  166. package/dist/cli.d.ts +3 -0
  167. package/dist/cli.js +95 -0
  168. package/dist/cli.js.map +1 -0
  169. package/dist/command.d.ts +7 -0
  170. package/dist/command.js +164 -0
  171. package/dist/command.js.map +1 -0
  172. package/dist/config/defineConfig.d.ts +2 -0
  173. package/dist/config/defineConfig.js +29 -0
  174. package/dist/config/defineConfig.js.map +1 -0
  175. package/dist/config/normalize.d.ts +17 -0
  176. package/dist/config/normalize.js +168 -0
  177. package/dist/config/normalize.js.map +1 -0
  178. package/dist/config/schema.d.ts +641 -0
  179. package/dist/config/schema.js +215 -0
  180. package/dist/config/schema.js.map +1 -0
  181. package/dist/constants/build-presets.d.ts +81 -0
  182. package/dist/constants/build-presets.js +236 -0
  183. package/dist/constants/build-presets.js.map +1 -0
  184. package/dist/constants/build.d.ts +5 -0
  185. package/dist/constants/build.js +78 -0
  186. package/dist/constants/build.js.map +1 -0
  187. package/dist/constants/colors.d.ts +4 -0
  188. package/dist/constants/colors.js +35 -0
  189. package/dist/constants/colors.js.map +1 -0
  190. package/dist/constants/dts.d.ts +4 -0
  191. package/dist/constants/dts.js +52 -0
  192. package/dist/constants/dts.js.map +1 -0
  193. package/dist/constants/file.d.ts +3 -0
  194. package/dist/constants/file.js +35 -0
  195. package/dist/constants/file.js.map +1 -0
  196. package/dist/constants/legacy-build-presets.d.ts +13 -0
  197. package/dist/constants/legacy-build-presets.js +198 -0
  198. package/dist/constants/legacy-build-presets.js.map +1 -0
  199. package/dist/constants/log.d.ts +8 -0
  200. package/dist/constants/log.js +43 -0
  201. package/dist/constants/log.js.map +1 -0
  202. package/dist/dev.d.ts +10 -0
  203. package/dist/dev.js +129 -0
  204. package/dist/dev.js.map +1 -0
  205. package/dist/{types/features/build/error.d.ts → error.d.ts} +1 -1
  206. package/dist/error.js +148 -0
  207. package/dist/error.js.map +1 -0
  208. package/dist/hooks/build.d.ts +22 -0
  209. package/dist/hooks/build.js +39 -0
  210. package/dist/hooks/build.js.map +1 -0
  211. package/dist/hooks/dev.d.ts +12 -0
  212. package/dist/hooks/dev.js +37 -0
  213. package/dist/hooks/dev.js.map +1 -0
  214. package/dist/hooks/index.d.ts +29 -0
  215. package/dist/hooks/index.js +46 -0
  216. package/dist/hooks/index.js.map +1 -0
  217. package/dist/hooks/misc.d.ts +5 -0
  218. package/dist/hooks/misc.js +33 -0
  219. package/dist/hooks/misc.js.map +1 -0
  220. package/dist/index.d.ts +5 -0
  221. package/dist/index.js +37 -0
  222. package/dist/index.js.map +1 -0
  223. package/dist/{types/locale → locale}/en.d.ts +0 -0
  224. package/dist/locale/en.js +51 -0
  225. package/dist/locale/en.js.map +1 -0
  226. package/dist/{types/locale → locale}/index.d.ts +0 -0
  227. package/dist/locale/index.js +39 -0
  228. package/dist/locale/index.js.map +1 -0
  229. package/dist/{types/locale → locale}/zh.d.ts +0 -0
  230. package/dist/locale/zh.js +51 -0
  231. package/dist/locale/zh.js.map +1 -0
  232. package/dist/plugins.d.ts +2 -0
  233. package/dist/plugins.js +55 -0
  234. package/dist/plugins.js.map +1 -0
  235. package/dist/types/color.d.ts +1 -0
  236. package/dist/types/color.js +17 -0
  237. package/dist/types/color.js.map +1 -0
  238. package/dist/types/command.d.ts +11 -0
  239. package/dist/types/command.js +17 -0
  240. package/dist/types/command.js.map +1 -0
  241. package/dist/types/config/index.d.ts +92 -0
  242. package/dist/types/config/index.js +19 -0
  243. package/dist/types/config/index.js.map +1 -0
  244. package/dist/types/config/style.d.ts +12 -0
  245. package/dist/types/config/style.js +17 -0
  246. package/dist/types/config/style.js.map +1 -0
  247. package/dist/types/context.d.ts +5 -0
  248. package/dist/types/context.js +17 -0
  249. package/dist/types/context.js.map +1 -0
  250. package/dist/types/copy.d.ts +15 -0
  251. package/dist/types/copy.js +17 -0
  252. package/dist/types/copy.js.map +1 -0
  253. package/dist/types/{utils/tsconfig.d.ts → dts.d.ts} +11 -3
  254. package/dist/types/dts.js +17 -0
  255. package/dist/types/dts.js.map +1 -0
  256. package/dist/types/hooks.d.ts +25 -0
  257. package/dist/types/hooks.js +17 -0
  258. package/dist/types/hooks.js.map +1 -0
  259. package/dist/types/index.d.ts +17 -6
  260. package/dist/types/index.js +23 -0
  261. package/dist/types/index.js.map +1 -0
  262. package/dist/types/utils.d.ts +7 -0
  263. package/dist/types/utils.js +17 -0
  264. package/dist/types/utils.js.map +1 -0
  265. package/dist/utils/builder.d.ts +8 -0
  266. package/dist/utils/builder.js +104 -0
  267. package/dist/utils/builder.js.map +1 -0
  268. package/dist/utils/config.d.ts +6 -0
  269. package/dist/utils/config.js +167 -0
  270. package/dist/utils/config.js.map +1 -0
  271. package/dist/utils/context.d.ts +7 -0
  272. package/dist/utils/context.js +60 -0
  273. package/dist/utils/context.js.map +1 -0
  274. package/dist/utils/dts.d.ts +14 -0
  275. package/dist/utils/dts.js +186 -0
  276. package/dist/utils/dts.js.map +1 -0
  277. package/dist/utils/input.d.ts +16 -0
  278. package/dist/utils/input.js +113 -0
  279. package/dist/utils/input.js.map +1 -0
  280. package/dist/utils/language.d.ts +2 -0
  281. package/dist/utils/language.js +68 -0
  282. package/dist/utils/language.js.map +1 -0
  283. package/dist/utils/libuild-plugins.d.ts +6 -0
  284. package/dist/utils/libuild-plugins.js +83 -0
  285. package/dist/utils/libuild-plugins.js.map +1 -0
  286. package/dist/utils/log.d.ts +2 -0
  287. package/dist/utils/log.js +68 -0
  288. package/dist/utils/log.js.map +1 -0
  289. package/dist/utils/onExit.d.ts +1 -0
  290. package/dist/utils/onExit.js +63 -0
  291. package/dist/utils/onExit.js.map +1 -0
  292. package/dist/utils/path.d.ts +1 -0
  293. package/dist/utils/path.js +59 -0
  294. package/dist/utils/path.js.map +1 -0
  295. package/dist/utils/style.d.ts +31 -0
  296. package/dist/utils/style.js +129 -0
  297. package/dist/utils/style.js.map +1 -0
  298. package/dist/{types/utils/tspaths-transform/index.d.ts → utils/tspaths-transform.d.ts} +0 -0
  299. package/dist/utils/tspaths-transform.js +119 -0
  300. package/dist/utils/tspaths-transform.js.map +1 -0
  301. package/package.json +43 -72
  302. package/dist/js/modern/cli/build.js +0 -11
  303. package/dist/js/modern/cli/dev.js +0 -11
  304. package/dist/js/modern/cli/index.js +0 -3
  305. package/dist/js/modern/cli/new.js +0 -13
  306. package/dist/js/modern/commands/build.js +0 -69
  307. package/dist/js/modern/commands/dev.js +0 -43
  308. package/dist/js/modern/commands/index.js +0 -2
  309. package/dist/js/modern/features/build/build-platform.js +0 -69
  310. package/dist/js/modern/features/build/bundle/index.js +0 -9
  311. package/dist/js/modern/features/build/bundle/runRollup.js +0 -136
  312. package/dist/js/modern/features/build/bundle/runSpeedy.js +0 -176
  313. package/dist/js/modern/features/build/bundleless/copy-assets.js +0 -75
  314. package/dist/js/modern/features/build/bundleless/generator-dts/index.js +0 -106
  315. package/dist/js/modern/features/build/bundleless/generator-dts/utils.js +0 -94
  316. package/dist/js/modern/features/build/bundleless/index.js +0 -21
  317. package/dist/js/modern/features/build/bundleless/runBabel.js +0 -242
  318. package/dist/js/modern/features/build/bundleless/style.js +0 -241
  319. package/dist/js/modern/features/build/constants.js +0 -98
  320. package/dist/js/modern/features/build/error.js +0 -127
  321. package/dist/js/modern/features/build/index.js +0 -117
  322. package/dist/js/modern/features/build/legacy-constants.js +0 -103
  323. package/dist/js/modern/features/build/logger/index.js +0 -2
  324. package/dist/js/modern/features/build/logger/logText.js +0 -56
  325. package/dist/js/modern/features/build/logger/loggerManager.js +0 -93
  326. package/dist/js/modern/features/build/normalize.js +0 -277
  327. package/dist/js/modern/features/build/types.js +0 -0
  328. package/dist/js/modern/features/build/utils.js +0 -92
  329. package/dist/js/modern/features/dev/index.js +0 -47
  330. package/dist/js/modern/hooks/build.js +0 -20
  331. package/dist/js/modern/hooks/dev.js +0 -14
  332. package/dist/js/modern/hooks/index.js +0 -15
  333. package/dist/js/modern/index.js +0 -63
  334. package/dist/js/modern/locale/en.js +0 -25
  335. package/dist/js/modern/locale/index.js +0 -10
  336. package/dist/js/modern/locale/zh.js +0 -25
  337. package/dist/js/modern/schema/build-config.js +0 -117
  338. package/dist/js/modern/schema/index.js +0 -4
  339. package/dist/js/modern/schema/output.js +0 -45
  340. package/dist/js/modern/schema/source.js +0 -7
  341. package/dist/js/modern/schema/tools.js +0 -6
  342. package/dist/js/modern/schema/types.js +0 -0
  343. package/dist/js/modern/types.js +0 -0
  344. package/dist/js/modern/utils/babel.js +0 -84
  345. package/dist/js/modern/utils/color.js +0 -2
  346. package/dist/js/modern/utils/constants.js +0 -3
  347. package/dist/js/modern/utils/copy.js +0 -70
  348. package/dist/js/modern/utils/init-env.js +0 -13
  349. package/dist/js/modern/utils/json.js +0 -13
  350. package/dist/js/modern/utils/language.js +0 -6
  351. package/dist/js/modern/utils/logger.js +0 -96
  352. package/dist/js/modern/utils/readline.js +0 -17
  353. package/dist/js/modern/utils/tsconfig.js +0 -13
  354. package/dist/js/modern/utils/tspaths-transform/constants.js +0 -5
  355. package/dist/js/modern/utils/tspaths-transform/index.js +0 -113
  356. package/dist/js/modern/utils/tspaths-transform/utils.js +0 -18
  357. package/dist/js/modern/utils/valide.js +0 -26
  358. package/dist/js/node/cli/build.js +0 -18
  359. package/dist/js/node/cli/dev.js +0 -18
  360. package/dist/js/node/cli/index.js +0 -38
  361. package/dist/js/node/cli/new.js +0 -20
  362. package/dist/js/node/commands/build.js +0 -80
  363. package/dist/js/node/commands/dev.js +0 -52
  364. package/dist/js/node/commands/index.js +0 -19
  365. package/dist/js/node/features/build/build-platform.js +0 -76
  366. package/dist/js/node/features/build/bundle/index.js +0 -17
  367. package/dist/js/node/features/build/bundle/runRollup.js +0 -145
  368. package/dist/js/node/features/build/bundle/runSpeedy.js +0 -186
  369. package/dist/js/node/features/build/bundleless/copy-assets.js +0 -84
  370. package/dist/js/node/features/build/bundleless/generator-dts/index.js +0 -114
  371. package/dist/js/node/features/build/bundleless/generator-dts/utils.js +0 -105
  372. package/dist/js/node/features/build/bundleless/index.js +0 -29
  373. package/dist/js/node/features/build/bundleless/runBabel.js +0 -255
  374. package/dist/js/node/features/build/bundleless/style.js +0 -254
  375. package/dist/js/node/features/build/constants.js +0 -116
  376. package/dist/js/node/features/build/error.js +0 -139
  377. package/dist/js/node/features/build/index.js +0 -128
  378. package/dist/js/node/features/build/legacy-constants.js +0 -111
  379. package/dist/js/node/features/build/logger/index.js +0 -27
  380. package/dist/js/node/features/build/logger/logText.js +0 -66
  381. package/dist/js/node/features/build/logger/loggerManager.js +0 -95
  382. package/dist/js/node/features/build/normalize.js +0 -288
  383. package/dist/js/node/features/build/types.js +0 -0
  384. package/dist/js/node/features/build/utils.js +0 -107
  385. package/dist/js/node/features/dev/index.js +0 -56
  386. package/dist/js/node/hooks/build.js +0 -32
  387. package/dist/js/node/hooks/dev.js +0 -24
  388. package/dist/js/node/hooks/index.js +0 -36
  389. package/dist/js/node/index.js +0 -83
  390. package/dist/js/node/locale/en.js +0 -32
  391. package/dist/js/node/locale/index.js +0 -17
  392. package/dist/js/node/locale/zh.js +0 -32
  393. package/dist/js/node/schema/build-config.js +0 -126
  394. package/dist/js/node/schema/index.js +0 -11
  395. package/dist/js/node/schema/output.js +0 -52
  396. package/dist/js/node/schema/source.js +0 -14
  397. package/dist/js/node/schema/tools.js +0 -13
  398. package/dist/js/node/schema/types.js +0 -0
  399. package/dist/js/node/types.js +0 -0
  400. package/dist/js/node/utils/babel.js +0 -93
  401. package/dist/js/node/utils/color.js +0 -9
  402. package/dist/js/node/utils/constants.js +0 -11
  403. package/dist/js/node/utils/copy.js +0 -79
  404. package/dist/js/node/utils/init-env.js +0 -20
  405. package/dist/js/node/utils/json.js +0 -20
  406. package/dist/js/node/utils/language.js +0 -12
  407. package/dist/js/node/utils/logger.js +0 -107
  408. package/dist/js/node/utils/readline.js +0 -25
  409. package/dist/js/node/utils/tsconfig.js +0 -21
  410. package/dist/js/node/utils/tspaths-transform/constants.js +0 -12
  411. package/dist/js/node/utils/tspaths-transform/index.js +0 -123
  412. package/dist/js/node/utils/tspaths-transform/utils.js +0 -25
  413. package/dist/js/node/utils/valide.js +0 -34
  414. package/dist/types/cli/build.d.ts +0 -3
  415. package/dist/types/cli/dev.d.ts +0 -3
  416. package/dist/types/cli/index.d.ts +0 -3
  417. package/dist/types/cli/new.d.ts +0 -2
  418. package/dist/types/commands/build.d.ts +0 -17
  419. package/dist/types/commands/dev.d.ts +0 -5
  420. package/dist/types/commands/index.d.ts +0 -2
  421. package/dist/types/features/build/build-platform.d.ts +0 -7
  422. package/dist/types/features/build/bundle/index.d.ts +0 -3
  423. package/dist/types/features/build/bundle/runRollup.d.ts +0 -3
  424. package/dist/types/features/build/bundle/runSpeedy.d.ts +0 -10
  425. package/dist/types/features/build/bundleless/copy-assets.d.ts +0 -3
  426. package/dist/types/features/build/bundleless/generator-dts/index.d.ts +0 -3
  427. package/dist/types/features/build/bundleless/generator-dts/utils.d.ts +0 -21
  428. package/dist/types/features/build/bundleless/index.d.ts +0 -4
  429. package/dist/types/features/build/bundleless/runBabel.d.ts +0 -32
  430. package/dist/types/features/build/bundleless/style.d.ts +0 -25
  431. package/dist/types/features/build/constants.d.ts +0 -18
  432. package/dist/types/features/build/index.d.ts +0 -12
  433. package/dist/types/features/build/legacy-constants.d.ts +0 -8
  434. package/dist/types/features/build/logger/index.d.ts +0 -2
  435. package/dist/types/features/build/logger/logText.d.ts +0 -39
  436. package/dist/types/features/build/logger/loggerManager.d.ts +0 -40
  437. package/dist/types/features/build/normalize.d.ts +0 -19
  438. package/dist/types/features/build/types.d.ts +0 -15
  439. package/dist/types/features/build/utils.d.ts +0 -36
  440. package/dist/types/features/dev/index.d.ts +0 -9
  441. package/dist/types/hooks/build.d.ts +0 -46
  442. package/dist/types/hooks/dev.d.ts +0 -20
  443. package/dist/types/hooks/index.d.ts +0 -30
  444. package/dist/types/schema/build-config.d.ts +0 -205
  445. package/dist/types/schema/index.d.ts +0 -217
  446. package/dist/types/schema/output.d.ts +0 -215
  447. package/dist/types/schema/source.d.ts +0 -6
  448. package/dist/types/schema/tools.d.ts +0 -6
  449. package/dist/types/schema/types.d.ts +0 -45
  450. package/dist/types/types.d.ts +0 -51
  451. package/dist/types/utils/babel.d.ts +0 -8
  452. package/dist/types/utils/color.d.ts +0 -2
  453. package/dist/types/utils/constants.d.ts +0 -2
  454. package/dist/types/utils/copy.d.ts +0 -5
  455. package/dist/types/utils/init-env.d.ts +0 -21
  456. package/dist/types/utils/json.d.ts +0 -4
  457. package/dist/types/utils/language.d.ts +0 -1
  458. package/dist/types/utils/logger.d.ts +0 -58
  459. package/dist/types/utils/readline.d.ts +0 -9
  460. package/dist/types/utils/tspaths-transform/constants.d.ts +0 -1
  461. package/dist/types/utils/tspaths-transform/utils.d.ts +0 -4
  462. package/dist/types/utils/valide.d.ts +0 -12
  463. package/types.d.ts +0 -1
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var t={499:(t,e,n)=>{var r=n(343);function json(t){if(t===void 0)t={};var e=r.createFilter(t.include,t.exclude);var n="indent"in t?t.indent:"\t";return{name:"json",transform:function transform(o,s){if(s.slice(-5)!==".json"||!e(s)){return null}try{var u=JSON.parse(o);return{code:r.dataToEsm(u,{preferConst:t.preferConst,compact:t.compact,namedExports:t.namedExports,indent:n}),map:{mappings:""}}}catch(t){var a="Could not parse JSON file";var i=parseInt(/[\d]/.exec(t.message)[0],10);this.warn({message:a,id:s,position:i});return null}}}}t.exports=json},376:(t,e,n)=>{t.exports=n(631)},820:(t,e,n)=>{const r=n(17);const o="\\\\/";const s=`[^${o}]`;const u="\\.";const a="\\+";const i="\\?";const c="\\/";const l="(?=.)";const p="[^/]";const f=`(?:${c}|$)`;const A=`(?:^|${c})`;const _=`${u}{1,2}${f}`;const R=`(?!${u})`;const h=`(?!${A}${_})`;const y=`(?!${u}{0,1}${f})`;const E=`(?!${_})`;const g=`[^.${c}]`;const d=`${p}*?`;const $={DOT_LITERAL:u,PLUS_LITERAL:a,QMARK_LITERAL:i,SLASH_LITERAL:c,ONE_CHAR:l,QMARK:p,END_ANCHOR:f,DOTS_SLASH:_,NO_DOT:R,NO_DOTS:h,NO_DOT_SLASH:y,NO_DOTS_SLASH:E,QMARK_NO_DOT:g,STAR:d,START_ANCHOR:A};const b={...$,SLASH_LITERAL:`[${o}]`,QMARK:s,STAR:`${s}*?`,DOTS_SLASH:`${u}{1,2}(?:[${o}]|$)`,NO_DOT:`(?!${u})`,NO_DOTS:`(?!(?:^|[${o}])${u}{1,2}(?:[${o}]|$))`,NO_DOT_SLASH:`(?!${u}{0,1}(?:[${o}]|$))`,NO_DOTS_SLASH:`(?!${u}{1,2}(?:[${o}]|$))`,QMARK_NO_DOT:`[^.${o}]`,START_ANCHOR:`(?:^|[${o}])`,END_ANCHOR:`(?:[${o}]|$)`};const x={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};t.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:x,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:r.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===true?b:$}}},986:(t,e,n)=>{const r=n(820);const o=n(658);const{MAX_LENGTH:s,POSIX_REGEX_SOURCE:u,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:i,REPLACEMENTS:c}=r;const expandRange=(t,e)=>{if(typeof e.expandRange==="function"){return e.expandRange(...t,e)}t.sort();const n=`[${t.join("-")}]`;try{new RegExp(n)}catch(e){return t.map((t=>o.escapeRegex(t))).join("..")}return n};const syntaxError=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`;const parse=(t,e)=>{if(typeof t!=="string"){throw new TypeError("Expected a string")}t=c[t]||t;const n={...e};const l=typeof n.maxLength==="number"?Math.min(s,n.maxLength):s;let p=t.length;if(p>l){throw new SyntaxError(`Input length: ${p}, exceeds maximum allowed length: ${l}`)}const f={type:"bos",value:"",output:n.prepend||""};const A=[f];const _=n.capture?"":"?:";const R=o.isWindows(e);const h=r.globChars(R);const y=r.extglobChars(h);const{DOT_LITERAL:E,PLUS_LITERAL:g,SLASH_LITERAL:d,ONE_CHAR:$,DOTS_SLASH:b,NO_DOT:x,NO_DOT_SLASH:S,NO_DOTS_SLASH:C,QMARK:v,QMARK_NO_DOT:m,STAR:H,START_ANCHOR:k}=h;const globstar=t=>`(${_}(?:(?!${k}${t.dot?b:E}).)*?)`;const T=n.dot?"":x;const O=n.dot?v:m;let L=n.bash===true?globstar(n):H;if(n.capture){L=`(${L})`}if(typeof n.noext==="boolean"){n.noextglob=n.noext}const w={input:t,index:-1,start:0,dot:n.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:A};t=o.removePrefix(t,w);p=t.length;const N=[];const I=[];const D=[];let B=f;let M;const eos=()=>w.index===p-1;const G=w.peek=(e=1)=>t[w.index+e];const P=w.advance=()=>t[++w.index]||"";const remaining=()=>t.slice(w.index+1);const consume=(t="",e=0)=>{w.consumed+=t;w.index+=e};const append=t=>{w.output+=t.output!=null?t.output:t.value;consume(t.value)};const negate=()=>{let t=1;while(G()==="!"&&(G(2)!=="("||G(3)==="?")){P();w.start++;t++}if(t%2===0){return false}w.negated=true;w.start++;return true};const increment=t=>{w[t]++;D.push(t)};const decrement=t=>{w[t]--;D.pop()};const push=t=>{if(B.type==="globstar"){const e=w.braces>0&&(t.type==="comma"||t.type==="brace");const n=t.extglob===true||N.length&&(t.type==="pipe"||t.type==="paren");if(t.type!=="slash"&&t.type!=="paren"&&!e&&!n){w.output=w.output.slice(0,-B.output.length);B.type="star";B.value="*";B.output=L;w.output+=B.output}}if(N.length&&t.type!=="paren"){N[N.length-1].inner+=t.value}if(t.value||t.output)append(t);if(B&&B.type==="text"&&t.type==="text"){B.value+=t.value;B.output=(B.output||"")+t.value;return}t.prev=B;A.push(t);B=t};const extglobOpen=(t,e)=>{const r={...y[e],conditions:1,inner:""};r.prev=B;r.parens=w.parens;r.output=w.output;const o=(n.capture?"(":"")+r.open;increment("parens");push({type:t,value:e,output:w.output?"":$});push({type:"paren",extglob:true,value:P(),output:o});N.push(r)};const extglobClose=t=>{let r=t.close+(n.capture?")":"");let o;if(t.type==="negate"){let s=L;if(t.inner&&t.inner.length>1&&t.inner.includes("/")){s=globstar(n)}if(s!==L||eos()||/^\)+$/.test(remaining())){r=t.close=`)$))${s}`}if(t.inner.includes("*")&&(o=remaining())&&/^\.[^\\/.]+$/.test(o)){const n=parse(o,{...e,fastpaths:false}).output;r=t.close=`)${n})${s})`}if(t.prev.type==="bos"){w.negatedExtglob=true}}push({type:"paren",extglob:true,value:M,output:r});decrement("parens")};if(n.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(t)){let r=false;let s=t.replace(i,((t,e,n,o,s,u)=>{if(o==="\\"){r=true;return t}if(o==="?"){if(e){return e+o+(s?v.repeat(s.length):"")}if(u===0){return O+(s?v.repeat(s.length):"")}return v.repeat(n.length)}if(o==="."){return E.repeat(n.length)}if(o==="*"){if(e){return e+o+(s?L:"")}return L}return e?t:`\\${t}`}));if(r===true){if(n.unescape===true){s=s.replace(/\\/g,"")}else{s=s.replace(/\\+/g,(t=>t.length%2===0?"\\\\":t?"\\":""))}}if(s===t&&n.contains===true){w.output=t;return w}w.output=o.wrapOutput(s,w,e);return w}while(!eos()){M=P();if(M==="\0"){continue}if(M==="\\"){const t=G();if(t==="/"&&n.bash!==true){continue}if(t==="."||t===";"){continue}if(!t){M+="\\";push({type:"text",value:M});continue}const e=/^\\+/.exec(remaining());let r=0;if(e&&e[0].length>2){r=e[0].length;w.index+=r;if(r%2!==0){M+="\\"}}if(n.unescape===true){M=P()}else{M+=P()}if(w.brackets===0){push({type:"text",value:M});continue}}if(w.brackets>0&&(M!=="]"||B.value==="["||B.value==="[^")){if(n.posix!==false&&M===":"){const t=B.value.slice(1);if(t.includes("[")){B.posix=true;if(t.includes(":")){const t=B.value.lastIndexOf("[");const e=B.value.slice(0,t);const n=B.value.slice(t+2);const r=u[n];if(r){B.value=e+r;w.backtrack=true;P();if(!f.output&&A.indexOf(B)===1){f.output=$}continue}}}}if(M==="["&&G()!==":"||M==="-"&&G()==="]"){M=`\\${M}`}if(M==="]"&&(B.value==="["||B.value==="[^")){M=`\\${M}`}if(n.posix===true&&M==="!"&&B.value==="["){M="^"}B.value+=M;append({value:M});continue}if(w.quotes===1&&M!=='"'){M=o.escapeRegex(M);B.value+=M;append({value:M});continue}if(M==='"'){w.quotes=w.quotes===1?0:1;if(n.keepQuotes===true){push({type:"text",value:M})}continue}if(M==="("){increment("parens");push({type:"paren",value:M});continue}if(M===")"){if(w.parens===0&&n.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const t=N[N.length-1];if(t&&w.parens===t.parens+1){extglobClose(N.pop());continue}push({type:"paren",value:M,output:w.parens?")":"\\)"});decrement("parens");continue}if(M==="["){if(n.nobracket===true||!remaining().includes("]")){if(n.nobracket!==true&&n.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}M=`\\${M}`}else{increment("brackets")}push({type:"bracket",value:M});continue}if(M==="]"){if(n.nobracket===true||B&&B.type==="bracket"&&B.value.length===1){push({type:"text",value:M,output:`\\${M}`});continue}if(w.brackets===0){if(n.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:M,output:`\\${M}`});continue}decrement("brackets");const t=B.value.slice(1);if(B.posix!==true&&t[0]==="^"&&!t.includes("/")){M=`/${M}`}B.value+=M;append({value:M});if(n.literalBrackets===false||o.hasRegexChars(t)){continue}const e=o.escapeRegex(B.value);w.output=w.output.slice(0,-B.value.length);if(n.literalBrackets===true){w.output+=e;B.value=e;continue}B.value=`(${_}${e}|${B.value})`;w.output+=B.value;continue}if(M==="{"&&n.nobrace!==true){increment("braces");const t={type:"brace",value:M,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};I.push(t);push(t);continue}if(M==="}"){const t=I[I.length-1];if(n.nobrace===true||!t){push({type:"text",value:M,output:M});continue}let e=")";if(t.dots===true){const t=A.slice();const r=[];for(let e=t.length-1;e>=0;e--){A.pop();if(t[e].type==="brace"){break}if(t[e].type!=="dots"){r.unshift(t[e].value)}}e=expandRange(r,n);w.backtrack=true}if(t.comma!==true&&t.dots!==true){const n=w.output.slice(0,t.outputIndex);const r=w.tokens.slice(t.tokensIndex);t.value=t.output="\\{";M=e="\\}";w.output=n;for(const t of r){w.output+=t.output||t.value}}push({type:"brace",value:M,output:e});decrement("braces");I.pop();continue}if(M==="|"){if(N.length>0){N[N.length-1].conditions++}push({type:"text",value:M});continue}if(M===","){let t=M;const e=I[I.length-1];if(e&&D[D.length-1]==="braces"){e.comma=true;t="|"}push({type:"comma",value:M,output:t});continue}if(M==="/"){if(B.type==="dot"&&w.index===w.start+1){w.start=w.index+1;w.consumed="";w.output="";A.pop();B=f;continue}push({type:"slash",value:M,output:d});continue}if(M==="."){if(w.braces>0&&B.type==="dot"){if(B.value===".")B.output=E;const t=I[I.length-1];B.type="dots";B.output+=M;B.value+=M;t.dots=true;continue}if(w.braces+w.parens===0&&B.type!=="bos"&&B.type!=="slash"){push({type:"text",value:M,output:E});continue}push({type:"dot",value:M,output:E});continue}if(M==="?"){const t=B&&B.value==="(";if(!t&&n.noextglob!==true&&G()==="("&&G(2)!=="?"){extglobOpen("qmark",M);continue}if(B&&B.type==="paren"){const t=G();let e=M;if(t==="<"&&!o.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(B.value==="("&&!/[!=<:]/.test(t)||t==="<"&&!/<([!=]|\w+>)/.test(remaining())){e=`\\${M}`}push({type:"text",value:M,output:e});continue}if(n.dot!==true&&(B.type==="slash"||B.type==="bos")){push({type:"qmark",value:M,output:m});continue}push({type:"qmark",value:M,output:v});continue}if(M==="!"){if(n.noextglob!==true&&G()==="("){if(G(2)!=="?"||!/[!=<:]/.test(G(3))){extglobOpen("negate",M);continue}}if(n.nonegate!==true&&w.index===0){negate();continue}}if(M==="+"){if(n.noextglob!==true&&G()==="("&&G(2)!=="?"){extglobOpen("plus",M);continue}if(B&&B.value==="("||n.regex===false){push({type:"plus",value:M,output:g});continue}if(B&&(B.type==="bracket"||B.type==="paren"||B.type==="brace")||w.parens>0){push({type:"plus",value:M});continue}push({type:"plus",value:g});continue}if(M==="@"){if(n.noextglob!==true&&G()==="("&&G(2)!=="?"){push({type:"at",extglob:true,value:M,output:""});continue}push({type:"text",value:M});continue}if(M!=="*"){if(M==="$"||M==="^"){M=`\\${M}`}const t=a.exec(remaining());if(t){M+=t[0];w.index+=t[0].length}push({type:"text",value:M});continue}if(B&&(B.type==="globstar"||B.star===true)){B.type="star";B.star=true;B.value+=M;B.output=L;w.backtrack=true;w.globstar=true;consume(M);continue}let e=remaining();if(n.noextglob!==true&&/^\([^?]/.test(e)){extglobOpen("star",M);continue}if(B.type==="star"){if(n.noglobstar===true){consume(M);continue}const r=B.prev;const o=r.prev;const s=r.type==="slash"||r.type==="bos";const u=o&&(o.type==="star"||o.type==="globstar");if(n.bash===true&&(!s||e[0]&&e[0]!=="/")){push({type:"star",value:M,output:""});continue}const a=w.braces>0&&(r.type==="comma"||r.type==="brace");const i=N.length&&(r.type==="pipe"||r.type==="paren");if(!s&&r.type!=="paren"&&!a&&!i){push({type:"star",value:M,output:""});continue}while(e.slice(0,3)==="/**"){const n=t[w.index+4];if(n&&n!=="/"){break}e=e.slice(3);consume("/**",3)}if(r.type==="bos"&&eos()){B.type="globstar";B.value+=M;B.output=globstar(n);w.output=B.output;w.globstar=true;consume(M);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&!u&&eos()){w.output=w.output.slice(0,-(r.output+B.output).length);r.output=`(?:${r.output}`;B.type="globstar";B.output=globstar(n)+(n.strictSlashes?")":"|$)");B.value+=M;w.globstar=true;w.output+=r.output+B.output;consume(M);continue}if(r.type==="slash"&&r.prev.type!=="bos"&&e[0]==="/"){const t=e[1]!==void 0?"|$":"";w.output=w.output.slice(0,-(r.output+B.output).length);r.output=`(?:${r.output}`;B.type="globstar";B.output=`${globstar(n)}${d}|${d}${t})`;B.value+=M;w.output+=r.output+B.output;w.globstar=true;consume(M+P());push({type:"slash",value:"/",output:""});continue}if(r.type==="bos"&&e[0]==="/"){B.type="globstar";B.value+=M;B.output=`(?:^|${d}|${globstar(n)}${d})`;w.output=B.output;w.globstar=true;consume(M+P());push({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-B.output.length);B.type="globstar";B.output=globstar(n);B.value+=M;w.output+=B.output;w.globstar=true;consume(M);continue}const r={type:"star",value:M,output:L};if(n.bash===true){r.output=".*?";if(B.type==="bos"||B.type==="slash"){r.output=T+r.output}push(r);continue}if(B&&(B.type==="bracket"||B.type==="paren")&&n.regex===true){r.output=M;push(r);continue}if(w.index===w.start||B.type==="slash"||B.type==="dot"){if(B.type==="dot"){w.output+=S;B.output+=S}else if(n.dot===true){w.output+=C;B.output+=C}else{w.output+=T;B.output+=T}if(G()!=="*"){w.output+=$;B.output+=$}}push(r)}while(w.brackets>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));w.output=o.escapeLast(w.output,"[");decrement("brackets")}while(w.parens>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));w.output=o.escapeLast(w.output,"(");decrement("parens")}while(w.braces>0){if(n.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));w.output=o.escapeLast(w.output,"{");decrement("braces")}if(n.strictSlashes!==true&&(B.type==="star"||B.type==="bracket")){push({type:"maybe_slash",value:"",output:`${d}?`})}if(w.backtrack===true){w.output="";for(const t of w.tokens){w.output+=t.output!=null?t.output:t.value;if(t.suffix){w.output+=t.suffix}}}return w};parse.fastpaths=(t,e)=>{const n={...e};const u=typeof n.maxLength==="number"?Math.min(s,n.maxLength):s;const a=t.length;if(a>u){throw new SyntaxError(`Input length: ${a}, exceeds maximum allowed length: ${u}`)}t=c[t]||t;const i=o.isWindows(e);const{DOT_LITERAL:l,SLASH_LITERAL:p,ONE_CHAR:f,DOTS_SLASH:A,NO_DOT:_,NO_DOTS:R,NO_DOTS_SLASH:h,STAR:y,START_ANCHOR:E}=r.globChars(i);const g=n.dot?R:_;const d=n.dot?h:_;const $=n.capture?"":"?:";const b={negated:false,prefix:""};let x=n.bash===true?".*?":y;if(n.capture){x=`(${x})`}const globstar=t=>{if(t.noglobstar===true)return x;return`(${$}(?:(?!${E}${t.dot?A:l}).)*?)`};const create=t=>{switch(t){case"*":return`${g}${f}${x}`;case".*":return`${l}${f}${x}`;case"*.*":return`${g}${x}${l}${f}${x}`;case"*/*":return`${g}${x}${p}${f}${d}${x}`;case"**":return g+globstar(n);case"**/*":return`(?:${g}${globstar(n)}${p})?${d}${f}${x}`;case"**/*.*":return`(?:${g}${globstar(n)}${p})?${d}${x}${l}${f}${x}`;case"**/.*":return`(?:${g}${globstar(n)}${p})?${l}${f}${x}`;default:{const e=/^(.*?)\.(\w+)$/.exec(t);if(!e)return;const n=create(e[1]);if(!n)return;return n+l+e[2]}}};const S=o.removePrefix(t,b);let C=create(S);if(C&&n.strictSlashes!==true){C+=`${p}?`}return C};t.exports=parse},631:(t,e,n)=>{const r=n(17);const o=n(640);const s=n(986);const u=n(658);const a=n(820);const isObject=t=>t&&typeof t==="object"&&!Array.isArray(t);const picomatch=(t,e,n=false)=>{if(Array.isArray(t)){const r=t.map((t=>picomatch(t,e,n)));const arrayMatcher=t=>{for(const e of r){const n=e(t);if(n)return n}return false};return arrayMatcher}const r=isObject(t)&&t.tokens&&t.input;if(t===""||typeof t!=="string"&&!r){throw new TypeError("Expected pattern to be a non-empty string")}const o=e||{};const s=u.isWindows(e);const a=r?picomatch.compileRe(t,e):picomatch.makeRe(t,e,false,true);const i=a.state;delete a.state;let isIgnored=()=>false;if(o.ignore){const t={...e,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(o.ignore,t,n)}const matcher=(n,r=false)=>{const{isMatch:u,match:c,output:l}=picomatch.test(n,a,e,{glob:t,posix:s});const p={glob:t,state:i,regex:a,posix:s,input:n,output:l,match:c,isMatch:u};if(typeof o.onResult==="function"){o.onResult(p)}if(u===false){p.isMatch=false;return r?p:false}if(isIgnored(n)){if(typeof o.onIgnore==="function"){o.onIgnore(p)}p.isMatch=false;return r?p:false}if(typeof o.onMatch==="function"){o.onMatch(p)}return r?p:true};if(n){matcher.state=i}return matcher};picomatch.test=(t,e,n,{glob:r,posix:o}={})=>{if(typeof t!=="string"){throw new TypeError("Expected input to be a string")}if(t===""){return{isMatch:false,output:""}}const s=n||{};const a=s.format||(o?u.toPosixSlashes:null);let i=t===r;let c=i&&a?a(t):t;if(i===false){c=a?a(t):t;i=c===r}if(i===false||s.capture===true){if(s.matchBase===true||s.basename===true){i=picomatch.matchBase(t,e,n,o)}else{i=e.exec(c)}}return{isMatch:Boolean(i),match:i,output:c}};picomatch.matchBase=(t,e,n,o=u.isWindows(n))=>{const s=e instanceof RegExp?e:picomatch.makeRe(e,n);return s.test(r.basename(t))};picomatch.isMatch=(t,e,n)=>picomatch(e,n)(t);picomatch.parse=(t,e)=>{if(Array.isArray(t))return t.map((t=>picomatch.parse(t,e)));return s(t,{...e,fastpaths:false})};picomatch.scan=(t,e)=>o(t,e);picomatch.compileRe=(t,e,n=false,r=false)=>{if(n===true){return t.output}const o=e||{};const s=o.contains?"":"^";const u=o.contains?"":"$";let a=`${s}(?:${t.output})${u}`;if(t&&t.negated===true){a=`^(?!${a}).*$`}const i=picomatch.toRegex(a,e);if(r===true){i.state=t}return i};picomatch.makeRe=(t,e={},n=false,r=false)=>{if(!t||typeof t!=="string"){throw new TypeError("Expected a non-empty string")}let o={negated:false,fastpaths:true};if(e.fastpaths!==false&&(t[0]==="."||t[0]==="*")){o.output=s.fastpaths(t,e)}if(!o.output){o=s(t,e)}return picomatch.compileRe(o,e,n,r)};picomatch.toRegex=(t,e)=>{try{const n=e||{};return new RegExp(t,n.flags||(n.nocase?"i":""))}catch(t){if(e&&e.debug===true)throw t;return/$^/}};picomatch.constants=a;t.exports=picomatch},640:(t,e,n)=>{const r=n(658);const{CHAR_ASTERISK:o,CHAR_AT:s,CHAR_BACKWARD_SLASH:u,CHAR_COMMA:a,CHAR_DOT:i,CHAR_EXCLAMATION_MARK:c,CHAR_FORWARD_SLASH:l,CHAR_LEFT_CURLY_BRACE:p,CHAR_LEFT_PARENTHESES:f,CHAR_LEFT_SQUARE_BRACKET:A,CHAR_PLUS:_,CHAR_QUESTION_MARK:R,CHAR_RIGHT_CURLY_BRACE:h,CHAR_RIGHT_PARENTHESES:y,CHAR_RIGHT_SQUARE_BRACKET:E}=n(820);const isPathSeparator=t=>t===l||t===u;const depth=t=>{if(t.isPrefix!==true){t.depth=t.isGlobstar?Infinity:1}};const scan=(t,e)=>{const n=e||{};const g=t.length-1;const d=n.parts===true||n.scanToEnd===true;const $=[];const b=[];const x=[];let S=t;let C=-1;let v=0;let m=0;let H=false;let k=false;let T=false;let O=false;let L=false;let w=false;let N=false;let I=false;let D=false;let B=false;let M=0;let G;let P;let U={value:"",depth:0,isGlob:false};const eos=()=>C>=g;const peek=()=>S.charCodeAt(C+1);const advance=()=>{G=P;return S.charCodeAt(++C)};while(C<g){P=advance();let t;if(P===u){N=U.backslashes=true;P=advance();if(P===p){w=true}continue}if(w===true||P===p){M++;while(eos()!==true&&(P=advance())){if(P===u){N=U.backslashes=true;advance();continue}if(P===p){M++;continue}if(w!==true&&P===i&&(P=advance())===i){H=U.isBrace=true;T=U.isGlob=true;B=true;if(d===true){continue}break}if(w!==true&&P===a){H=U.isBrace=true;T=U.isGlob=true;B=true;if(d===true){continue}break}if(P===h){M--;if(M===0){w=false;H=U.isBrace=true;B=true;break}}}if(d===true){continue}break}if(P===l){$.push(C);b.push(U);U={value:"",depth:0,isGlob:false};if(B===true)continue;if(G===i&&C===v+1){v+=2;continue}m=C+1;continue}if(n.noext!==true){const t=P===_||P===s||P===o||P===R||P===c;if(t===true&&peek()===f){T=U.isGlob=true;O=U.isExtglob=true;B=true;if(P===c&&C===v){D=true}if(d===true){while(eos()!==true&&(P=advance())){if(P===u){N=U.backslashes=true;P=advance();continue}if(P===y){T=U.isGlob=true;B=true;break}}continue}break}}if(P===o){if(G===o)L=U.isGlobstar=true;T=U.isGlob=true;B=true;if(d===true){continue}break}if(P===R){T=U.isGlob=true;B=true;if(d===true){continue}break}if(P===A){while(eos()!==true&&(t=advance())){if(t===u){N=U.backslashes=true;advance();continue}if(t===E){k=U.isBracket=true;T=U.isGlob=true;B=true;break}}if(d===true){continue}break}if(n.nonegate!==true&&P===c&&C===v){I=U.negated=true;v++;continue}if(n.noparen!==true&&P===f){T=U.isGlob=true;if(d===true){while(eos()!==true&&(P=advance())){if(P===f){N=U.backslashes=true;P=advance();continue}if(P===y){B=true;break}}continue}break}if(T===true){B=true;if(d===true){continue}break}}if(n.noext===true){O=false;T=false}let F=S;let j="";let K="";if(v>0){j=S.slice(0,v);S=S.slice(v);m-=v}if(F&&T===true&&m>0){F=S.slice(0,m);K=S.slice(m)}else if(T===true){F="";K=S}else{F=S}if(F&&F!==""&&F!=="/"&&F!==S){if(isPathSeparator(F.charCodeAt(F.length-1))){F=F.slice(0,-1)}}if(n.unescape===true){if(K)K=r.removeBackslashes(K);if(F&&N===true){F=r.removeBackslashes(F)}}const X={prefix:j,input:t,start:v,base:F,glob:K,isBrace:H,isBracket:k,isGlob:T,isExtglob:O,isGlobstar:L,negated:I,negatedExtglob:D};if(n.tokens===true){X.maxDepth=0;if(!isPathSeparator(P)){b.push(U)}X.tokens=b}if(n.parts===true||n.tokens===true){let e;for(let r=0;r<$.length;r++){const o=e?e+1:v;const s=$[r];const u=t.slice(o,s);if(n.tokens){if(r===0&&v!==0){b[r].isPrefix=true;b[r].value=j}else{b[r].value=u}depth(b[r]);X.maxDepth+=b[r].depth}if(r!==0||u!==""){x.push(u)}e=s}if(e&&e+1<t.length){const r=t.slice(e+1);x.push(r);if(n.tokens){b[b.length-1].value=r;depth(b[b.length-1]);X.maxDepth+=b[b.length-1].depth}}X.slashes=$;X.parts=x}return X};t.exports=scan},658:(t,e,n)=>{const r=n(17);const o=process.platform==="win32";const{REGEX_BACKSLASH:s,REGEX_REMOVE_BACKSLASH:u,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:i}=n(820);e.isObject=t=>t!==null&&typeof t==="object"&&!Array.isArray(t);e.hasRegexChars=t=>a.test(t);e.isRegexChar=t=>t.length===1&&e.hasRegexChars(t);e.escapeRegex=t=>t.replace(i,"\\$1");e.toPosixSlashes=t=>t.replace(s,"/");e.removeBackslashes=t=>t.replace(u,(t=>t==="\\"?"":t));e.supportsLookbehinds=()=>{const t=process.version.slice(1).split(".").map(Number);if(t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10){return true}return false};e.isWindows=t=>{if(t&&typeof t.windows==="boolean"){return t.windows}return o===true||r.sep==="\\"};e.escapeLast=(t,n,r)=>{const o=t.lastIndexOf(n,r);if(o===-1)return t;if(t[o-1]==="\\")return e.escapeLast(t,n,o-1);return`${t.slice(0,o)}\\${t.slice(o)}`};e.removePrefix=(t,e={})=>{let n=t;if(n.startsWith("./")){n=n.slice(2);e.prefix="./"}return n};e.wrapOutput=(t,e={},n={})=>{const r=n.contains?"":"^";const o=n.contains?"":"$";let s=`${r}(?:${t})${o}`;if(e.negated===true){s=`(?:^(?!${s}).*$)`}return s}},17:t=>{t.exports=require("path")},343:(t,e,n)=>{Object.defineProperty(e,"__esModule",{value:true});function _interopDefault(t){return t&&typeof t==="object"&&"default"in t?t["default"]:t}var r=n(17);var o=_interopDefault(n(376));const s=function addExtension(t,e=".js"){let n=`${t}`;if(!r.extname(t))n+=e;return n};function walk(t,{enter:e,leave:n}){return visit(t,null,e,n)}let u=false;let a=false;let i=null;const c={skip:()=>u=true,remove:()=>a=true,replace:t=>i=t};function replace(t,e,n,r){if(t){if(n!==null){t[e][n]=r}else{t[e]=r}}}function remove(t,e,n){if(t){if(n!==null){t[e].splice(n,1)}else{delete t[e]}}}function visit(t,e,n,r,o,s){if(t){if(n){const r=u;const l=a;const p=i;u=false;a=false;i=null;n.call(c,t,e,o,s);if(i){t=i;replace(e,o,s,t)}if(a){remove(e,o,s)}const f=u;const A=a;u=r;a=l;i=p;if(f)return t;if(A)return null}for(const e in t){const o=t[e];if(typeof o!=="object"){continue}else if(Array.isArray(o)){for(let s=0,u=0;s<o.length;s+=1,u+=1){if(o[s]!==null&&typeof o[s].type==="string"){if(!visit(o[s],t,n,r,e,u)){s--}}}}else if(o!==null&&typeof o.type==="string"){visit(o,t,n,r,e,null)}}if(r){const n=i;const u=a;i=null;a=false;r.call(c,t,e,o,s);if(i){t=i;replace(e,o,s,t)}if(a){remove(e,o,s)}const l=a;i=n;a=u;if(l)return null}}return t}const l={ArrayPattern(t,e){for(const n of e.elements){if(n)l[n.type](t,n)}},AssignmentPattern(t,e){l[e.left.type](t,e.left)},Identifier(t,e){t.push(e.name)},MemberExpression(){},ObjectPattern(t,e){for(const n of e.properties){if(n.type==="RestElement"){l.RestElement(t,n)}else{l[n.value.type](t,n.value)}}},RestElement(t,e){l[e.argument.type](t,e.argument)}};const p=function extractAssignedNames(t){const e=[];l[t.type](e,t);return e};const f={const:true,let:true};class Scope{constructor(t={}){this.parent=t.parent;this.isBlockScope=!!t.block;this.declarations=Object.create(null);if(t.params){t.params.forEach((t=>{p(t).forEach((t=>{this.declarations[t]=true}))}))}}addDeclaration(t,e,n){if(!e&&this.isBlockScope){this.parent.addDeclaration(t,e,n)}else if(t.id){p(t.id).forEach((t=>{this.declarations[t]=true}))}}contains(t){return this.declarations[t]||(this.parent?this.parent.contains(t):false)}}const A=function attachScopes(t,e="scope"){let n=new Scope;walk(t,{enter(t,r){const o=t;if(/(Function|Class)Declaration/.test(o.type)){n.addDeclaration(o,false,false)}if(o.type==="VariableDeclaration"){const{kind:t}=o;const e=f[t];const s=r?r.type:"";if(!(e&&/ForOfStatement/.test(s))){o.declarations.forEach((t=>{n.addDeclaration(t,e,true)}))}}let s;if(/Function/.test(o.type)){const t=o;s=new Scope({parent:n,block:false,params:t.params});if(t.type==="FunctionExpression"&&t.id){s.addDeclaration(t,false,false)}}if(o.type==="BlockStatement"&&!/Function/.test(r.type)){s=new Scope({parent:n,block:true})}if(o.type==="CatchClause"){s=new Scope({parent:n,params:o.param?[o.param]:[],block:true})}if(s){Object.defineProperty(o,e,{value:s,configurable:true});n=s}},leave(t){const r=t;if(r[e])n=n.parent}});return n};function isArray(t){return Array.isArray(t)}function ensureArray(t){if(isArray(t))return t;if(t==null)return[];return[t]}function getMatcherString(t,e){if(e===false){return t}const n=r.resolve(e||"").split(r.sep).join("/").replace(/[-^$*+?.()|[\]{}]/g,"\\$&");return r.posix.join(n,t)}const _=function createFilter(t,e,n){const s=n&&n.resolve;const getMatcher=t=>t instanceof RegExp?t:{test:e=>{const n=getMatcherString(t,s);const r=o(n,{dot:true});const u=r(e);return u}};const u=ensureArray(t).map(getMatcher);const a=ensureArray(e).map(getMatcher);return function result(t){if(typeof t!=="string")return false;if(/\0/.test(t))return false;const e=t.split(r.sep).join("/");for(let t=0;t<a.length;++t){const n=a[t];if(n.test(e))return false}for(let t=0;t<u.length;++t){const n=u[t];if(n.test(e))return true}return!u.length}};const R="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public";const h="arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl";const y=new Set(`${R} ${h}`.split(" "));y.add("");const E=function makeLegalIdentifier(t){let e=t.replace(/-(\w)/g,((t,e)=>e.toUpperCase())).replace(/[^$_a-zA-Z0-9]/g,"_");if(/\d/.test(e[0])||y.has(e)){e=`_${e}`}return e||"_"};function stringify(t){return(JSON.stringify(t)||"undefined").replace(/[\u2028\u2029]/g,(t=>`\\u${`000${t.charCodeAt(0).toString(16)}`.slice(-4)}`))}function serializeArray(t,e,n){let r="[";const o=e?`\n${n}${e}`:"";for(let s=0;s<t.length;s++){const u=t[s];r+=`${s>0?",":""}${o}${serialize(u,e,n+e)}`}return`${r}${e?`\n${n}`:""}]`}function serializeObject(t,e,n){let r="{";const o=e?`\n${n}${e}`:"";const s=Object.entries(t);for(let t=0;t<s.length;t++){const[u,a]=s[t];const i=E(u)===u?u:stringify(u);r+=`${t>0?",":""}${o}${i}:${e?" ":""}${serialize(a,e,n+e)}`}return`${r}${e?`\n${n}`:""}}`}function serialize(t,e,n){if(t===Infinity)return"Infinity";if(t===-Infinity)return"-Infinity";if(t===0&&1/t===-Infinity)return"-0";if(t instanceof Date)return`new Date(${t.getTime()})`;if(t instanceof RegExp)return t.toString();if(t!==t)return"NaN";if(Array.isArray(t))return serializeArray(t,e,n);if(t===null)return"null";if(typeof t==="object")return serializeObject(t,e,n);return stringify(t)}const g=function dataToEsm(t,e={}){const n=e.compact?"":"indent"in e?e.indent:"\t";const r=e.compact?"":" ";const o=e.compact?"":"\n";const s=e.preferConst?"const":"var";if(e.namedExports===false||typeof t!=="object"||Array.isArray(t)||t instanceof Date||t instanceof RegExp||t===null){const o=serialize(t,e.compact?null:n,"");const s=r||(/^[{[\-\/]/.test(o)?"":" ");return`export default${s}${o};`}let u="";const a=[];for(const[i,c]of Object.entries(t)){if(i===E(i)){if(e.objectShorthand)a.push(i);else a.push(`${i}:${r}${i}`);u+=`export ${s} ${i}${r}=${r}${serialize(c,e.compact?null:n,"")};${o}`}else{a.push(`${stringify(i)}:${r}${serialize(c,e.compact?null:n,"")}`)}}return`${u}export default${r}{${o}${n}${a.join(`,${o}${n}`)}${o}};${o}`};var d={addExtension:s,attachScopes:A,createFilter:_,dataToEsm:g,extractAssignedNames:p,makeLegalIdentifier:E};e.addExtension=s;e.attachScopes=A;e.createFilter=_;e.dataToEsm=g;e["default"]=d;e.extractAssignedNames=p;e.makeLegalIdentifier=E}};var e={};function __nccwpck_require__(n){var r=e[n];if(r!==undefined){return r.exports}var o=e[n]={exports:{}};var s=true;try{t[n](o,o.exports,__nccwpck_require__);s=false}finally{if(s)delete e[n]}return o.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var n=__nccwpck_require__(499);module.exports=n})();
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 RollupJS Plugin Contributors (https://github.com/rollup/plugins/graphs/contributors)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1 @@
1
+ {"name":"@rollup/plugin-json","author":"rollup","version":"4.1.0","license":"MIT","types":"types/index.d.ts"}