@bleedingdev/modern-js-utils 3.2.0-ultramodern.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +26 -0
  3. package/dist/cjs/cli/alias.js +82 -0
  4. package/dist/cjs/cli/applyOptionsChain.js +50 -0
  5. package/dist/cjs/cli/commands.js +69 -0
  6. package/dist/cjs/cli/common.js +59 -0
  7. package/dist/cjs/cli/config.js +39 -0
  8. package/dist/cjs/cli/constants.js +136 -0
  9. package/dist/cjs/cli/ensure.js +56 -0
  10. package/dist/cjs/cli/fs.js +46 -0
  11. package/dist/cjs/cli/get/config.js +48 -0
  12. package/dist/cjs/cli/get/data.js +106 -0
  13. package/dist/cjs/cli/get/index.js +112 -0
  14. package/dist/cjs/cli/index.js +212 -0
  15. package/dist/cjs/cli/is/config.js +86 -0
  16. package/dist/cjs/cli/is/env.js +52 -0
  17. package/dist/cjs/cli/is/index.js +79 -0
  18. package/dist/cjs/cli/is/project.js +147 -0
  19. package/dist/cjs/cli/is/type.js +84 -0
  20. package/dist/cjs/cli/logger.js +39 -0
  21. package/dist/cjs/cli/modulePath.js +87 -0
  22. package/dist/cjs/cli/monorepo.js +110 -0
  23. package/dist/cjs/cli/package.js +97 -0
  24. package/dist/cjs/cli/path.js +111 -0
  25. package/dist/cjs/cli/port.js +79 -0
  26. package/dist/cjs/cli/prettyInstructions.js +117 -0
  27. package/dist/cjs/cli/require.js +127 -0
  28. package/dist/cjs/cli/route.js +76 -0
  29. package/dist/cjs/cli/runtimeExports.js +86 -0
  30. package/dist/cjs/cli/tsconfig.js +51 -0
  31. package/dist/cjs/cli/version.js +67 -0
  32. package/dist/cjs/cli/watch.js +87 -0
  33. package/dist/cjs/compiled.js +209 -0
  34. package/dist/cjs/import.js +56 -0
  35. package/dist/cjs/index.js +72 -0
  36. package/dist/cjs/universal/constants.js +84 -0
  37. package/dist/cjs/universal/index.js +36 -0
  38. package/dist/cjs/universal/path.js +36 -0
  39. package/dist/cjs/universal/pluginDagSort.js +75 -0
  40. package/dist/compiled/address/index.js +171 -0
  41. package/dist/compiled/address/lib/address.d.ts +28 -0
  42. package/dist/compiled/address/package.json +1 -0
  43. package/dist/compiled/browserslist/index.d.ts +178 -0
  44. package/dist/compiled/browserslist/index.js +1329 -0
  45. package/dist/compiled/browserslist/license +20 -0
  46. package/dist/compiled/browserslist/package.json +1 -0
  47. package/dist/compiled/chalk/index.d.ts +415 -0
  48. package/dist/compiled/chalk/index.js +2368 -0
  49. package/dist/compiled/chalk/license +9 -0
  50. package/dist/compiled/chalk/package.json +1 -0
  51. package/dist/compiled/chokidar/anymatch/index.d.ts +19 -0
  52. package/dist/compiled/chokidar/fsevents.node +0 -0
  53. package/dist/compiled/chokidar/index.js +4162 -0
  54. package/dist/compiled/chokidar/index.js.LICENSE.txt +41 -0
  55. package/dist/compiled/chokidar/license +21 -0
  56. package/dist/compiled/chokidar/package.json +1 -0
  57. package/dist/compiled/chokidar/types/index.d.ts +188 -0
  58. package/dist/compiled/commander/index.js +1540 -0
  59. package/dist/compiled/commander/index.mjs +2 -0
  60. package/dist/compiled/commander/license +22 -0
  61. package/dist/compiled/commander/package.json +1 -0
  62. package/dist/compiled/commander/typings/index.d.ts +890 -0
  63. package/dist/compiled/debug/index.d.ts +54 -0
  64. package/dist/compiled/debug/index.js +621 -0
  65. package/dist/compiled/debug/license +20 -0
  66. package/dist/compiled/debug/ms/index.d.ts +25 -0
  67. package/dist/compiled/debug/package.json +1 -0
  68. package/dist/compiled/dotenv/index.js +101 -0
  69. package/dist/compiled/dotenv/license +23 -0
  70. package/dist/compiled/dotenv/package.json +1 -0
  71. package/dist/compiled/dotenv/types/index.d.ts +59 -0
  72. package/dist/compiled/dotenv-expand/index.d.ts +15 -0
  73. package/dist/compiled/dotenv-expand/index.js +54 -0
  74. package/dist/compiled/dotenv-expand/license +24 -0
  75. package/dist/compiled/dotenv-expand/package.json +1 -0
  76. package/dist/compiled/execa/index.d.ts +564 -0
  77. package/dist/compiled/execa/index.js +1738 -0
  78. package/dist/compiled/execa/license +9 -0
  79. package/dist/compiled/execa/package.json +1 -0
  80. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
  81. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +12 -0
  82. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
  83. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +20 -0
  84. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
  85. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
  86. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +12 -0
  87. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
  88. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +16 -0
  89. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +4 -0
  90. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +14 -0
  91. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
  92. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
  93. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
  94. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +30 -0
  95. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +8 -0
  96. package/dist/compiled/fast-glob/index.js +4665 -0
  97. package/dist/compiled/fast-glob/index.js.LICENSE.txt +38 -0
  98. package/dist/compiled/fast-glob/license +21 -0
  99. package/dist/compiled/fast-glob/out/index.d.ts +27 -0
  100. package/dist/compiled/fast-glob/out/managers/tasks.d.ts +22 -0
  101. package/dist/compiled/fast-glob/out/settings.d.ts +164 -0
  102. package/dist/compiled/fast-glob/out/types/index.d.ts +31 -0
  103. package/dist/compiled/fast-glob/package.json +1 -0
  104. package/dist/compiled/filesize/filesize.d.ts +131 -0
  105. package/dist/compiled/filesize/index.js +198 -0
  106. package/dist/compiled/filesize/index.js.LICENSE.txt +7 -0
  107. package/dist/compiled/filesize/license +28 -0
  108. package/dist/compiled/filesize/package.json +1 -0
  109. package/dist/compiled/fs-extra/index.d.ts +563 -0
  110. package/dist/compiled/fs-extra/index.js +2222 -0
  111. package/dist/compiled/fs-extra/license +15 -0
  112. package/dist/compiled/fs-extra/package.json +1 -0
  113. package/dist/compiled/glob/index.d.ts +91 -0
  114. package/dist/compiled/glob/index.js +2011 -0
  115. package/dist/compiled/glob/license +21 -0
  116. package/dist/compiled/glob/minimatch/index.d.ts +204 -0
  117. package/dist/compiled/glob/package.json +1 -0
  118. package/dist/compiled/globby/index.d.ts +186 -0
  119. package/dist/compiled/globby/index.js +690 -0
  120. package/dist/compiled/globby/license +9 -0
  121. package/dist/compiled/globby/package.json +1 -0
  122. package/dist/compiled/gzip-size/index.d.ts +96 -0
  123. package/dist/compiled/gzip-size/index.js +157 -0
  124. package/dist/compiled/gzip-size/license +9 -0
  125. package/dist/compiled/gzip-size/package.json +1 -0
  126. package/dist/compiled/import-lazy/index.d.ts +26 -0
  127. package/dist/compiled/import-lazy/index.js +45 -0
  128. package/dist/compiled/import-lazy/license +9 -0
  129. package/dist/compiled/import-lazy/package.json +1 -0
  130. package/dist/compiled/inquirer/index.d.ts +997 -0
  131. package/dist/compiled/inquirer/index.js +20167 -0
  132. package/dist/compiled/inquirer/index.js.LICENSE.txt +7 -0
  133. package/dist/compiled/inquirer/lib/objects/choice.d.ts +65 -0
  134. package/dist/compiled/inquirer/lib/objects/choices.d.ts +206 -0
  135. package/dist/compiled/inquirer/lib/objects/separator.d.ts +37 -0
  136. package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +37 -0
  137. package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +65 -0
  138. package/dist/compiled/inquirer/lib/ui/prompt.d.ts +104 -0
  139. package/dist/compiled/inquirer/license +22 -0
  140. package/dist/compiled/inquirer/package.json +1 -0
  141. package/dist/compiled/inquirer/through/index.d.ts +25 -0
  142. package/dist/compiled/js-yaml/index.d.ts +154 -0
  143. package/dist/compiled/js-yaml/index.js +2191 -0
  144. package/dist/compiled/js-yaml/index.mjs +2167 -0
  145. package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +1 -0
  146. package/dist/compiled/js-yaml/license +21 -0
  147. package/dist/compiled/js-yaml/package.json +1 -0
  148. package/dist/compiled/json5/index.js +983 -0
  149. package/dist/compiled/json5/lib/index.d.ts +4 -0
  150. package/dist/compiled/json5/lib/parse.d.ts +15 -0
  151. package/dist/compiled/json5/lib/stringify.d.ts +89 -0
  152. package/dist/compiled/json5/package.json +1 -0
  153. package/dist/compiled/lodash/common/array.d.ts +2126 -0
  154. package/dist/compiled/lodash/common/collection.d.ts +1930 -0
  155. package/dist/compiled/lodash/common/common.d.ts +280 -0
  156. package/dist/compiled/lodash/common/date.d.ts +23 -0
  157. package/dist/compiled/lodash/common/function.d.ts +1446 -0
  158. package/dist/compiled/lodash/common/lang.d.ts +1693 -0
  159. package/dist/compiled/lodash/common/math.d.ts +405 -0
  160. package/dist/compiled/lodash/common/number.d.ts +131 -0
  161. package/dist/compiled/lodash/common/object.d.ts +2519 -0
  162. package/dist/compiled/lodash/common/seq.d.ts +210 -0
  163. package/dist/compiled/lodash/common/string.d.ts +788 -0
  164. package/dist/compiled/lodash/common/util.d.ts +1220 -0
  165. package/dist/compiled/lodash/index.d.ts +46 -0
  166. package/dist/compiled/lodash/index.js +1 -0
  167. package/dist/compiled/lodash/index.mjs +1 -0
  168. package/dist/compiled/lodash/license +47 -0
  169. package/dist/compiled/lodash/package.json +1 -0
  170. package/dist/compiled/mime-types/index.d.ts +14 -0
  171. package/dist/compiled/mime-types/index.js +116 -0
  172. package/dist/compiled/mime-types/index.js.LICENSE.txt +13 -0
  173. package/dist/compiled/mime-types/license +23 -0
  174. package/dist/compiled/mime-types/package.json +1 -0
  175. package/dist/compiled/minimist/index.d.ts +95 -0
  176. package/dist/compiled/minimist/index.js +202 -0
  177. package/dist/compiled/minimist/license +18 -0
  178. package/dist/compiled/minimist/package.json +1 -0
  179. package/dist/compiled/nanoid/index.d.ts +91 -0
  180. package/dist/compiled/nanoid/index.js +83 -0
  181. package/dist/compiled/nanoid/index.mjs +69 -0
  182. package/dist/compiled/nanoid/license +20 -0
  183. package/dist/compiled/nanoid/package.json +1 -0
  184. package/dist/compiled/ora/cli-spinners/index.d.ts +125 -0
  185. package/dist/compiled/ora/index.d.ts +277 -0
  186. package/dist/compiled/ora/index.js +3936 -0
  187. package/dist/compiled/ora/index.js.LICENSE.txt +1 -0
  188. package/dist/compiled/ora/license +9 -0
  189. package/dist/compiled/ora/package.json +1 -0
  190. package/dist/compiled/pkg-up/index.d.ts +48 -0
  191. package/dist/compiled/pkg-up/index.js +15 -0
  192. package/dist/compiled/pkg-up/license +9 -0
  193. package/dist/compiled/pkg-up/package.json +1 -0
  194. package/dist/compiled/semver/classes/comparator.d.ts +17 -0
  195. package/dist/compiled/semver/classes/range.d.ts +21 -0
  196. package/dist/compiled/semver/classes/semver.d.ts +62 -0
  197. package/dist/compiled/semver/functions/clean.d.ts +8 -0
  198. package/dist/compiled/semver/functions/cmp.d.ts +16 -0
  199. package/dist/compiled/semver/functions/coerce.d.ts +12 -0
  200. package/dist/compiled/semver/functions/compare-build.d.ts +16 -0
  201. package/dist/compiled/semver/functions/compare-loose.d.ts +5 -0
  202. package/dist/compiled/semver/functions/compare.d.ts +20 -0
  203. package/dist/compiled/semver/functions/diff.d.ts +13 -0
  204. package/dist/compiled/semver/functions/eq.d.ts +9 -0
  205. package/dist/compiled/semver/functions/gt.d.ts +9 -0
  206. package/dist/compiled/semver/functions/gte.d.ts +9 -0
  207. package/dist/compiled/semver/functions/inc.d.ts +15 -0
  208. package/dist/compiled/semver/functions/lt.d.ts +9 -0
  209. package/dist/compiled/semver/functions/lte.d.ts +8 -0
  210. package/dist/compiled/semver/functions/major.d.ts +9 -0
  211. package/dist/compiled/semver/functions/minor.d.ts +9 -0
  212. package/dist/compiled/semver/functions/neq.d.ts +9 -0
  213. package/dist/compiled/semver/functions/parse.d.ts +12 -0
  214. package/dist/compiled/semver/functions/patch.d.ts +9 -0
  215. package/dist/compiled/semver/functions/prerelease.d.ts +12 -0
  216. package/dist/compiled/semver/functions/rcompare.d.ts +15 -0
  217. package/dist/compiled/semver/functions/rsort.d.ts +9 -0
  218. package/dist/compiled/semver/functions/satisfies.d.ts +14 -0
  219. package/dist/compiled/semver/functions/sort.d.ts +9 -0
  220. package/dist/compiled/semver/functions/valid.d.ts +11 -0
  221. package/dist/compiled/semver/index.d.ts +133 -0
  222. package/dist/compiled/semver/index.js +1779 -0
  223. package/dist/compiled/semver/internals/identifiers.d.ts +13 -0
  224. package/dist/compiled/semver/license +15 -0
  225. package/dist/compiled/semver/package.json +1 -0
  226. package/dist/compiled/semver/ranges/gtr.d.ts +14 -0
  227. package/dist/compiled/semver/ranges/intersects.d.ts +13 -0
  228. package/dist/compiled/semver/ranges/ltr.d.ts +14 -0
  229. package/dist/compiled/semver/ranges/max-satisfying.d.ts +14 -0
  230. package/dist/compiled/semver/ranges/min-satisfying.d.ts +14 -0
  231. package/dist/compiled/semver/ranges/min-version.d.ts +10 -0
  232. package/dist/compiled/semver/ranges/outside.d.ts +15 -0
  233. package/dist/compiled/semver/ranges/simplify.d.ts +14 -0
  234. package/dist/compiled/semver/ranges/subset.d.ts +13 -0
  235. package/dist/compiled/semver/ranges/to-comparators.d.ts +9 -0
  236. package/dist/compiled/semver/ranges/valid.d.ts +12 -0
  237. package/dist/compiled/signale/index.d.ts +162 -0
  238. package/dist/compiled/signale/index.js +1704 -0
  239. package/dist/compiled/signale/package.json +1 -0
  240. package/dist/compiled/slash/index.d.ts +25 -0
  241. package/dist/compiled/slash/index.js +32 -0
  242. package/dist/compiled/slash/license +9 -0
  243. package/dist/compiled/slash/package.json +1 -0
  244. package/dist/compiled/strip-ansi/index.d.ts +17 -0
  245. package/dist/compiled/strip-ansi/index.js +34 -0
  246. package/dist/compiled/strip-ansi/license +9 -0
  247. package/dist/compiled/strip-ansi/package.json +1 -0
  248. package/dist/compiled/tsconfig-paths/index.js +629 -0
  249. package/dist/compiled/tsconfig-paths/index.mjs +2 -0
  250. package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +33 -0
  251. package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +34 -0
  252. package/dist/compiled/tsconfig-paths/lib/index.d.ts +5 -0
  253. package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +18 -0
  254. package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +21 -0
  255. package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +32 -0
  256. package/dist/compiled/tsconfig-paths/lib/register.d.ts +12 -0
  257. package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +15 -0
  258. package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +28 -0
  259. package/dist/compiled/tsconfig-paths/license +21 -0
  260. package/dist/compiled/tsconfig-paths/package.json +1 -0
  261. package/dist/compiled/upath/index.js +135 -0
  262. package/dist/compiled/upath/license +22 -0
  263. package/dist/compiled/upath/package.json +1 -0
  264. package/dist/compiled/upath/upath.d.ts +241 -0
  265. package/dist/compiled/url-join/index.d.ts +17 -0
  266. package/dist/compiled/url-join/index.js +61 -0
  267. package/dist/compiled/url-join/license +21 -0
  268. package/dist/compiled/url-join/package.json +1 -0
  269. package/dist/compiled/webpack-chain/index.js +1475 -0
  270. package/dist/compiled/webpack-chain/license +373 -0
  271. package/dist/compiled/webpack-chain/package.json +1 -0
  272. package/dist/compiled/webpack-chain/types/index.d.ts +599 -0
  273. package/dist/esm/cli/alias.mjs +31 -0
  274. package/dist/esm/cli/applyOptionsChain.mjs +16 -0
  275. package/dist/esm/cli/commands.mjs +23 -0
  276. package/dist/esm/cli/common.mjs +9 -0
  277. package/dist/esm/cli/config.mjs +5 -0
  278. package/dist/esm/cli/constants.mjs +30 -0
  279. package/dist/esm/cli/ensure.mjs +9 -0
  280. package/dist/esm/cli/fs.mjs +9 -0
  281. package/dist/esm/cli/get/config.mjs +14 -0
  282. package/dist/esm/cli/get/data.mjs +49 -0
  283. package/dist/esm/cli/get/index.mjs +18 -0
  284. package/dist/esm/cli/index.mjs +23 -0
  285. package/dist/esm/cli/is/config.mjs +37 -0
  286. package/dist/esm/cli/is/env.mjs +6 -0
  287. package/dist/esm/cli/is/index.mjs +4 -0
  288. package/dist/esm/cli/is/project.mjs +75 -0
  289. package/dist/esm/cli/is/type.mjs +26 -0
  290. package/dist/esm/cli/logger.mjs +1 -0
  291. package/dist/esm/cli/modulePath.mjs +33 -0
  292. package/dist/esm/cli/monorepo.mjs +50 -0
  293. package/dist/esm/cli/package.mjs +51 -0
  294. package/dist/esm/cli/path.mjs +35 -0
  295. package/dist/esm/cli/port.mjs +35 -0
  296. package/dist/esm/cli/prettyInstructions.mjs +70 -0
  297. package/dist/esm/cli/require.mjs +79 -0
  298. package/dist/esm/cli/route.mjs +36 -0
  299. package/dist/esm/cli/runtimeExports.mjs +42 -0
  300. package/dist/esm/cli/tsconfig.mjs +7 -0
  301. package/dist/esm/cli/version.mjs +24 -0
  302. package/dist/esm/cli/watch.mjs +40 -0
  303. package/dist/esm/compiled.mjs +45 -0
  304. package/dist/esm/import.mjs +9 -0
  305. package/dist/esm/index.mjs +3 -0
  306. package/dist/esm/rslib-runtime.mjs +12 -0
  307. package/dist/esm/universal/constants.mjs +14 -0
  308. package/dist/esm/universal/index.mjs +1 -0
  309. package/dist/esm/universal/path.mjs +2 -0
  310. package/dist/esm/universal/pluginDagSort.mjs +41 -0
  311. package/dist/esm-node/cli/alias.mjs +32 -0
  312. package/dist/esm-node/cli/applyOptionsChain.mjs +17 -0
  313. package/dist/esm-node/cli/commands.mjs +24 -0
  314. package/dist/esm-node/cli/common.mjs +10 -0
  315. package/dist/esm-node/cli/config.mjs +6 -0
  316. package/dist/esm-node/cli/constants.mjs +31 -0
  317. package/dist/esm-node/cli/ensure.mjs +10 -0
  318. package/dist/esm-node/cli/fs.mjs +10 -0
  319. package/dist/esm-node/cli/get/config.mjs +15 -0
  320. package/dist/esm-node/cli/get/data.mjs +50 -0
  321. package/dist/esm-node/cli/get/index.mjs +19 -0
  322. package/dist/esm-node/cli/index.mjs +24 -0
  323. package/dist/esm-node/cli/is/config.mjs +38 -0
  324. package/dist/esm-node/cli/is/env.mjs +7 -0
  325. package/dist/esm-node/cli/is/index.mjs +5 -0
  326. package/dist/esm-node/cli/is/project.mjs +76 -0
  327. package/dist/esm-node/cli/is/type.mjs +27 -0
  328. package/dist/esm-node/cli/logger.mjs +2 -0
  329. package/dist/esm-node/cli/modulePath.mjs +34 -0
  330. package/dist/esm-node/cli/monorepo.mjs +51 -0
  331. package/dist/esm-node/cli/package.mjs +52 -0
  332. package/dist/esm-node/cli/path.mjs +36 -0
  333. package/dist/esm-node/cli/port.mjs +36 -0
  334. package/dist/esm-node/cli/prettyInstructions.mjs +71 -0
  335. package/dist/esm-node/cli/require.mjs +80 -0
  336. package/dist/esm-node/cli/route.mjs +37 -0
  337. package/dist/esm-node/cli/runtimeExports.mjs +43 -0
  338. package/dist/esm-node/cli/tsconfig.mjs +8 -0
  339. package/dist/esm-node/cli/version.mjs +25 -0
  340. package/dist/esm-node/cli/watch.mjs +41 -0
  341. package/dist/esm-node/compiled.mjs +45 -0
  342. package/dist/esm-node/import.mjs +10 -0
  343. package/dist/esm-node/index.mjs +4 -0
  344. package/dist/esm-node/universal/constants.mjs +15 -0
  345. package/dist/esm-node/universal/index.mjs +2 -0
  346. package/dist/esm-node/universal/path.mjs +3 -0
  347. package/dist/esm-node/universal/pluginDagSort.mjs +42 -0
  348. package/dist/types/cli/alias.d.ts +20 -0
  349. package/dist/types/cli/applyOptionsChain.d.ts +3 -0
  350. package/dist/types/cli/commands.d.ts +8 -0
  351. package/dist/types/cli/common.d.ts +9 -0
  352. package/dist/types/cli/config.d.ts +4 -0
  353. package/dist/types/cli/constants.d.ts +55 -0
  354. package/dist/types/cli/ensure.d.ts +8 -0
  355. package/dist/types/cli/fs.d.ts +7 -0
  356. package/dist/types/cli/get/config.d.ts +1 -0
  357. package/dist/types/cli/get/data.d.ts +6 -0
  358. package/dist/types/cli/get/index.d.ts +11 -0
  359. package/dist/types/cli/index.d.ts +23 -0
  360. package/dist/types/cli/is/config.d.ts +22 -0
  361. package/dist/types/cli/is/env.d.ts +8 -0
  362. package/dist/types/cli/is/index.d.ts +4 -0
  363. package/dist/types/cli/is/project.d.ts +39 -0
  364. package/dist/types/cli/is/type.d.ts +15 -0
  365. package/dist/types/cli/logger.d.ts +1 -0
  366. package/dist/types/cli/modulePath.d.ts +5 -0
  367. package/dist/types/cli/monorepo.d.ts +9 -0
  368. package/dist/types/cli/package.d.ts +5 -0
  369. package/dist/types/cli/path.d.ts +11 -0
  370. package/dist/types/cli/port.d.ts +12 -0
  371. package/dist/types/cli/prettyInstructions.d.ts +9 -0
  372. package/dist/types/cli/require.d.ts +9 -0
  373. package/dist/types/cli/route.d.ts +4 -0
  374. package/dist/types/cli/runtimeExports.d.ts +5 -0
  375. package/dist/types/cli/tsconfig.d.ts +1 -0
  376. package/dist/types/cli/version.d.ts +4 -0
  377. package/dist/types/cli/watch.d.ts +8 -0
  378. package/dist/types/compiled.d.ts +37 -0
  379. package/dist/types/import.d.ts +5 -0
  380. package/dist/types/index.d.ts +3 -0
  381. package/dist/types/universal/constants.d.ts +47 -0
  382. package/dist/types/universal/index.d.ts +1 -0
  383. package/dist/types/universal/path.d.ts +1 -0
  384. package/dist/types/universal/pluginDagSort.d.ts +1 -0
  385. package/package.json +174 -0
  386. package/rslib.config.mts +162 -0
  387. package/rstest.config.mts +8 -0
@@ -0,0 +1,690 @@
1
+ (()=>{
2
+ var t = {
3
+ 337: (t)=>{
4
+ "use strict";
5
+ t.exports = (...t)=>[
6
+ ...new Set([].concat(...t))
7
+ ];
8
+ },
9
+ 352: (t, e, r)=>{
10
+ "use strict";
11
+ const n = r(17);
12
+ const s = r(223);
13
+ const getExtensions = (t)=>t.length > 1 ? `{${t.join(",")}}` : t[0];
14
+ const getPath = (t, e)=>{
15
+ const r = "!" === t[0] ? t.slice(1) : t;
16
+ return n.isAbsolute(r) ? r : n.join(e, r);
17
+ };
18
+ const addExtensions = (t, e)=>{
19
+ if (n.extname(t)) return `**/${t}`;
20
+ return `**/${t}.${getExtensions(e)}`;
21
+ };
22
+ const getGlob = (t, e)=>{
23
+ if (e.files && !Array.isArray(e.files)) throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof e.files}\``);
24
+ if (e.extensions && !Array.isArray(e.extensions)) throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof e.extensions}\``);
25
+ if (e.files && e.extensions) return e.files.map((r)=>n.posix.join(t, addExtensions(r, e.extensions)));
26
+ if (e.files) return e.files.map((e)=>n.posix.join(t, `**/${e}`));
27
+ if (e.extensions) return [
28
+ n.posix.join(t, `**/*.${getExtensions(e.extensions)}`)
29
+ ];
30
+ return [
31
+ n.posix.join(t, "**")
32
+ ];
33
+ };
34
+ t.exports = async (t, e)=>{
35
+ e = {
36
+ cwd: process.cwd(),
37
+ ...e
38
+ };
39
+ if ("string" != typeof e.cwd) throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);
40
+ const r = await Promise.all([].concat(t).map(async (t)=>{
41
+ const r = await s.isDirectory(getPath(t, e.cwd));
42
+ return r ? getGlob(t, e) : t;
43
+ }));
44
+ return [].concat.apply([], r);
45
+ };
46
+ t.exports.sync = (t, e)=>{
47
+ e = {
48
+ cwd: process.cwd(),
49
+ ...e
50
+ };
51
+ if ("string" != typeof e.cwd) throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``);
52
+ const r = [].concat(t).map((t)=>s.isDirectorySync(getPath(t, e.cwd)) ? getGlob(t, e) : t);
53
+ return [].concat.apply([], r);
54
+ };
55
+ },
56
+ 153: (t, e, r)=>{
57
+ "use strict";
58
+ const { promisify: n } = r(837);
59
+ const s = r(147);
60
+ const o = r(17);
61
+ const i = r(592);
62
+ const c = r(302);
63
+ const a = r(398);
64
+ const p = [
65
+ "**/node_modules/**",
66
+ "**/flow-typed/**",
67
+ "**/coverage/**",
68
+ "**/.git"
69
+ ];
70
+ const u = n(s.readFile);
71
+ const mapGitIgnorePatternTo = (t)=>(e)=>{
72
+ if (e.startsWith("!")) return "!" + o.posix.join(t, e.slice(1));
73
+ return o.posix.join(t, e);
74
+ };
75
+ const parseGitIgnore = (t, e)=>{
76
+ const r = a(o.relative(e.cwd, o.dirname(e.fileName)));
77
+ return t.split(/\r?\n/).filter(Boolean).filter((t)=>!t.startsWith("#")).map(mapGitIgnorePatternTo(r));
78
+ };
79
+ const reduceIgnore = (t)=>{
80
+ const e = c();
81
+ for (const r of t)e.add(parseGitIgnore(r.content, {
82
+ cwd: r.cwd,
83
+ fileName: r.filePath
84
+ }));
85
+ return e;
86
+ };
87
+ const ensureAbsolutePathForCwd = (t, e)=>{
88
+ t = a(t);
89
+ if (o.isAbsolute(e)) {
90
+ if (a(e).startsWith(t)) return e;
91
+ throw new Error(`Path ${e} is not in cwd ${t}`);
92
+ }
93
+ return o.join(t, e);
94
+ };
95
+ const getIsIgnoredPredecate = (t, e)=>(r)=>t.ignores(a(o.relative(e, ensureAbsolutePathForCwd(e, r.path || r))));
96
+ const getFile = async (t, e)=>{
97
+ const r = o.join(e, t);
98
+ const n = await u(r, "utf8");
99
+ return {
100
+ cwd: e,
101
+ filePath: r,
102
+ content: n
103
+ };
104
+ };
105
+ const getFileSync = (t, e)=>{
106
+ const r = o.join(e, t);
107
+ const n = s.readFileSync(r, "utf8");
108
+ return {
109
+ cwd: e,
110
+ filePath: r,
111
+ content: n
112
+ };
113
+ };
114
+ const normalizeOptions = ({ ignore: t = [], cwd: e = a(process.cwd()) } = {})=>({
115
+ ignore: t,
116
+ cwd: e
117
+ });
118
+ t.exports = async (t)=>{
119
+ t = normalizeOptions(t);
120
+ const e = await i("**/.gitignore", {
121
+ ignore: p.concat(t.ignore),
122
+ cwd: t.cwd
123
+ });
124
+ const r = await Promise.all(e.map((e)=>getFile(e, t.cwd)));
125
+ const n = reduceIgnore(r);
126
+ return getIsIgnoredPredecate(n, t.cwd);
127
+ };
128
+ t.exports.sync = (t)=>{
129
+ t = normalizeOptions(t);
130
+ const e = i.sync("**/.gitignore", {
131
+ ignore: p.concat(t.ignore),
132
+ cwd: t.cwd
133
+ });
134
+ const r = e.map((e)=>getFileSync(e, t.cwd));
135
+ const n = reduceIgnore(r);
136
+ return getIsIgnoredPredecate(n, t.cwd);
137
+ };
138
+ },
139
+ 718: (t, e, r)=>{
140
+ "use strict";
141
+ const n = r(147);
142
+ const s = r(337);
143
+ const o = r(382);
144
+ const i = r(592);
145
+ const c = r(352);
146
+ const a = r(153);
147
+ const { FilterStream: p, UniqueStream: u } = r(546);
148
+ const DEFAULT_FILTER = ()=>false;
149
+ const isNegative = (t)=>"!" === t[0];
150
+ const assertPatternsInput = (t)=>{
151
+ if (!t.every((t)=>"string" == typeof t)) throw new TypeError("Patterns must be a string or an array of strings");
152
+ };
153
+ const checkCwdOption = (t = {})=>{
154
+ if (!t.cwd) return;
155
+ let e;
156
+ try {
157
+ e = n.statSync(t.cwd);
158
+ } catch {
159
+ return;
160
+ }
161
+ if (!e.isDirectory()) throw new Error("The `cwd` option must be a path to a directory");
162
+ };
163
+ const getPathString = (t)=>t.stats instanceof n.Stats ? t.path : t;
164
+ const generateGlobTasks = (t, e)=>{
165
+ t = s([].concat(t));
166
+ assertPatternsInput(t);
167
+ checkCwdOption(e);
168
+ const r = [];
169
+ e = {
170
+ ignore: [],
171
+ expandDirectories: true,
172
+ ...e
173
+ };
174
+ for (const [n, s] of t.entries()){
175
+ if (isNegative(s)) continue;
176
+ const o = t.slice(n).filter((t)=>isNegative(t)).map((t)=>t.slice(1));
177
+ const i = {
178
+ ...e,
179
+ ignore: e.ignore.concat(o)
180
+ };
181
+ r.push({
182
+ pattern: s,
183
+ options: i
184
+ });
185
+ }
186
+ return r;
187
+ };
188
+ const globDirs = (t, e)=>{
189
+ let r = {};
190
+ if (t.options.cwd) r.cwd = t.options.cwd;
191
+ if (Array.isArray(t.options.expandDirectories)) r = {
192
+ ...r,
193
+ files: t.options.expandDirectories
194
+ };
195
+ else if ("object" == typeof t.options.expandDirectories) r = {
196
+ ...r,
197
+ ...t.options.expandDirectories
198
+ };
199
+ return e(t.pattern, r);
200
+ };
201
+ const getPattern = (t, e)=>t.options.expandDirectories ? globDirs(t, e) : [
202
+ t.pattern
203
+ ];
204
+ const getFilterSync = (t)=>t && t.gitignore ? a.sync({
205
+ cwd: t.cwd,
206
+ ignore: t.ignore
207
+ }) : DEFAULT_FILTER;
208
+ const globToTask = (t)=>(e)=>{
209
+ const { options: r } = t;
210
+ if (r.ignore && Array.isArray(r.ignore) && r.expandDirectories) r.ignore = c.sync(r.ignore);
211
+ return {
212
+ pattern: e,
213
+ options: r
214
+ };
215
+ };
216
+ t.exports = async (t, e)=>{
217
+ const r = generateGlobTasks(t, e);
218
+ const getFilter = async ()=>e && e.gitignore ? a({
219
+ cwd: e.cwd,
220
+ ignore: e.ignore
221
+ }) : DEFAULT_FILTER;
222
+ const getTasks = async ()=>{
223
+ const t = await Promise.all(r.map(async (t)=>{
224
+ const e = await getPattern(t, c);
225
+ return Promise.all(e.map(globToTask(t)));
226
+ }));
227
+ return s(...t);
228
+ };
229
+ const [n, o] = await Promise.all([
230
+ getFilter(),
231
+ getTasks()
232
+ ]);
233
+ const p = await Promise.all(o.map((t)=>i(t.pattern, t.options)));
234
+ return s(...p).filter((t)=>!n(getPathString(t)));
235
+ };
236
+ t.exports.sync = (t, e)=>{
237
+ const r = generateGlobTasks(t, e);
238
+ const n = [];
239
+ for (const t of r){
240
+ const e = getPattern(t, c.sync).map(globToTask(t));
241
+ n.push(...e);
242
+ }
243
+ const o = getFilterSync(e);
244
+ let a = [];
245
+ for (const t of n)a = s(a, i.sync(t.pattern, t.options));
246
+ return a.filter((t)=>!o(t));
247
+ };
248
+ t.exports.stream = (t, e)=>{
249
+ const r = generateGlobTasks(t, e);
250
+ const n = [];
251
+ for (const t of r){
252
+ const e = getPattern(t, c.sync).map(globToTask(t));
253
+ n.push(...e);
254
+ }
255
+ const s = getFilterSync(e);
256
+ const a = new p((t)=>!s(t));
257
+ const l = new u;
258
+ return o(n.map((t)=>i.stream(t.pattern, t.options))).pipe(a).pipe(l);
259
+ };
260
+ t.exports.generateGlobTasks = generateGlobTasks;
261
+ t.exports.hasMagic = (t, e)=>[].concat(t).some((t)=>i.isDynamicPattern(t, e));
262
+ t.exports.gitignore = a;
263
+ },
264
+ 546: (t, e, r)=>{
265
+ "use strict";
266
+ const { Transform: n } = r(781);
267
+ class ObjectTransform extends n {
268
+ constructor(){
269
+ super({
270
+ objectMode: true
271
+ });
272
+ }
273
+ }
274
+ class FilterStream extends ObjectTransform {
275
+ constructor(t){
276
+ super();
277
+ this._filter = t;
278
+ }
279
+ _transform(t, e, r) {
280
+ if (this._filter(t)) this.push(t);
281
+ r();
282
+ }
283
+ }
284
+ class UniqueStream extends ObjectTransform {
285
+ constructor(){
286
+ super();
287
+ this._pushed = new Set;
288
+ }
289
+ _transform(t, e, r) {
290
+ if (!this._pushed.has(t)) {
291
+ this.push(t);
292
+ this._pushed.add(t);
293
+ }
294
+ r();
295
+ }
296
+ }
297
+ t.exports = {
298
+ FilterStream: FilterStream,
299
+ UniqueStream: UniqueStream
300
+ };
301
+ },
302
+ 302: (t)=>{
303
+ function makeArray(t) {
304
+ return Array.isArray(t) ? t : [
305
+ t
306
+ ];
307
+ }
308
+ const e = "";
309
+ const r = " ";
310
+ const n = "\\";
311
+ const s = /^\s+$/;
312
+ const o = /^\\!/;
313
+ const i = /^\\#/;
314
+ const c = /\r?\n/g;
315
+ const a = /^\.*\/|^\.+$/;
316
+ const p = "/";
317
+ const u = "u" > typeof Symbol ? Symbol.for("node-ignore") : "node-ignore";
318
+ const define = (t, e, r)=>Object.defineProperty(t, e, {
319
+ value: r
320
+ });
321
+ const l = /([0-z])-([0-z])/g;
322
+ const RETURN_FALSE = ()=>false;
323
+ const sanitizeRange = (t)=>t.replace(l, (t, r, n)=>r.charCodeAt(0) <= n.charCodeAt(0) ? t : e);
324
+ const cleanRangeBackSlash = (t)=>{
325
+ const { length: e } = t;
326
+ return t.slice(0, e - e % 2);
327
+ };
328
+ const f = [
329
+ [
330
+ /\\?\s+$/,
331
+ (t)=>0 === t.indexOf("\\") ? r : e
332
+ ],
333
+ [
334
+ /\\\s/g,
335
+ ()=>r
336
+ ],
337
+ [
338
+ /[\\$.|*+(){^]/g,
339
+ (t)=>`\\${t}`
340
+ ],
341
+ [
342
+ /(?!\\)\?/g,
343
+ ()=>"[^/]"
344
+ ],
345
+ [
346
+ /^\//,
347
+ ()=>"^"
348
+ ],
349
+ [
350
+ /\//g,
351
+ ()=>"\\/"
352
+ ],
353
+ [
354
+ /^\^*\\\*\\\*\\\//,
355
+ ()=>"^(?:.*\\/)?"
356
+ ],
357
+ [
358
+ /^(?=[^^])/,
359
+ function() {
360
+ return /\/(?!$)/.test(this) ? "^" : "(?:^|\\/)";
361
+ }
362
+ ],
363
+ [
364
+ /\\\/\\\*\\\*(?=\\\/|$)/g,
365
+ (t, e, r)=>e + 6 < r.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
366
+ ],
367
+ [
368
+ /(^|[^\\]+)\\\*(?=.+)/g,
369
+ (t, e)=>`${e}[^\\/]*`
370
+ ],
371
+ [
372
+ /\\\\\\(?=[$.|*+(){^])/g,
373
+ ()=>n
374
+ ],
375
+ [
376
+ /\\\\/g,
377
+ ()=>n
378
+ ],
379
+ [
380
+ /(\\)?\[([^\]/]*?)(\\*)($|\])/g,
381
+ (t, e, r, s, o)=>e === n ? `\\[${r}${cleanRangeBackSlash(s)}${o}` : "]" === o ? s.length % 2 === 0 ? `[${sanitizeRange(r)}${s}]` : "[]" : "[]"
382
+ ],
383
+ [
384
+ /(?:[^*])$/,
385
+ (t)=>/\/$/.test(t) ? `${t}$` : `${t}(?=$|\\/$)`
386
+ ],
387
+ [
388
+ /(\^|\\\/)?\\\*$/,
389
+ (t, e)=>{
390
+ const r = e ? `${e}[^/]+` : "[^/]*";
391
+ return `${r}(?=$|\\/$)`;
392
+ }
393
+ ]
394
+ ];
395
+ const d = Object.create(null);
396
+ const makeRegex = (t, e)=>{
397
+ let r = d[t];
398
+ if (!r) {
399
+ r = f.reduce((e, r)=>e.replace(r[0], r[1].bind(t)), t);
400
+ d[t] = r;
401
+ }
402
+ return e ? new RegExp(r, "i") : new RegExp(r);
403
+ };
404
+ const isString = (t)=>"string" == typeof t;
405
+ const checkPattern = (t)=>t && isString(t) && !s.test(t) && 0 !== t.indexOf("#");
406
+ const splitPattern = (t)=>t.split(c);
407
+ class IgnoreRule {
408
+ constructor(t, e, r, n){
409
+ this.origin = t;
410
+ this.pattern = e;
411
+ this.negative = r;
412
+ this.regex = n;
413
+ }
414
+ }
415
+ const createRule = (t, e)=>{
416
+ const r = t;
417
+ let n = false;
418
+ if (0 === t.indexOf("!")) {
419
+ n = true;
420
+ t = t.substr(1);
421
+ }
422
+ t = t.replace(o, "!").replace(i, "#");
423
+ const s = makeRegex(t, e);
424
+ return new IgnoreRule(r, t, n, s);
425
+ };
426
+ const throwError = (t, e)=>{
427
+ throw new e(t);
428
+ };
429
+ const checkPath = (t, e, r)=>{
430
+ if (!isString(t)) return r(`path must be a string, but got \`${e}\``, TypeError);
431
+ if (!t) return r("path must not be empty", TypeError);
432
+ if (checkPath.isNotRelative(t)) {
433
+ const t = "`path.relative()`d";
434
+ return r(`path should be a ${t} string, but got "${e}"`, RangeError);
435
+ }
436
+ return true;
437
+ };
438
+ const isNotRelative = (t)=>a.test(t);
439
+ checkPath.isNotRelative = isNotRelative;
440
+ checkPath.convert = (t)=>t;
441
+ class Ignore {
442
+ constructor({ ignorecase: t = true, ignoreCase: e = t, allowRelativePaths: r = false } = {}){
443
+ define(this, u, true);
444
+ this._rules = [];
445
+ this._ignoreCase = e;
446
+ this._allowRelativePaths = r;
447
+ this._initCache();
448
+ }
449
+ _initCache() {
450
+ this._ignoreCache = Object.create(null);
451
+ this._testCache = Object.create(null);
452
+ }
453
+ _addPattern(t) {
454
+ if (t && t[u]) {
455
+ this._rules = this._rules.concat(t._rules);
456
+ this._added = true;
457
+ return;
458
+ }
459
+ if (checkPattern(t)) {
460
+ const e = createRule(t, this._ignoreCase);
461
+ this._added = true;
462
+ this._rules.push(e);
463
+ }
464
+ }
465
+ add(t) {
466
+ this._added = false;
467
+ makeArray(isString(t) ? splitPattern(t) : t).forEach(this._addPattern, this);
468
+ if (this._added) this._initCache();
469
+ return this;
470
+ }
471
+ addPattern(t) {
472
+ return this.add(t);
473
+ }
474
+ _testOne(t, e) {
475
+ let r = false;
476
+ let n = false;
477
+ this._rules.forEach((s)=>{
478
+ const { negative: o } = s;
479
+ if (n === o && r !== n || o && !r && !n && !e) return;
480
+ const i = s.regex.test(t);
481
+ if (i) {
482
+ r = !o;
483
+ n = o;
484
+ }
485
+ });
486
+ return {
487
+ ignored: r,
488
+ unignored: n
489
+ };
490
+ }
491
+ _test(t, e, r, n) {
492
+ const s = t && checkPath.convert(t);
493
+ checkPath(s, t, this._allowRelativePaths ? RETURN_FALSE : throwError);
494
+ return this._t(s, e, r, n);
495
+ }
496
+ _t(t, e, r, n) {
497
+ if (t in e) return e[t];
498
+ if (!n) n = t.split(p);
499
+ n.pop();
500
+ if (!n.length) return e[t] = this._testOne(t, r);
501
+ const s = this._t(n.join(p) + p, e, r, n);
502
+ return e[t] = s.ignored ? s : this._testOne(t, r);
503
+ }
504
+ ignores(t) {
505
+ return this._test(t, this._ignoreCache, false).ignored;
506
+ }
507
+ createFilter() {
508
+ return (t)=>!this.ignores(t);
509
+ }
510
+ filter(t) {
511
+ return makeArray(t).filter(this.createFilter());
512
+ }
513
+ test(t) {
514
+ return this._test(t, this._testCache, true);
515
+ }
516
+ }
517
+ const factory = (t)=>new Ignore(t);
518
+ const isPathValid = (t)=>checkPath(t && checkPath.convert(t), t, RETURN_FALSE);
519
+ factory.isPathValid = isPathValid;
520
+ factory.default = factory;
521
+ t.exports = factory;
522
+ if ("u" > typeof process && (process.env && process.env.IGNORE_TEST_WIN32 || "win32" === process.platform)) {
523
+ const makePosix = (t)=>/^\\\\\?\\/.test(t) || /["<>|\u0000-\u001F]+/u.test(t) ? t : t.replace(/\\/g, "/");
524
+ checkPath.convert = makePosix;
525
+ const t = /^[a-z]:\//i;
526
+ checkPath.isNotRelative = (e)=>t.test(e) || isNotRelative(e);
527
+ }
528
+ },
529
+ 382: (t, e, r)=>{
530
+ "use strict";
531
+ const n = r(781);
532
+ const s = n.PassThrough;
533
+ const o = Array.prototype.slice;
534
+ t.exports = merge2;
535
+ function merge2() {
536
+ const t = [];
537
+ const e = o.call(arguments);
538
+ let r = false;
539
+ let n = e[e.length - 1];
540
+ if (n && !Array.isArray(n) && null == n.pipe) e.pop();
541
+ else n = {};
542
+ const i = false !== n.end;
543
+ const c = true === n.pipeError;
544
+ if (null == n.objectMode) n.objectMode = true;
545
+ if (null == n.highWaterMark) n.highWaterMark = 65536;
546
+ const a = s(n);
547
+ function addStream() {
548
+ for(let e = 0, r = arguments.length; e < r; e++)t.push(pauseStreams(arguments[e], n));
549
+ mergeStream();
550
+ return this;
551
+ }
552
+ function mergeStream() {
553
+ if (r) return;
554
+ r = true;
555
+ let e = t.shift();
556
+ if (!e) return void process.nextTick(endStream);
557
+ if (!Array.isArray(e)) e = [
558
+ e
559
+ ];
560
+ let n = e.length + 1;
561
+ function next() {
562
+ if (--n > 0) return;
563
+ r = false;
564
+ mergeStream();
565
+ }
566
+ function pipe(t) {
567
+ function onend() {
568
+ t.removeListener("merge2UnpipeEnd", onend);
569
+ t.removeListener("end", onend);
570
+ if (c) t.removeListener("error", onerror);
571
+ next();
572
+ }
573
+ function onerror(t) {
574
+ a.emit("error", t);
575
+ }
576
+ if (t._readableState.endEmitted) return next();
577
+ t.on("merge2UnpipeEnd", onend);
578
+ t.on("end", onend);
579
+ if (c) t.on("error", onerror);
580
+ t.pipe(a, {
581
+ end: false
582
+ });
583
+ t.resume();
584
+ }
585
+ for(let t = 0; t < e.length; t++)pipe(e[t]);
586
+ next();
587
+ }
588
+ function endStream() {
589
+ r = false;
590
+ a.emit("queueDrain");
591
+ if (i) a.end();
592
+ }
593
+ a.setMaxListeners(0);
594
+ a.add = addStream;
595
+ a.on("unpipe", function(t) {
596
+ t.emit("merge2UnpipeEnd");
597
+ });
598
+ if (e.length) addStream.apply(null, e);
599
+ return a;
600
+ }
601
+ function pauseStreams(t, e) {
602
+ if (Array.isArray(t)) for(let r = 0, n = t.length; r < n; r++)t[r] = pauseStreams(t[r], e);
603
+ else {
604
+ if (!t._readableState && t.pipe) t = t.pipe(s(e));
605
+ if (!t._readableState || !t.pause || !t.pipe) throw new Error("Only readable stream can be merged.");
606
+ t.pause();
607
+ }
608
+ return t;
609
+ }
610
+ },
611
+ 223: (t, e, r)=>{
612
+ "use strict";
613
+ const { promisify: n } = r(837);
614
+ const s = r(147);
615
+ async function isType(t, e, r) {
616
+ if ("string" != typeof r) throw new TypeError(`Expected a string, got ${typeof r}`);
617
+ try {
618
+ const o = await n(s[t])(r);
619
+ return o[e]();
620
+ } catch (t) {
621
+ if ("ENOENT" === t.code) return false;
622
+ throw t;
623
+ }
624
+ }
625
+ function isTypeSync(t, e, r) {
626
+ if ("string" != typeof r) throw new TypeError(`Expected a string, got ${typeof r}`);
627
+ try {
628
+ return s[t](r)[e]();
629
+ } catch (t) {
630
+ if ("ENOENT" === t.code) return false;
631
+ throw t;
632
+ }
633
+ }
634
+ e.isFile = isType.bind(null, "stat", "isFile");
635
+ e.isDirectory = isType.bind(null, "stat", "isDirectory");
636
+ e.isSymlink = isType.bind(null, "lstat", "isSymbolicLink");
637
+ e.isFileSync = isTypeSync.bind(null, "statSync", "isFile");
638
+ e.isDirectorySync = isTypeSync.bind(null, "statSync", "isDirectory");
639
+ e.isSymlinkSync = isTypeSync.bind(null, "lstatSync", "isSymbolicLink");
640
+ },
641
+ 398: (t)=>{
642
+ "use strict";
643
+ t.exports = (t)=>{
644
+ const e = /^\\\\\?\\/.test(t);
645
+ const r = /[^\u0000-\u0080]+/.test(t);
646
+ if (e || r) return t;
647
+ return t.replace(/\\/g, "/");
648
+ };
649
+ },
650
+ 592: (t)=>{
651
+ "use strict";
652
+ t.exports = require("../fast-glob");
653
+ },
654
+ 147: (t)=>{
655
+ "use strict";
656
+ t.exports = require("fs");
657
+ },
658
+ 17: (t)=>{
659
+ "use strict";
660
+ t.exports = require("path");
661
+ },
662
+ 781: (t)=>{
663
+ "use strict";
664
+ t.exports = require("stream");
665
+ },
666
+ 837: (t)=>{
667
+ "use strict";
668
+ t.exports = require("util");
669
+ }
670
+ };
671
+ var e = {};
672
+ function __nccwpck_require__(r) {
673
+ var n = e[r];
674
+ if (void 0 !== n) return n.exports;
675
+ var s = e[r] = {
676
+ exports: {}
677
+ };
678
+ var o = true;
679
+ try {
680
+ t[r](s, s.exports, __nccwpck_require__);
681
+ o = false;
682
+ } finally{
683
+ if (o) delete e[r];
684
+ }
685
+ return s.exports;
686
+ }
687
+ if (void 0 !== __nccwpck_require__) __nccwpck_require__.ab = __dirname + "/";
688
+ var r = __nccwpck_require__(718);
689
+ module.exports = r;
690
+ })();
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.