@modern-js/utils 2.12.1-alpha.3 → 2.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (492) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/{cjs/alias.js → alias.js} +15 -4
  3. package/dist/{cjs/analyzeProject.js → analyzeProject.js} +25 -5
  4. package/dist/{cjs/babel.js → babel.js} +16 -9
  5. package/dist/{cjs/compatRequire.js → compatRequire.js} +17 -4
  6. package/dist/compiled.d.ts +43 -0
  7. package/dist/{types/debug.d.ts → debug.d.ts} +1 -1
  8. package/dist/{cjs/emptyDir.js → emptyDir.js} +24 -4
  9. package/dist/{cjs/getEntryOptions.js → getEntryOptions.js} +15 -1
  10. package/dist/{cjs/getPackageManager.js → getPackageManager.js} +41 -19
  11. package/dist/{cjs/getPort.js → getPort.js} +24 -4
  12. package/dist/{cjs/getServerConfig.js → getServerConfig.js} +22 -2
  13. package/dist/{types/logger.d.ts → logger.d.ts} +1 -1
  14. package/dist/{cjs/logger.js → logger.js} +16 -5
  15. package/dist/{cjs/monorepo.js → monorepo.js} +15 -4
  16. package/dist/nodeEnv.js +81 -0
  17. package/dist/{cjs/path.js → path.js} +1 -1
  18. package/dist/{cjs/pathSerializer.js → pathSerializer.js} +1 -1
  19. package/dist/{cjs/react.js → react.js} +15 -4
  20. package/dist/{cjs/runtimeExports.js → runtimeExports.js} +1 -1
  21. package/dist/{cjs/universal → universal}/nestedRoutes.js +19 -2
  22. package/dist/{cjs/version.js → version.js} +40 -7
  23. package/dist/{cjs/watch.js → watch.js} +29 -9
  24. package/package.json +23 -55
  25. package/dist/cjs/nodeEnv.js +0 -55
  26. package/dist/compiled/address/index.js +0 -1
  27. package/dist/compiled/address/lib/address.d.ts +0 -28
  28. package/dist/compiled/address/package.json +0 -1
  29. package/dist/compiled/ajv/codegen.js +0 -1
  30. package/dist/compiled/ajv/index.js +0 -9
  31. package/dist/compiled/ajv/license +0 -22
  32. package/dist/compiled/ajv/package.json +0 -1
  33. package/dist/compiled/ajv/types/ajv.d.ts +0 -16
  34. package/dist/compiled/ajv/types/compile/codegen/code.d.ts +0 -40
  35. package/dist/compiled/ajv/types/compile/codegen/index.d.ts +0 -79
  36. package/dist/compiled/ajv/types/compile/codegen/scope.d.ts +0 -79
  37. package/dist/compiled/ajv/types/compile/errors.d.ts +0 -13
  38. package/dist/compiled/ajv/types/compile/index.d.ts +0 -80
  39. package/dist/compiled/ajv/types/compile/ref_error.d.ts +0 -6
  40. package/dist/compiled/ajv/types/compile/resolve.d.ts +0 -12
  41. package/dist/compiled/ajv/types/compile/rules.d.ts +0 -28
  42. package/dist/compiled/ajv/types/compile/util.d.ts +0 -40
  43. package/dist/compiled/ajv/types/compile/validate/index.d.ts +0 -42
  44. package/dist/compiled/ajv/types/compile/validate/subschema.d.ts +0 -47
  45. package/dist/compiled/ajv/types/core.d.ts +0 -173
  46. package/dist/compiled/ajv/types/runtime/validation_error.d.ts +0 -7
  47. package/dist/compiled/ajv/types/types/index.d.ts +0 -183
  48. package/dist/compiled/ajv/types/types/json-schema.d.ts +0 -124
  49. package/dist/compiled/ajv/types/types/jtd-schema.d.ts +0 -169
  50. package/dist/compiled/ajv/types/vocabularies/errors.d.ts +0 -1
  51. package/dist/compiled/ajv/uri-js.d.ts +0 -59
  52. package/dist/compiled/ajv-keywords/index.d.ts +0 -1
  53. package/dist/compiled/ajv-keywords/index.js +0 -1
  54. package/dist/compiled/ajv-keywords/license +0 -21
  55. package/dist/compiled/ajv-keywords/package.json +0 -1
  56. package/dist/compiled/better-ajv-errors/index.d.ts +0 -1
  57. package/dist/compiled/better-ajv-errors/index.js +0 -1
  58. package/dist/compiled/better-ajv-errors/license +0 -13
  59. package/dist/compiled/better-ajv-errors/package.json +0 -1
  60. package/dist/compiled/browserslist/index.d.ts +0 -178
  61. package/dist/compiled/browserslist/index.js +0 -1
  62. package/dist/compiled/browserslist/license +0 -20
  63. package/dist/compiled/browserslist/package.json +0 -1
  64. package/dist/compiled/chalk/index.d.ts +0 -415
  65. package/dist/compiled/chalk/index.js +0 -1
  66. package/dist/compiled/chalk/license +0 -9
  67. package/dist/compiled/chalk/package.json +0 -1
  68. package/dist/compiled/chokidar/anymatch/index.d.ts +0 -19
  69. package/dist/compiled/chokidar/fsevents.node +0 -0
  70. package/dist/compiled/chokidar/index.js +0 -40
  71. package/dist/compiled/chokidar/license +0 -21
  72. package/dist/compiled/chokidar/package.json +0 -1
  73. package/dist/compiled/chokidar/types/index.d.ts +0 -188
  74. package/dist/compiled/commander/index.js +0 -1
  75. package/dist/compiled/commander/license +0 -22
  76. package/dist/compiled/commander/package.json +0 -1
  77. package/dist/compiled/commander/typings/index.d.ts +0 -890
  78. package/dist/compiled/debug/index.d.ts +0 -54
  79. package/dist/compiled/debug/index.js +0 -1
  80. package/dist/compiled/debug/license +0 -20
  81. package/dist/compiled/debug/ms/index.d.ts +0 -25
  82. package/dist/compiled/debug/package.json +0 -1
  83. package/dist/compiled/dotenv/index.js +0 -1
  84. package/dist/compiled/dotenv/license +0 -23
  85. package/dist/compiled/dotenv/package.json +0 -1
  86. package/dist/compiled/dotenv/types/index.d.ts +0 -59
  87. package/dist/compiled/dotenv-expand/index.d.ts +0 -15
  88. package/dist/compiled/dotenv-expand/index.js +0 -1
  89. package/dist/compiled/dotenv-expand/license +0 -24
  90. package/dist/compiled/dotenv-expand/package.json +0 -1
  91. package/dist/compiled/execa/index.d.ts +0 -564
  92. package/dist/compiled/execa/index.js +0 -1
  93. package/dist/compiled/execa/license +0 -9
  94. package/dist/compiled/execa/package.json +0 -1
  95. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
  96. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
  97. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
  98. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
  99. package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
  100. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
  101. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
  102. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
  103. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
  104. package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
  105. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
  106. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
  107. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
  108. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
  109. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
  110. package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
  111. package/dist/compiled/fast-glob/index.js +0 -37
  112. package/dist/compiled/fast-glob/license +0 -21
  113. package/dist/compiled/fast-glob/out/index.d.ts +0 -27
  114. package/dist/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
  115. package/dist/compiled/fast-glob/out/settings.d.ts +0 -164
  116. package/dist/compiled/fast-glob/out/types/index.d.ts +0 -31
  117. package/dist/compiled/fast-glob/package.json +0 -1
  118. package/dist/compiled/filesize/filesize.d.ts +0 -131
  119. package/dist/compiled/filesize/index.js +0 -9
  120. package/dist/compiled/filesize/license +0 -28
  121. package/dist/compiled/filesize/package.json +0 -1
  122. package/dist/compiled/fs-extra/index.d.ts +0 -563
  123. package/dist/compiled/fs-extra/index.js +0 -1
  124. package/dist/compiled/fs-extra/license +0 -15
  125. package/dist/compiled/fs-extra/package.json +0 -1
  126. package/dist/compiled/glob/index.d.ts +0 -91
  127. package/dist/compiled/glob/index.js +0 -1
  128. package/dist/compiled/glob/license +0 -21
  129. package/dist/compiled/glob/minimatch/index.d.ts +0 -204
  130. package/dist/compiled/glob/package.json +0 -1
  131. package/dist/compiled/globby/index.d.ts +0 -186
  132. package/dist/compiled/globby/index.js +0 -1
  133. package/dist/compiled/globby/license +0 -9
  134. package/dist/compiled/globby/package.json +0 -1
  135. package/dist/compiled/gzip-size/index.d.ts +0 -96
  136. package/dist/compiled/gzip-size/index.js +0 -1
  137. package/dist/compiled/gzip-size/license +0 -9
  138. package/dist/compiled/gzip-size/package.json +0 -1
  139. package/dist/compiled/import-lazy/index.d.ts +0 -26
  140. package/dist/compiled/import-lazy/index.js +0 -1
  141. package/dist/compiled/import-lazy/license +0 -9
  142. package/dist/compiled/import-lazy/package.json +0 -1
  143. package/dist/compiled/inquirer/index.d.ts +0 -997
  144. package/dist/compiled/inquirer/index.js +0 -9
  145. package/dist/compiled/inquirer/lib/objects/choice.d.ts +0 -65
  146. package/dist/compiled/inquirer/lib/objects/choices.d.ts +0 -206
  147. package/dist/compiled/inquirer/lib/objects/separator.d.ts +0 -37
  148. package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +0 -37
  149. package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +0 -65
  150. package/dist/compiled/inquirer/lib/ui/prompt.d.ts +0 -104
  151. package/dist/compiled/inquirer/license +0 -22
  152. package/dist/compiled/inquirer/package.json +0 -1
  153. package/dist/compiled/inquirer/through/index.d.ts +0 -25
  154. package/dist/compiled/js-yaml/index.d.ts +0 -154
  155. package/dist/compiled/js-yaml/index.js +0 -1
  156. package/dist/compiled/js-yaml/license +0 -21
  157. package/dist/compiled/js-yaml/package.json +0 -1
  158. package/dist/compiled/json5/index.js +0 -1
  159. package/dist/compiled/json5/lib/index.d.ts +0 -4
  160. package/dist/compiled/json5/lib/parse.d.ts +0 -15
  161. package/dist/compiled/json5/lib/stringify.d.ts +0 -89
  162. package/dist/compiled/json5/package.json +0 -1
  163. package/dist/compiled/lodash/common/array.d.ts +0 -2126
  164. package/dist/compiled/lodash/common/collection.d.ts +0 -1930
  165. package/dist/compiled/lodash/common/common.d.ts +0 -280
  166. package/dist/compiled/lodash/common/date.d.ts +0 -23
  167. package/dist/compiled/lodash/common/function.d.ts +0 -1446
  168. package/dist/compiled/lodash/common/lang.d.ts +0 -1693
  169. package/dist/compiled/lodash/common/math.d.ts +0 -405
  170. package/dist/compiled/lodash/common/number.d.ts +0 -131
  171. package/dist/compiled/lodash/common/object.d.ts +0 -2519
  172. package/dist/compiled/lodash/common/seq.d.ts +0 -210
  173. package/dist/compiled/lodash/common/string.d.ts +0 -788
  174. package/dist/compiled/lodash/common/util.d.ts +0 -1220
  175. package/dist/compiled/lodash/index.d.ts +0 -46
  176. package/dist/compiled/lodash/index.js +0 -5
  177. package/dist/compiled/lodash/license +0 -47
  178. package/dist/compiled/lodash/package.json +0 -1
  179. package/dist/compiled/mime-types/index.d.ts +0 -14
  180. package/dist/compiled/mime-types/index.js +0 -14
  181. package/dist/compiled/mime-types/license +0 -23
  182. package/dist/compiled/mime-types/package.json +0 -1
  183. package/dist/compiled/minimist/index.d.ts +0 -95
  184. package/dist/compiled/minimist/index.js +0 -1
  185. package/dist/compiled/minimist/license +0 -18
  186. package/dist/compiled/minimist/package.json +0 -1
  187. package/dist/compiled/nanoid/index.d.ts +0 -91
  188. package/dist/compiled/nanoid/index.js +0 -1
  189. package/dist/compiled/nanoid/license +0 -20
  190. package/dist/compiled/nanoid/package.json +0 -1
  191. package/dist/compiled/ora/cli-spinners/index.d.ts +0 -125
  192. package/dist/compiled/ora/index.d.ts +0 -277
  193. package/dist/compiled/ora/index.js +0 -3
  194. package/dist/compiled/ora/license +0 -9
  195. package/dist/compiled/ora/package.json +0 -1
  196. package/dist/compiled/pkg-up/index.d.ts +0 -48
  197. package/dist/compiled/pkg-up/index.js +0 -1
  198. package/dist/compiled/pkg-up/license +0 -9
  199. package/dist/compiled/pkg-up/package.json +0 -1
  200. package/dist/compiled/recursive-readdir/index.d.ts +0 -21
  201. package/dist/compiled/recursive-readdir/index.js +0 -1
  202. package/dist/compiled/recursive-readdir/license +0 -21
  203. package/dist/compiled/recursive-readdir/package.json +0 -1
  204. package/dist/compiled/schema-utils3/index.d.ts +0 -1
  205. package/dist/compiled/schema-utils3/index.js +0 -3
  206. package/dist/compiled/schema-utils3/license +0 -20
  207. package/dist/compiled/schema-utils3/package.json +0 -1
  208. package/dist/compiled/semver/classes/comparator.d.ts +0 -17
  209. package/dist/compiled/semver/classes/range.d.ts +0 -21
  210. package/dist/compiled/semver/classes/semver.d.ts +0 -62
  211. package/dist/compiled/semver/functions/clean.d.ts +0 -8
  212. package/dist/compiled/semver/functions/cmp.d.ts +0 -16
  213. package/dist/compiled/semver/functions/coerce.d.ts +0 -12
  214. package/dist/compiled/semver/functions/compare-build.d.ts +0 -16
  215. package/dist/compiled/semver/functions/compare-loose.d.ts +0 -5
  216. package/dist/compiled/semver/functions/compare.d.ts +0 -20
  217. package/dist/compiled/semver/functions/diff.d.ts +0 -13
  218. package/dist/compiled/semver/functions/eq.d.ts +0 -9
  219. package/dist/compiled/semver/functions/gt.d.ts +0 -9
  220. package/dist/compiled/semver/functions/gte.d.ts +0 -9
  221. package/dist/compiled/semver/functions/inc.d.ts +0 -15
  222. package/dist/compiled/semver/functions/lt.d.ts +0 -9
  223. package/dist/compiled/semver/functions/lte.d.ts +0 -8
  224. package/dist/compiled/semver/functions/major.d.ts +0 -9
  225. package/dist/compiled/semver/functions/minor.d.ts +0 -9
  226. package/dist/compiled/semver/functions/neq.d.ts +0 -9
  227. package/dist/compiled/semver/functions/parse.d.ts +0 -12
  228. package/dist/compiled/semver/functions/patch.d.ts +0 -9
  229. package/dist/compiled/semver/functions/prerelease.d.ts +0 -12
  230. package/dist/compiled/semver/functions/rcompare.d.ts +0 -15
  231. package/dist/compiled/semver/functions/rsort.d.ts +0 -9
  232. package/dist/compiled/semver/functions/satisfies.d.ts +0 -14
  233. package/dist/compiled/semver/functions/sort.d.ts +0 -9
  234. package/dist/compiled/semver/functions/valid.d.ts +0 -11
  235. package/dist/compiled/semver/index.d.ts +0 -133
  236. package/dist/compiled/semver/index.js +0 -1
  237. package/dist/compiled/semver/internals/identifiers.d.ts +0 -13
  238. package/dist/compiled/semver/license +0 -15
  239. package/dist/compiled/semver/package.json +0 -1
  240. package/dist/compiled/semver/ranges/gtr.d.ts +0 -14
  241. package/dist/compiled/semver/ranges/intersects.d.ts +0 -13
  242. package/dist/compiled/semver/ranges/ltr.d.ts +0 -14
  243. package/dist/compiled/semver/ranges/max-satisfying.d.ts +0 -14
  244. package/dist/compiled/semver/ranges/min-satisfying.d.ts +0 -14
  245. package/dist/compiled/semver/ranges/min-version.d.ts +0 -10
  246. package/dist/compiled/semver/ranges/outside.d.ts +0 -15
  247. package/dist/compiled/semver/ranges/simplify.d.ts +0 -14
  248. package/dist/compiled/semver/ranges/subset.d.ts +0 -13
  249. package/dist/compiled/semver/ranges/to-comparators.d.ts +0 -9
  250. package/dist/compiled/semver/ranges/valid.d.ts +0 -12
  251. package/dist/compiled/signale/index.d.ts +0 -162
  252. package/dist/compiled/signale/index.js +0 -1
  253. package/dist/compiled/signale/package.json +0 -1
  254. package/dist/compiled/slash/index.d.ts +0 -25
  255. package/dist/compiled/slash/index.js +0 -1
  256. package/dist/compiled/slash/license +0 -9
  257. package/dist/compiled/slash/package.json +0 -1
  258. package/dist/compiled/strip-ansi/index.d.ts +0 -17
  259. package/dist/compiled/strip-ansi/index.js +0 -1
  260. package/dist/compiled/strip-ansi/license +0 -9
  261. package/dist/compiled/strip-ansi/package.json +0 -1
  262. package/dist/compiled/tsconfig-paths/index.js +0 -1
  263. package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +0 -33
  264. package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +0 -34
  265. package/dist/compiled/tsconfig-paths/lib/index.d.ts +0 -5
  266. package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
  267. package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +0 -21
  268. package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
  269. package/dist/compiled/tsconfig-paths/lib/register.d.ts +0 -12
  270. package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +0 -15
  271. package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
  272. package/dist/compiled/tsconfig-paths/license +0 -21
  273. package/dist/compiled/tsconfig-paths/package.json +0 -1
  274. package/dist/compiled/upath/index.js +0 -1
  275. package/dist/compiled/upath/license +0 -22
  276. package/dist/compiled/upath/package.json +0 -1
  277. package/dist/compiled/upath/upath.d.ts +0 -241
  278. package/dist/compiled/url-join/index.d.ts +0 -17
  279. package/dist/compiled/url-join/index.js +0 -1
  280. package/dist/compiled/url-join/license +0 -21
  281. package/dist/compiled/url-join/package.json +0 -1
  282. package/dist/compiled/webpack-chain/index.js +0 -1
  283. package/dist/compiled/webpack-chain/license +0 -373
  284. package/dist/compiled/webpack-chain/package.json +0 -1
  285. package/dist/compiled/webpack-chain/types/index.d.ts +0 -388
  286. package/dist/compiled/webpack-dev-middleware/index.js +0 -7
  287. package/dist/compiled/webpack-dev-middleware/license +0 -20
  288. package/dist/compiled/webpack-dev-middleware/package.json +0 -1
  289. package/dist/compiled/webpack-dev-middleware/types/index.d.ts +0 -262
  290. package/dist/esm/FileSizeReporter.js +0 -180
  291. package/dist/esm/alias.js +0 -83
  292. package/dist/esm/analyzeProject.js +0 -168
  293. package/dist/esm/applyOptionsChain.js +0 -26
  294. package/dist/esm/babel.js +0 -169
  295. package/dist/esm/chainId.js +0 -92
  296. package/dist/esm/clearConsole.js +0 -6
  297. package/dist/esm/commands.js +0 -17
  298. package/dist/esm/compatRequire.js +0 -68
  299. package/dist/esm/compiled.js +0 -34
  300. package/dist/esm/constants.js +0 -317
  301. package/dist/esm/debug.js +0 -5
  302. package/dist/esm/emptyDir.js +0 -158
  303. package/dist/esm/ensureAbsolutePath.js +0 -5
  304. package/dist/esm/ensureArray.js +0 -9
  305. package/dist/esm/findExists.js +0 -27
  306. package/dist/esm/generateMetaTags.js +0 -40
  307. package/dist/esm/getBrowserslist.js +0 -12
  308. package/dist/esm/getCoreJsVersion.js +0 -57
  309. package/dist/esm/getEntryOptions.js +0 -45
  310. package/dist/esm/getPackageManager.js +0 -187
  311. package/dist/esm/getPort.js +0 -215
  312. package/dist/esm/getServerConfig.js +0 -145
  313. package/dist/esm/getTargetDir.js +0 -6
  314. package/dist/esm/import.js +0 -8
  315. package/dist/esm/index.js +0 -44
  316. package/dist/esm/is/index.js +0 -85
  317. package/dist/esm/is/nodeEnv.js +0 -16
  318. package/dist/esm/is/platform.js +0 -7
  319. package/dist/esm/is/type.js +0 -25
  320. package/dist/esm/logger.js +0 -207
  321. package/dist/esm/monorepo.js +0 -109
  322. package/dist/esm/nodeEnv.js +0 -258
  323. package/dist/esm/path.js +0 -85
  324. package/dist/esm/pathSerializer.js +0 -85
  325. package/dist/esm/plugin.js +0 -45
  326. package/dist/esm/prettyInstructions.js +0 -96
  327. package/dist/esm/printBuildError.js +0 -24
  328. package/dist/esm/react.js +0 -43
  329. package/dist/esm/readTsConfig.js +0 -10
  330. package/dist/esm/removeSlash.js +0 -10
  331. package/dist/esm/resolve.js +0 -42
  332. package/dist/esm/routes.js +0 -19
  333. package/dist/esm/runtimeExports.js +0 -65
  334. package/dist/esm/ssr.js +0 -3
  335. package/dist/esm/storage.js +0 -36
  336. package/dist/esm/testUtils.js +0 -13
  337. package/dist/esm/types.js +0 -1
  338. package/dist/esm/universal/constants.js +0 -3
  339. package/dist/esm/universal/formatWebpack.js +0 -108
  340. package/dist/esm/universal/nestedRoutes.js +0 -174
  341. package/dist/esm/universal/remixRouter.js +0 -1
  342. package/dist/esm/universal/serialize.js +0 -7
  343. package/dist/esm/version.js +0 -193
  344. package/dist/esm/wait.js +0 -7
  345. package/dist/esm/watch.js +0 -230
  346. package/dist/esm-node/FileSizeReporter.js +0 -133
  347. package/dist/esm-node/alias.js +0 -61
  348. package/dist/esm-node/analyzeProject.js +0 -17
  349. package/dist/esm-node/applyOptionsChain.js +0 -35
  350. package/dist/esm-node/babel.js +0 -105
  351. package/dist/esm-node/chainId.js +0 -173
  352. package/dist/esm-node/clearConsole.js +0 -8
  353. package/dist/esm-node/commands.js +0 -22
  354. package/dist/esm-node/compatRequire.js +0 -42
  355. package/dist/esm-node/compiled.js +0 -77
  356. package/dist/esm-node/constants.js +0 -264
  357. package/dist/esm-node/debug.js +0 -5
  358. package/dist/esm-node/emptyDir.js +0 -9
  359. package/dist/esm-node/ensureAbsolutePath.js +0 -5
  360. package/dist/esm-node/ensureArray.js +0 -9
  361. package/dist/esm-node/findExists.js +0 -12
  362. package/dist/esm-node/generateMetaTags.js +0 -38
  363. package/dist/esm-node/getBrowserslist.js +0 -7
  364. package/dist/esm-node/getCoreJsVersion.js +0 -13
  365. package/dist/esm-node/getEntryOptions.js +0 -17
  366. package/dist/esm-node/getPackageManager.js +0 -32
  367. package/dist/esm-node/getPort.js +0 -59
  368. package/dist/esm-node/getServerConfig.js +0 -14
  369. package/dist/esm-node/getTargetDir.js +0 -8
  370. package/dist/esm-node/import.js +0 -9
  371. package/dist/esm-node/index.js +0 -44
  372. package/dist/esm-node/is/index.js +0 -71
  373. package/dist/esm-node/is/nodeEnv.js +0 -12
  374. package/dist/esm-node/is/platform.js +0 -6
  375. package/dist/esm-node/is/type.js +0 -34
  376. package/dist/esm-node/logger.js +0 -100
  377. package/dist/esm-node/monorepo.js +0 -87
  378. package/dist/esm-node/nodeEnv.js +0 -30
  379. package/dist/esm-node/path.js +0 -50
  380. package/dist/esm-node/pathSerializer.js +0 -46
  381. package/dist/esm-node/plugin.js +0 -23
  382. package/dist/esm-node/prettyInstructions.js +0 -77
  383. package/dist/esm-node/printBuildError.js +0 -34
  384. package/dist/esm-node/react.js +0 -20
  385. package/dist/esm-node/readTsConfig.js +0 -13
  386. package/dist/esm-node/removeSlash.js +0 -8
  387. package/dist/esm-node/resolve.js +0 -38
  388. package/dist/esm-node/routes.js +0 -24
  389. package/dist/esm-node/runtimeExports.js +0 -40
  390. package/dist/esm-node/ssr.js +0 -6
  391. package/dist/esm-node/storage.js +0 -42
  392. package/dist/esm-node/testUtils.js +0 -15
  393. package/dist/esm-node/types.js +0 -0
  394. package/dist/esm-node/universal/constants.js +0 -6
  395. package/dist/esm-node/universal/formatWebpack.js +0 -77
  396. package/dist/esm-node/universal/nestedRoutes.js +0 -93
  397. package/dist/esm-node/universal/remixRouter.js +0 -1
  398. package/dist/esm-node/universal/serialize.js +0 -7
  399. package/dist/esm-node/version.js +0 -25
  400. package/dist/esm-node/wait.js +0 -6
  401. package/dist/esm-node/watch.js +0 -36
  402. package/dist/types/compiled.d.ts +0 -43
  403. /package/dist/{types/FileSizeReporter.d.ts → FileSizeReporter.d.ts} +0 -0
  404. /package/dist/{cjs/FileSizeReporter.js → FileSizeReporter.js} +0 -0
  405. /package/dist/{types/alias.d.ts → alias.d.ts} +0 -0
  406. /package/dist/{types/analyzeProject.d.ts → analyzeProject.d.ts} +0 -0
  407. /package/dist/{types/applyOptionsChain.d.ts → applyOptionsChain.d.ts} +0 -0
  408. /package/dist/{cjs/applyOptionsChain.js → applyOptionsChain.js} +0 -0
  409. /package/dist/{types/babel.d.ts → babel.d.ts} +0 -0
  410. /package/dist/{types/chainId.d.ts → chainId.d.ts} +0 -0
  411. /package/dist/{cjs/chainId.js → chainId.js} +0 -0
  412. /package/dist/{types/clearConsole.d.ts → clearConsole.d.ts} +0 -0
  413. /package/dist/{cjs/clearConsole.js → clearConsole.js} +0 -0
  414. /package/dist/{types/commands.d.ts → commands.d.ts} +0 -0
  415. /package/dist/{cjs/commands.js → commands.js} +0 -0
  416. /package/dist/{types/compatRequire.d.ts → compatRequire.d.ts} +0 -0
  417. /package/dist/{cjs/compiled.js → compiled.js} +0 -0
  418. /package/dist/{types/constants.d.ts → constants.d.ts} +0 -0
  419. /package/dist/{cjs/constants.js → constants.js} +0 -0
  420. /package/dist/{cjs/debug.js → debug.js} +0 -0
  421. /package/dist/{types/emptyDir.d.ts → emptyDir.d.ts} +0 -0
  422. /package/dist/{types/ensureAbsolutePath.d.ts → ensureAbsolutePath.d.ts} +0 -0
  423. /package/dist/{cjs/ensureAbsolutePath.js → ensureAbsolutePath.js} +0 -0
  424. /package/dist/{types/ensureArray.d.ts → ensureArray.d.ts} +0 -0
  425. /package/dist/{cjs/ensureArray.js → ensureArray.js} +0 -0
  426. /package/dist/{types/findExists.d.ts → findExists.d.ts} +0 -0
  427. /package/dist/{cjs/findExists.js → findExists.js} +0 -0
  428. /package/dist/{types/generateMetaTags.d.ts → generateMetaTags.d.ts} +0 -0
  429. /package/dist/{cjs/generateMetaTags.js → generateMetaTags.js} +0 -0
  430. /package/dist/{types/getBrowserslist.d.ts → getBrowserslist.d.ts} +0 -0
  431. /package/dist/{cjs/getBrowserslist.js → getBrowserslist.js} +0 -0
  432. /package/dist/{types/getCoreJsVersion.d.ts → getCoreJsVersion.d.ts} +0 -0
  433. /package/dist/{cjs/getCoreJsVersion.js → getCoreJsVersion.js} +0 -0
  434. /package/dist/{types/getEntryOptions.d.ts → getEntryOptions.d.ts} +0 -0
  435. /package/dist/{types/getPackageManager.d.ts → getPackageManager.d.ts} +0 -0
  436. /package/dist/{types/getPort.d.ts → getPort.d.ts} +0 -0
  437. /package/dist/{types/getServerConfig.d.ts → getServerConfig.d.ts} +0 -0
  438. /package/dist/{types/getTargetDir.d.ts → getTargetDir.d.ts} +0 -0
  439. /package/dist/{cjs/getTargetDir.js → getTargetDir.js} +0 -0
  440. /package/dist/{types/import.d.ts → import.d.ts} +0 -0
  441. /package/dist/{cjs/import.js → import.js} +0 -0
  442. /package/dist/{types/index.d.ts → index.d.ts} +0 -0
  443. /package/dist/{cjs/index.js → index.js} +0 -0
  444. /package/dist/{types/is → is}/index.d.ts +0 -0
  445. /package/dist/{cjs/is → is}/index.js +0 -0
  446. /package/dist/{types/is → is}/nodeEnv.d.ts +0 -0
  447. /package/dist/{cjs/is → is}/nodeEnv.js +0 -0
  448. /package/dist/{types/is → is}/platform.d.ts +0 -0
  449. /package/dist/{cjs/is → is}/platform.js +0 -0
  450. /package/dist/{types/is → is}/type.d.ts +0 -0
  451. /package/dist/{cjs/is → is}/type.js +0 -0
  452. /package/dist/{types/monorepo.d.ts → monorepo.d.ts} +0 -0
  453. /package/dist/{types/nodeEnv.d.ts → nodeEnv.d.ts} +0 -0
  454. /package/dist/{types/path.d.ts → path.d.ts} +0 -0
  455. /package/dist/{types/pathSerializer.d.ts → pathSerializer.d.ts} +0 -0
  456. /package/dist/{types/plugin.d.ts → plugin.d.ts} +0 -0
  457. /package/dist/{cjs/plugin.js → plugin.js} +0 -0
  458. /package/dist/{types/prettyInstructions.d.ts → prettyInstructions.d.ts} +0 -0
  459. /package/dist/{cjs/prettyInstructions.js → prettyInstructions.js} +0 -0
  460. /package/dist/{types/printBuildError.d.ts → printBuildError.d.ts} +0 -0
  461. /package/dist/{cjs/printBuildError.js → printBuildError.js} +0 -0
  462. /package/dist/{types/react.d.ts → react.d.ts} +0 -0
  463. /package/dist/{types/readTsConfig.d.ts → readTsConfig.d.ts} +0 -0
  464. /package/dist/{cjs/readTsConfig.js → readTsConfig.js} +0 -0
  465. /package/dist/{types/removeSlash.d.ts → removeSlash.d.ts} +0 -0
  466. /package/dist/{cjs/removeSlash.js → removeSlash.js} +0 -0
  467. /package/dist/{types/resolve.d.ts → resolve.d.ts} +0 -0
  468. /package/dist/{cjs/resolve.js → resolve.js} +0 -0
  469. /package/dist/{types/routes.d.ts → routes.d.ts} +0 -0
  470. /package/dist/{cjs/routes.js → routes.js} +0 -0
  471. /package/dist/{types/runtimeExports.d.ts → runtimeExports.d.ts} +0 -0
  472. /package/dist/{types/ssr.d.ts → ssr.d.ts} +0 -0
  473. /package/dist/{cjs/ssr.js → ssr.js} +0 -0
  474. /package/dist/{types/storage.d.ts → storage.d.ts} +0 -0
  475. /package/dist/{cjs/storage.js → storage.js} +0 -0
  476. /package/dist/{types/testUtils.d.ts → testUtils.d.ts} +0 -0
  477. /package/dist/{cjs/testUtils.js → testUtils.js} +0 -0
  478. /package/dist/{types/types.d.ts → types.d.ts} +0 -0
  479. /package/dist/{cjs/types.js → types.js} +0 -0
  480. /package/dist/{types/universal → universal}/constants.d.ts +0 -0
  481. /package/dist/{cjs/universal → universal}/constants.js +0 -0
  482. /package/dist/{types/universal → universal}/formatWebpack.d.ts +0 -0
  483. /package/dist/{cjs/universal → universal}/formatWebpack.js +0 -0
  484. /package/dist/{types/universal → universal}/nestedRoutes.d.ts +0 -0
  485. /package/dist/{types/universal → universal}/remixRouter.d.ts +0 -0
  486. /package/dist/{cjs/universal → universal}/remixRouter.js +0 -0
  487. /package/dist/{types/universal → universal}/serialize.d.ts +0 -0
  488. /package/dist/{cjs/universal → universal}/serialize.js +0 -0
  489. /package/dist/{types/version.d.ts → version.d.ts} +0 -0
  490. /package/dist/{types/wait.d.ts → wait.d.ts} +0 -0
  491. /package/dist/{cjs/wait.js → wait.js} +0 -0
  492. /package/dist/{types/watch.d.ts → watch.d.ts} +0 -0
@@ -1,15 +0,0 @@
1
- (The MIT License)
2
-
3
- Copyright (c) 2011-2017 JP Richardson
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
6
- (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify,
7
- merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
11
-
12
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
13
- WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
14
- OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
15
- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1 +0,0 @@
1
- {"name":"fs-extra","author":"JP Richardson <jprichardson@gmail.com>","version":"10.0.1","license":"MIT"}
@@ -1,91 +0,0 @@
1
- // Type definitions for Glob 7.2
2
- // Project: https://github.com/isaacs/node-glob
3
- // Definitions by: vvakame <https://github.com/vvakame>
4
- // voy <https://github.com/voy>
5
- // Klaus Meinhardt <https://github.com/ajafff>
6
- // Piotr Błażejewicz <https://github.com/peterblazejewicz>
7
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
8
-
9
- /// <reference types="node" />
10
-
11
- import events = require('events');
12
- import minimatch = require('./minimatch');
13
- import fs = require('fs');
14
-
15
- declare function G(pattern: string, cb: (err: Error | null, matches: string[]) => void): G.IGlob;
16
- declare function G(pattern: string, options: G.IOptions, cb: (err: Error | null, matches: string[]) => void): G.IGlob;
17
-
18
- declare namespace G {
19
- function __promisify__(pattern: string, options?: IOptions): Promise<string[]>;
20
-
21
- function sync(pattern: string, options?: IOptions): string[];
22
-
23
- function hasMagic(pattern: string, options?: IOptions): boolean;
24
-
25
- let glob: typeof G;
26
- let Glob: IGlobStatic;
27
- let GlobSync: IGlobSyncStatic;
28
-
29
- interface IOptions extends minimatch.IOptions {
30
- cwd?: string | undefined;
31
- root?: string | undefined;
32
- dot?: boolean | undefined;
33
- nomount?: boolean | undefined;
34
- mark?: boolean | undefined;
35
- nosort?: boolean | undefined;
36
- stat?: boolean | undefined;
37
- silent?: boolean | undefined;
38
- strict?: boolean | undefined;
39
- cache?: { [path: string]: boolean | 'DIR' | 'FILE' | ReadonlyArray<string> } | undefined;
40
- statCache?: { [path: string]: false | { isDirectory(): boolean} | undefined } | undefined;
41
- symlinks?: { [path: string]: boolean | undefined } | undefined;
42
- realpathCache?: { [path: string]: string } | undefined;
43
- sync?: boolean | undefined;
44
- nounique?: boolean | undefined;
45
- nonull?: boolean | undefined;
46
- debug?: boolean | undefined;
47
- nobrace?: boolean | undefined;
48
- noglobstar?: boolean | undefined;
49
- noext?: boolean | undefined;
50
- nocase?: boolean | undefined;
51
- matchBase?: any;
52
- nodir?: boolean | undefined;
53
- ignore?: string | ReadonlyArray<string> | undefined;
54
- follow?: boolean | undefined;
55
- realpath?: boolean | undefined;
56
- nonegate?: boolean | undefined;
57
- nocomment?: boolean | undefined;
58
- absolute?: boolean | undefined;
59
- fs?: typeof fs;
60
- }
61
-
62
- interface IGlobStatic extends events.EventEmitter {
63
- new (pattern: string, cb?: (err: Error | null, matches: string[]) => void): IGlob;
64
- new (pattern: string, options: IOptions, cb?: (err: Error | null, matches: string[]) => void): IGlob;
65
- prototype: IGlob;
66
- }
67
-
68
- interface IGlobSyncStatic {
69
- new (pattern: string, options?: IOptions): IGlobBase;
70
- prototype: IGlobBase;
71
- }
72
-
73
- interface IGlobBase {
74
- minimatch: minimatch.IMinimatch;
75
- options: IOptions;
76
- aborted: boolean;
77
- cache: { [path: string]: boolean | 'DIR' | 'FILE' | ReadonlyArray<string> };
78
- statCache: { [path: string]: false | { isDirectory(): boolean; } | undefined };
79
- symlinks: { [path: string]: boolean | undefined };
80
- realpathCache: { [path: string]: string };
81
- found: string[];
82
- }
83
-
84
- interface IGlob extends IGlobBase, events.EventEmitter {
85
- pause(): void;
86
- resume(): void;
87
- abort(): void;
88
- }
89
- }
90
-
91
- export = G;
@@ -1 +0,0 @@
1
- (()=>{var t={155:t=>{"use strict";t.exports=balanced;function balanced(t,e,r){if(t instanceof RegExp)t=maybeMatch(t,r);if(e instanceof RegExp)e=maybeMatch(e,r);var i=range(t,e,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+t.length,i[1]),post:r.slice(i[1]+e.length)}}function maybeMatch(t,e){var r=e.match(t);return r?r[0]:null}balanced.range=range;function range(t,e,r){var i,a,n,s,o;var c=r.indexOf(t);var h=r.indexOf(e,c+1);var l=c;if(c>=0&&h>0){if(t===e){return[c,h]}i=[];n=r.length;while(l>=0&&!o){if(l==c){i.push(l);c=r.indexOf(t,l+1)}else if(i.length==1){o=[i.pop(),h]}else{a=i.pop();if(a<n){n=a;s=h}h=r.indexOf(e,l+1)}l=c<h&&c>=0?c:h}if(i.length){o=[n,s]}}return o}},847:(t,e,r)=>{var i=r(62);var a=r(155);t.exports=expandTop;var n="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var h="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(n).split("\\{").join(s).split("\\}").join(o).split("\\,").join(c).split("\\.").join(h)}function unescapeBraces(t){return t.split(n).join("\\").split(s).join("{").split(o).join("}").split(c).join(",").split(h).join(".")}function parseCommaParts(t){if(!t)return[""];var e=[];var r=a("{","}",t);if(!r)return t.split(",");var i=r.pre;var n=r.body;var s=r.post;var o=i.split(",");o[o.length-1]+="{"+n+"}";var c=parseCommaParts(s);if(s.length){o[o.length-1]+=c.shift();o.push.apply(o,c)}e.push.apply(e,o);return e}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function identity(t){return t}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,e){return t<=e}function gte(t,e){return t>=e}function expand(t,e){var r=[];var n=a("{","}",t);if(!n||/\$$/.test(n.pre))return[t];var s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body);var h=s||c;var l=n.body.indexOf(",")>=0;if(!h&&!l){if(n.post.match(/,.*\}/)){t=n.pre+"{"+n.body+o+n.post;return expand(t)}return[t]}var u;if(h){u=n.body.split(/\.\./)}else{u=parseCommaParts(n.body);if(u.length===1){u=expand(u[0],false).map(embrace);if(u.length===1){var p=n.post.length?expand(n.post,false):[""];return p.map((function(t){return n.pre+u[0]+t}))}}}var v=n.pre;var p=n.post.length?expand(n.post,false):[""];var d;if(h){var m=numeric(u[0]);var b=numeric(u[1]);var g=Math.max(u[0].length,u[1].length);var y=u.length==3?Math.abs(numeric(u[2])):1;var _=lte;var w=b<m;if(w){y*=-1;_=gte}var k=u.some(isPadded);d=[];for(var S=m;_(S,b);S+=y){var E;if(c){E=String.fromCharCode(S);if(E==="\\")E=""}else{E=String(S);if(k){var x=g-E.length;if(x>0){var O=new Array(x+1).join("0");if(S<0)E="-"+O+E.slice(1);else E=O+E}}}d.push(E)}}else{d=i(u,(function(t){return expand(t,false)}))}for(var A=0;A<d.length;A++){for(var G=0;G<p.length;G++){var j=v+d[A]+p[G];if(!e||h||j)r.push(j)}}return r}},62:t=>{t.exports=function(t,r){var i=[];for(var a=0;a<t.length;a++){var n=r(t[a],a);if(e(n))i.push.apply(i,n);else i.push(n)}return i};var e=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}},737:(t,e,r)=>{t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(147);var a=i.realpath;var n=i.realpathSync;var s=process.version;var o=/^v[0-5]\./.test(s);var c=r(613);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,e,r){if(o){return a(t,e,r)}if(typeof e==="function"){r=e;e=null}a(t,e,(function(i,a){if(newError(i)){c.realpath(t,e,r)}else{r(i,a)}}))}function realpathSync(t,e){if(o){return n(t,e)}try{return n(t,e)}catch(r){if(newError(r)){return c.realpathSync(t,e)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=a;i.realpathSync=n}},613:(t,e,r)=>{var i=r(17);var a=process.platform==="win32";var n=r(147);var s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(s){var e=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){e.message=t.message;t=e;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(e);else console.error(e)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var o=i.normalize;if(a){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(a){var h=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var h=/^[\/]*/}e.realpathSync=function realpathSync(t,e){t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return e[t]}var r=t,s={},o={};var l;var u;var p;var v;start();function start(){var e=h.exec(t);l=e[0].length;u=e[0];p=e[0];v="";if(a&&!o[p]){n.lstatSync(p);o[p]=true}}while(l<t.length){c.lastIndex=l;var d=c.exec(t);v=u;u+=d[0];p=v+d[1];l=c.lastIndex;if(o[p]||e&&e[p]===p){continue}var m;if(e&&Object.prototype.hasOwnProperty.call(e,p)){m=e[p]}else{var b=n.lstatSync(p);if(!b.isSymbolicLink()){o[p]=true;if(e)e[p]=p;continue}var g=null;if(!a){var y=b.dev.toString(32)+":"+b.ino.toString(32);if(s.hasOwnProperty(y)){g=s[y]}}if(g===null){n.statSync(p);g=n.readlinkSync(p)}m=i.resolve(v,g);if(e)e[p]=m;if(!a)s[y]=g}t=i.resolve(m,t.slice(l));start()}if(e)e[r]=t;return t};e.realpath=function realpath(t,e,r){if(typeof r!=="function"){r=maybeCallback(e);e=null}t=i.resolve(t);if(e&&Object.prototype.hasOwnProperty.call(e,t)){return process.nextTick(r.bind(null,null,e[t]))}var s=t,o={},l={};var u;var p;var v;var d;start();function start(){var e=h.exec(t);u=e[0].length;p=e[0];v=e[0];d="";if(a&&!l[v]){n.lstat(v,(function(t){if(t)return r(t);l[v]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(u>=t.length){if(e)e[s]=t;return r(null,t)}c.lastIndex=u;var i=c.exec(t);d=p;p+=i[0];v=d+i[1];u=c.lastIndex;if(l[v]||e&&e[v]===v){return process.nextTick(LOOP)}if(e&&Object.prototype.hasOwnProperty.call(e,v)){return gotResolvedLink(e[v])}return n.lstat(v,gotStat)}function gotStat(t,i){if(t)return r(t);if(!i.isSymbolicLink()){l[v]=true;if(e)e[v]=v;return process.nextTick(LOOP)}if(!a){var s=i.dev.toString(32)+":"+i.ino.toString(32);if(o.hasOwnProperty(s)){return gotTarget(null,o[s],v)}}n.stat(v,(function(t){if(t)return r(t);n.readlink(v,(function(t,e){if(!a)o[s]=e;gotTarget(t,e)}))}))}function gotTarget(t,a,n){if(t)return r(t);var s=i.resolve(d,a);if(e)e[n]=s;gotResolvedLink(s)}function gotResolvedLink(e){t=i.resolve(e,t.slice(u));start()}}},875:(t,e,r)=>{e.setopts=setopts;e.ownProp=ownProp;e.makeAbs=makeAbs;e.finish=finish;e.mark=mark;e.isIgnored=isIgnored;e.childrenIgnored=childrenIgnored;function ownProp(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var i=r(147);var a=r(17);var n=r(235);var s=r(249);var o=n.Minimatch;function alphasort(t,e){return t.localeCompare(e,"en")}function setupIgnores(t,e){t.ignore=e.ignore||[];if(!Array.isArray(t.ignore))t.ignore=[t.ignore];if(t.ignore.length){t.ignore=t.ignore.map(ignoreMap)}}function ignoreMap(t){var e=null;if(t.slice(-3)==="/**"){var r=t.replace(/(\/\*\*)+$/,"");e=new o(r,{dot:true})}return{matcher:new o(t,{dot:true}),gmatcher:e}}function setopts(t,e,r){if(!r)r={};if(r.matchBase&&-1===e.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}e="**/"+e}t.silent=!!r.silent;t.pattern=e;t.strict=r.strict!==false;t.realpath=!!r.realpath;t.realpathCache=r.realpathCache||Object.create(null);t.follow=!!r.follow;t.dot=!!r.dot;t.mark=!!r.mark;t.nodir=!!r.nodir;if(t.nodir)t.mark=true;t.sync=!!r.sync;t.nounique=!!r.nounique;t.nonull=!!r.nonull;t.nosort=!!r.nosort;t.nocase=!!r.nocase;t.stat=!!r.stat;t.noprocess=!!r.noprocess;t.absolute=!!r.absolute;t.fs=r.fs||i;t.maxLength=r.maxLength||Infinity;t.cache=r.cache||Object.create(null);t.statCache=r.statCache||Object.create(null);t.symlinks=r.symlinks||Object.create(null);setupIgnores(t,r);t.changedCwd=false;var n=process.cwd();if(!ownProp(r,"cwd"))t.cwd=n;else{t.cwd=a.resolve(r.cwd);t.changedCwd=t.cwd!==n}t.root=r.root||a.resolve(t.cwd,"/");t.root=a.resolve(t.root);if(process.platform==="win32")t.root=t.root.replace(/\\/g,"/");t.cwdAbs=s(t.cwd)?t.cwd:makeAbs(t,t.cwd);if(process.platform==="win32")t.cwdAbs=t.cwdAbs.replace(/\\/g,"/");t.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;t.minimatch=new o(e,r);t.options=t.minimatch.options}function finish(t){var e=t.nounique;var r=e?[]:Object.create(null);for(var i=0,a=t.matches.length;i<a;i++){var n=t.matches[i];if(!n||Object.keys(n).length===0){if(t.nonull){var s=t.minimatch.globSet[i];if(e)r.push(s);else r[s]=true}}else{var o=Object.keys(n);if(e)r.push.apply(r,o);else o.forEach((function(t){r[t]=true}))}}if(!e)r=Object.keys(r);if(!t.nosort)r=r.sort(alphasort);if(t.mark){for(var i=0;i<r.length;i++){r[i]=t._mark(r[i])}if(t.nodir){r=r.filter((function(e){var r=!/\/$/.test(e);var i=t.cache[e]||t.cache[makeAbs(t,e)];if(r&&i)r=i!=="DIR"&&!Array.isArray(i);return r}))}}if(t.ignore.length)r=r.filter((function(e){return!isIgnored(t,e)}));t.found=r}function mark(t,e){var r=makeAbs(t,e);var i=t.cache[r];var a=e;if(i){var n=i==="DIR"||Array.isArray(i);var s=e.slice(-1)==="/";if(n&&!s)a+="/";else if(!n&&s)a=a.slice(0,-1);if(a!==e){var o=makeAbs(t,a);t.statCache[o]=t.statCache[r];t.cache[o]=t.cache[r]}}return a}function makeAbs(t,e){var r=e;if(e.charAt(0)==="/"){r=a.join(t.root,e)}else if(s(e)||e===""){r=e}else if(t.changedCwd){r=a.resolve(t.cwd,e)}else{r=a.resolve(e)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some((function(t){return t.matcher.match(e)||!!(t.gmatcher&&t.gmatcher.match(e))}))}function childrenIgnored(t,e){if(!t.ignore.length)return false;return t.ignore.some((function(t){return!!(t.gmatcher&&t.gmatcher.match(e))}))}},978:(t,e,r)=>{t.exports=glob;var i=r(737);var a=r(235);var n=a.Minimatch;var s=r(315);var o=r(361).EventEmitter;var c=r(17);var h=r(491);var l=r(249);var u=r(19);var p=r(875);var v=p.setopts;var d=p.ownProp;var m=r(900);var b=r(837);var g=p.childrenIgnored;var y=p.isIgnored;var _=r(556);function glob(t,e,r){if(typeof e==="function")r=e,e={};if(!e)e={};if(e.sync){if(r)throw new TypeError("callback provided to sync glob");return u(t,e)}return new Glob(t,e,r)}glob.sync=u;var w=glob.GlobSync=u.GlobSync;glob.glob=glob;function extend(t,e){if(e===null||typeof e!=="object"){return t}var r=Object.keys(e);var i=r.length;while(i--){t[r[i]]=e[r[i]]}return t}glob.hasMagic=function(t,e){var r=extend({},e);r.noprocess=true;var i=new Glob(t,r);var a=i.minimatch.set;if(!t)return false;if(a.length>1)return true;for(var n=0;n<a[0].length;n++){if(typeof a[0][n]!=="string")return true}return false};glob.Glob=Glob;s(Glob,o);function Glob(t,e,r){if(typeof e==="function"){r=e;e=null}if(e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new w(t,e)}if(!(this instanceof Glob))return new Glob(t,e,r);v(this,t,e);this._didRealPath=false;var i=this.minimatch.set.length;this.matches=new Array(i);if(typeof r==="function"){r=_(r);this.on("error",r);this.on("end",(function(t){r(null,t)}))}var a=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(i===0)return done();var n=true;for(var s=0;s<i;s++){this._process(this.minimatch.set[s],s,false,done)}n=false;function done(){--a._processing;if(a._processing<=0){if(n){process.nextTick((function(){a._finish()}))}else{a._finish()}}}}Glob.prototype._finish=function(){h(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var t=this.matches.length;if(t===0)return this._finish();var e=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--t===0)e._finish()}};Glob.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var a=Object.keys(r);var n=this;var s=a.length;if(s===0)return e();var o=this.matches[t]=Object.create(null);a.forEach((function(r,a){r=n._makeAbs(r);i.realpath(r,n.realpathCache,(function(i,a){if(!i)o[a]=true;else if(i.syscall==="stat")o[r]=true;else n.emit("error",i);if(--s===0){n.matches[t]=o;e()}}))}))};Glob.prototype._mark=function(t){return p.mark(this,t)};Glob.prototype._makeAbs=function(t){return p.makeAbs(this,t)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var e=0;e<i.length;e++){var a=i[e];this._processing--;this._process(a[0],a[1],a[2],a[3])}}}};Glob.prototype._process=function(t,e,r,i){h(this instanceof Glob);h(typeof i==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([t,e,r,i]);return}var n=0;while(typeof t[n]==="string"){n++}var s;switch(n){case t.length:this._processSimple(t.join("/"),e,i);return;case 0:s=null;break;default:s=t.slice(0,n).join("/");break}var o=t.slice(n);var c;if(s===null)c=".";else if(l(s)||l(t.join("/"))){if(!s||!l(s))s="/"+s;c=s}else c=s;var u=this._makeAbs(c);if(g(this,c))return i();var p=o[0]===a.GLOBSTAR;if(p)this._processGlobStar(s,c,u,o,e,r,i);else this._processReaddir(s,c,u,o,e,r,i)};Glob.prototype._processReaddir=function(t,e,r,i,a,n,s){var o=this;this._readdir(r,n,(function(c,h){return o._processReaddir2(t,e,r,i,a,n,h,s)}))};Glob.prototype._processReaddir2=function(t,e,r,i,a,n,s,o){if(!s)return o();var h=i[0];var l=!!this.minimatch.negate;var u=h._glob;var p=this.dot||u.charAt(0)===".";var v=[];for(var d=0;d<s.length;d++){var m=s[d];if(m.charAt(0)!=="."||p){var b;if(l&&!t){b=!m.match(h)}else{b=m.match(h)}if(b)v.push(m)}}var g=v.length;if(g===0)return o();if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[a])this.matches[a]=Object.create(null);for(var d=0;d<g;d++){var m=v[d];if(t){if(t!=="/")m=t+"/"+m;else m=t+m}if(m.charAt(0)==="/"&&!this.nomount){m=c.join(this.root,m)}this._emitMatch(a,m)}return o()}i.shift();for(var d=0;d<g;d++){var m=v[d];var y;if(t){if(t!=="/")m=t+"/"+m;else m=t+m}this._process([m].concat(i),a,n,o)}o()};Glob.prototype._emitMatch=function(t,e){if(this.aborted)return;if(y(this,e))return;if(this.paused){this._emitQueue.push([t,e]);return}var r=l(e)?e:this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute)e=r;if(this.matches[t][e])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=true;var a=this.statCache[r];if(a)this.emit("stat",e,a);this.emit("match",e)};Glob.prototype._readdirInGlobStar=function(t,e){if(this.aborted)return;if(this.follow)return this._readdir(t,false,e);var r="lstat\0"+t;var i=this;var a=m(r,lstatcb_);if(a)i.fs.lstat(t,a);function lstatcb_(r,a){if(r&&r.code==="ENOENT")return e();var n=a&&a.isSymbolicLink();i.symlinks[t]=n;if(!n&&a&&!a.isDirectory()){i.cache[t]="FILE";e()}else i._readdir(t,false,e)}};Glob.prototype._readdir=function(t,e,r){if(this.aborted)return;r=m("readdir\0"+t+"\0"+e,r);if(!r)return;if(e&&!d(this.symlinks,t))return this._readdirInGlobStar(t,r);if(d(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var a=this;a.fs.readdir(t,readdirCb(this,t,r))};function readdirCb(t,e,r){return function(i,a){if(i)t._readdirError(e,i,r);else t._readdirEntries(e,a,r)}}Glob.prototype._readdirEntries=function(t,e,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<e.length;i++){var a=e[i];if(t==="/")a=t+a;else a=t+"/"+a;this.cache[a]=true}}this.cache[t]=e;return r(null,e)};Glob.prototype._readdirError=function(t,e,r){if(this.aborted)return;switch(e.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(t);this.cache[i]="FILE";if(i===this.cwdAbs){var a=new Error(e.code+" invalid cwd "+this.cwd);a.path=this.cwd;a.code=e.code;this.emit("error",a);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict){this.emit("error",e);this.abort()}if(!this.silent)console.error("glob error",e);break}return r()};Glob.prototype._processGlobStar=function(t,e,r,i,a,n,s){var o=this;this._readdir(r,n,(function(c,h){o._processGlobStar2(t,e,r,i,a,n,h,s)}))};Glob.prototype._processGlobStar2=function(t,e,r,i,a,n,s,o){if(!s)return o();var c=i.slice(1);var h=t?[t]:[];var l=h.concat(c);this._process(l,a,false,o);var u=this.symlinks[r];var p=s.length;if(u&&n)return o();for(var v=0;v<p;v++){var d=s[v];if(d.charAt(0)==="."&&!this.dot)continue;var m=h.concat(s[v],c);this._process(m,a,true,o);var b=h.concat(s[v],i);this._process(b,a,true,o)}o()};Glob.prototype._processSimple=function(t,e,r){var i=this;this._stat(t,(function(a,n){i._processSimple2(t,e,a,n,r)}))};Glob.prototype._processSimple2=function(t,e,r,i,a){if(!this.matches[e])this.matches[e]=Object.create(null);if(!i)return a();if(t&&l(t)&&!this.nomount){var n=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=c.join(this.root,t)}else{t=c.resolve(this.root,t);if(n)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t);a()};Glob.prototype._stat=function(t,e){var r=this._makeAbs(t);var i=t.slice(-1)==="/";if(t.length>this.maxLength)return e();if(!this.stat&&d(this.cache,r)){var a=this.cache[r];if(Array.isArray(a))a="DIR";if(!i||a==="DIR")return e(null,a);if(i&&a==="FILE")return e()}var n;var s=this.statCache[r];if(s!==undefined){if(s===false)return e(null,s);else{var o=s.isDirectory()?"DIR":"FILE";if(i&&o==="FILE")return e();else return e(null,o,s)}}var c=this;var h=m("stat\0"+r,lstatcb_);if(h)c.fs.lstat(r,h);function lstatcb_(i,a){if(a&&a.isSymbolicLink()){return c.fs.stat(r,(function(i,n){if(i)c._stat2(t,r,null,a,e);else c._stat2(t,r,i,n,e)}))}else{c._stat2(t,r,i,a,e)}}};Glob.prototype._stat2=function(t,e,r,i,a){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[e]=false;return a()}var n=t.slice(-1)==="/";this.statCache[e]=i;if(e.slice(-1)==="/"&&i&&!i.isDirectory())return a(null,false,i);var s=true;if(i)s=i.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||s;if(n&&s==="FILE")return a();return a(null,s,i)}},19:(t,e,r)=>{t.exports=globSync;globSync.GlobSync=GlobSync;var i=r(737);var a=r(235);var n=a.Minimatch;var s=r(978).Glob;var o=r(837);var c=r(17);var h=r(491);var l=r(249);var u=r(875);var p=u.setopts;var v=u.ownProp;var d=u.childrenIgnored;var m=u.isIgnored;function globSync(t,e){if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,e).found}function GlobSync(t,e){if(!t)throw new Error("must provide pattern");if(typeof e==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,e);p(this,t,e);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){h(this instanceof GlobSync);if(this.realpath){var t=this;this.matches.forEach((function(e,r){var a=t.matches[r]=Object.create(null);for(var n in e){try{n=t._makeAbs(n);var s=i.realpathSync(n,t.realpathCache);a[s]=true}catch(e){if(e.syscall==="stat")a[t._makeAbs(n)]=true;else throw e}}}))}u.finish(this)};GlobSync.prototype._process=function(t,e,r){h(this instanceof GlobSync);var i=0;while(typeof t[i]==="string"){i++}var n;switch(i){case t.length:this._processSimple(t.join("/"),e);return;case 0:n=null;break;default:n=t.slice(0,i).join("/");break}var s=t.slice(i);var o;if(n===null)o=".";else if(l(n)||l(t.join("/"))){if(!n||!l(n))n="/"+n;o=n}else o=n;var c=this._makeAbs(o);if(d(this,o))return;var u=s[0]===a.GLOBSTAR;if(u)this._processGlobStar(n,o,c,s,e,r);else this._processReaddir(n,o,c,s,e,r)};GlobSync.prototype._processReaddir=function(t,e,r,i,a,n){var s=this._readdir(r,n);if(!s)return;var o=i[0];var h=!!this.minimatch.negate;var l=o._glob;var u=this.dot||l.charAt(0)===".";var p=[];for(var v=0;v<s.length;v++){var d=s[v];if(d.charAt(0)!=="."||u){var m;if(h&&!t){m=!d.match(o)}else{m=d.match(o)}if(m)p.push(d)}}var b=p.length;if(b===0)return;if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[a])this.matches[a]=Object.create(null);for(var v=0;v<b;v++){var d=p[v];if(t){if(t.slice(-1)!=="/")d=t+"/"+d;else d=t+d}if(d.charAt(0)==="/"&&!this.nomount){d=c.join(this.root,d)}this._emitMatch(a,d)}return}i.shift();for(var v=0;v<b;v++){var d=p[v];var g;if(t)g=[t,d];else g=[d];this._process(g.concat(i),a,n)}};GlobSync.prototype._emitMatch=function(t,e){if(m(this,e))return;var r=this._makeAbs(e);if(this.mark)e=this._mark(e);if(this.absolute){e=r}if(this.matches[t][e])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[t][e]=true;if(this.stat)this._stat(e)};GlobSync.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,false);var e;var r;var i;try{r=this.fs.lstatSync(t)}catch(t){if(t.code==="ENOENT"){return null}}var a=r&&r.isSymbolicLink();this.symlinks[t]=a;if(!a&&r&&!r.isDirectory())this.cache[t]="FILE";else e=this._readdir(t,false);return e};GlobSync.prototype._readdir=function(t,e){var r;if(e&&!v(this.symlinks,t))return this._readdirInGlobStar(t);if(v(this.cache,t)){var i=this.cache[t];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(t,this.fs.readdirSync(t))}catch(e){this._readdirError(t,e);return null}};GlobSync.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat){for(var r=0;r<e.length;r++){var i=e[r];if(t==="/")i=t+i;else i=t+"/"+i;this.cache[i]=true}}this.cache[t]=e;return e};GlobSync.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);this.cache[r]="FILE";if(r===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=e.code;throw i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict)throw e;if(!this.silent)console.error("glob error",e);break}};GlobSync.prototype._processGlobStar=function(t,e,r,i,a,n){var s=this._readdir(r,n);if(!s)return;var o=i.slice(1);var c=t?[t]:[];var h=c.concat(o);this._process(h,a,false);var l=s.length;var u=this.symlinks[r];if(u&&n)return;for(var p=0;p<l;p++){var v=s[p];if(v.charAt(0)==="."&&!this.dot)continue;var d=c.concat(s[p],o);this._process(d,a,true);var m=c.concat(s[p],i);this._process(m,a,true)}};GlobSync.prototype._processSimple=function(t,e){var r=this._stat(t);if(!this.matches[e])this.matches[e]=Object.create(null);if(!r)return;if(t&&l(t)&&!this.nomount){var i=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=c.join(this.root,t)}else{t=c.resolve(this.root,t);if(i)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(e,t)};GlobSync.prototype._stat=function(t){var e=this._makeAbs(t);var r=t.slice(-1)==="/";if(t.length>this.maxLength)return false;if(!this.stat&&v(this.cache,e)){var i=this.cache[e];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var a;var n=this.statCache[e];if(!n){var s;try{s=this.fs.lstatSync(e)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[e]=false;return false}}if(s&&s.isSymbolicLink()){try{n=this.fs.statSync(e)}catch(t){n=s}}else{n=s}}this.statCache[e]=n;var i=true;if(n)i=n.isDirectory()?"DIR":"FILE";this.cache[e]=this.cache[e]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(t){return u.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return u.makeAbs(this,t)}},900:(t,e,r)=>{var i=r(928);var a=Object.create(null);var n=r(556);t.exports=i(inflight);function inflight(t,e){if(a[t]){a[t].push(e);return null}else{a[t]=[e];return makeres(t)}}function makeres(t){return n((function RES(){var e=a[t];var r=e.length;var i=slice(arguments);try{for(var n=0;n<r;n++){e[n].apply(null,i)}}finally{if(e.length>r){e.splice(0,r);process.nextTick((function(){RES.apply(null,i)}))}else{delete a[t]}}}))}function slice(t){var e=t.length;var r=[];for(var i=0;i<e;i++)r[i]=t[i];return r}},315:(t,e,r)=>{try{var i=r(837);if(typeof i.inherits!=="function")throw"";t.exports=i.inherits}catch(e){t.exports=r(959)}},959:t=>{if(typeof Object.create==="function"){t.exports=function inherits(t,e){if(e){t.super_=e;t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function inherits(t,e){if(e){t.super_=e;var TempCtor=function(){};TempCtor.prototype=e.prototype;t.prototype=new TempCtor;t.prototype.constructor=t}}}},235:(t,e,r)=>{t.exports=minimatch;minimatch.Minimatch=Minimatch;var i=function(){try{return r(17)}catch(t){}}()||{sep:"/"};minimatch.sep=i.sep;var a=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var n=r(847);var s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var o="[^/]";var c=o+"*?";var h="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var u=charSet("().*{}+?[]^$\\!");function charSet(t){return t.split("").reduce((function(t,e){t[e]=true;return t}),{})}var p=/\/+/;minimatch.filter=filter;function filter(t,e){e=e||{};return function(r,i,a){return minimatch(r,t,e)}}function ext(t,e){e=e||{};var r={};Object.keys(t).forEach((function(e){r[e]=t[e]}));Object.keys(e).forEach((function(t){r[t]=e[t]}));return r}minimatch.defaults=function(t){if(!t||typeof t!=="object"||!Object.keys(t).length){return minimatch}var e=minimatch;var r=function minimatch(r,i,a){return e(r,i,ext(t,a))};r.Minimatch=function Minimatch(r,i){return new e.Minimatch(r,ext(t,i))};r.Minimatch.defaults=function defaults(r){return e.defaults(ext(t,r)).Minimatch};r.filter=function filter(r,i){return e.filter(r,ext(t,i))};r.defaults=function defaults(r){return e.defaults(ext(t,r))};r.makeRe=function makeRe(r,i){return e.makeRe(r,ext(t,i))};r.braceExpand=function braceExpand(r,i){return e.braceExpand(r,ext(t,i))};r.match=function(r,i,a){return e.match(r,i,ext(t,a))};return r};Minimatch.defaults=function(t){return minimatch.defaults(t).Minimatch};function minimatch(t,e,r){assertValidPattern(e);if(!r)r={};if(!r.nocomment&&e.charAt(0)==="#"){return false}return new Minimatch(e,r).match(t)}function Minimatch(t,e){if(!(this instanceof Minimatch)){return new Minimatch(t,e)}assertValidPattern(t);if(!e)e={};t=t.trim();if(!e.allowWindowsEscape&&i.sep!=="/"){t=t.split(i.sep).join("/")}this.options=e;this.set=[];this.pattern=t;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!e.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var t=this.pattern;var e=this.options;if(!e.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(e.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(t){return t.split(p)}));this.debug(this.pattern,r);r=r.map((function(t,e,r){return t.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(t){return t.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var t=this.pattern;var e=false;var r=this.options;var i=0;if(r.nonegate)return;for(var a=0,n=t.length;a<n&&t.charAt(a)==="!";a++){e=!e;i++}if(i)this.pattern=t.substr(i);this.negate=e}minimatch.braceExpand=function(t,e){return braceExpand(t,e)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(t,e){if(!e){if(this instanceof Minimatch){e=this.options}else{e={}}}t=typeof t==="undefined"?this.pattern:t;assertValidPattern(t);if(e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)){return[t]}return n(t)}var v=1024*64;var assertValidPattern=function(t){if(typeof t!=="string"){throw new TypeError("invalid pattern")}if(t.length>v){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var d={};function parse(t,e){assertValidPattern(t);var r=this.options;if(t==="**"){if(!r.noglobstar)return a;else t="*"}if(t==="")return"";var i="";var n=!!r.nocase;var h=false;var l=[];var p=[];var v;var m=false;var b=-1;var g=-1;var y=t.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var _=this;function clearStateChar(){if(v){switch(v){case"*":i+=c;n=true;break;case"?":i+=o;n=true;break;default:i+="\\"+v;break}_.debug("clearStateChar %j %j",v,i);v=false}}for(var w=0,k=t.length,S;w<k&&(S=t.charAt(w));w++){this.debug("%s\t%s %s %j",t,w,i,S);if(h&&u[S]){i+="\\"+S;h=false;continue}switch(S){case"/":{return false}case"\\":clearStateChar();h=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",t,w,i,S);if(m){this.debug(" in class");if(S==="!"&&w===g+1)S="^";i+=S;continue}_.debug("call clearStateChar %j",v);clearStateChar();v=S;if(r.noext)clearStateChar();continue;case"(":if(m){i+="(";continue}if(!v){i+="\\(";continue}l.push({type:v,start:w-1,reStart:i.length,open:s[v].open,close:s[v].close});i+=v==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",v,i);v=false;continue;case")":if(m||!l.length){i+="\\)";continue}clearStateChar();n=true;var E=l.pop();i+=E.close;if(E.type==="!"){p.push(E)}E.reEnd=i.length;continue;case"|":if(m||!l.length||h){i+="\\|";h=false;continue}clearStateChar();i+="|";continue;case"[":clearStateChar();if(m){i+="\\"+S;continue}m=true;g=w;b=i.length;i+=S;continue;case"]":if(w===g+1||!m){i+="\\"+S;h=false;continue}var x=t.substring(g+1,w);try{RegExp("["+x+"]")}catch(t){var O=this.parse(x,d);i=i.substr(0,b)+"\\["+O[0]+"\\]";n=n||O[1];m=false;continue}n=true;m=false;i+=S;continue;default:clearStateChar();if(h){h=false}else if(u[S]&&!(S==="^"&&m)){i+="\\"}i+=S}}if(m){x=t.substr(g+1);O=this.parse(x,d);i=i.substr(0,b)+"\\["+O[0];n=n||O[1]}for(E=l.pop();E;E=l.pop()){var A=i.slice(E.reStart+E.open.length);this.debug("setting tail",i,E);A=A.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(t,e,r){if(!r){r="\\"}return e+e+r+"|"}));this.debug("tail=%j\n %s",A,A,E,i);var G=E.type==="*"?c:E.type==="?"?o:"\\"+E.type;n=true;i=i.slice(0,E.reStart)+G+"\\("+A}clearStateChar();if(h){i+="\\\\"}var j=false;switch(i.charAt(0)){case"[":case".":case"(":j=true}for(var M=p.length-1;M>-1;M--){var I=p[M];var R=i.slice(0,I.reStart);var C=i.slice(I.reStart,I.reEnd-8);var L=i.slice(I.reEnd-8,I.reEnd);var N=i.slice(I.reEnd);L+=N;var T=R.split("(").length-1;var P=N;for(w=0;w<T;w++){P=P.replace(/\)[+*?]?/,"")}N=P;var D="";if(N===""&&e!==d){D="$"}var $=R+C+N+D+L;i=$}if(i!==""&&n){i="(?=.)"+i}if(j){i=y+i}if(e===d){return[i,n]}if(!n){return globUnescape(t)}var F=r.nocase?"i":"";try{var B=new RegExp("^"+i+"$",F)}catch(t){return new RegExp("$.")}B._glob=t;B._src=i;return B}minimatch.makeRe=function(t,e){return new Minimatch(t,e||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var t=this.set;if(!t.length){this.regexp=false;return this.regexp}var e=this.options;var r=e.noglobstar?c:e.dot?h:l;var i=e.nocase?"i":"";var n=t.map((function(t){return t.map((function(t){return t===a?r:typeof t==="string"?regExpEscape(t):t._src})).join("\\/")})).join("|");n="^(?:"+n+")$";if(this.negate)n="^(?!"+n+").*$";try{this.regexp=new RegExp(n,i)}catch(t){this.regexp=false}return this.regexp}minimatch.match=function(t,e,r){r=r||{};var i=new Minimatch(e,r);t=t.filter((function(t){return i.match(t)}));if(i.options.nonull&&!t.length){t.push(e)}return t};Minimatch.prototype.match=function match(t,e){if(typeof e==="undefined")e=this.partial;this.debug("match",t,this.pattern);if(this.comment)return false;if(this.empty)return t==="";if(t==="/"&&e)return true;var r=this.options;if(i.sep!=="/"){t=t.split(i.sep).join("/")}t=t.split(p);this.debug(this.pattern,"split",t);var a=this.set;this.debug(this.pattern,"set",a);var n;var s;for(s=t.length-1;s>=0;s--){n=t[s];if(n)break}for(s=0;s<a.length;s++){var o=a[s];var c=t;if(r.matchBase&&o.length===1){c=[n]}var h=this.matchOne(c,o,e);if(h){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e});this.debug("matchOne",t.length,e.length);for(var n=0,s=0,o=t.length,c=e.length;n<o&&s<c;n++,s++){this.debug("matchOne loop");var h=e[s];var l=t[n];this.debug(e,h,l);if(h===false)return false;if(h===a){this.debug("GLOBSTAR",[e,h,l]);var u=n;var p=s+1;if(p===c){this.debug("** at the end");for(;n<o;n++){if(t[n]==="."||t[n]===".."||!i.dot&&t[n].charAt(0)===".")return false}return true}while(u<o){var v=t[u];this.debug("\nglobstar while",t,u,e,p,v);if(this.matchOne(t.slice(u),e.slice(p),r)){this.debug("globstar found match!",u,o,v);return true}else{if(v==="."||v===".."||!i.dot&&v.charAt(0)==="."){this.debug("dot detected!",t,u,e,p);break}this.debug("globstar swallow a segment, and continue");u++}}if(r){this.debug("\n>>> no match, partial?",t,u,e,p);if(u===o)return true}return false}var d;if(typeof h==="string"){d=l===h;this.debug("string match",h,l,d)}else{d=l.match(h);this.debug("pattern match",h,l,d)}if(!d)return false}if(n===o&&s===c){return true}else if(n===o){return r}else if(s===c){return n===o-1&&t[n]===""}throw new Error("wtf?")};function globUnescape(t){return t.replace(/\\(.)/g,"$1")}function regExpEscape(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},556:(t,e,r)=>{var i=r(928);t.exports=i(once);t.exports.strict=i(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(t){var f=function(){if(f.called)return f.value;f.called=true;return f.value=t.apply(this,arguments)};f.called=false;return f}function onceStrict(t){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=t.apply(this,arguments)};var e=t.name||"Function wrapped with `once`";f.onceError=e+" shouldn't be called more than once";f.called=false;return f}},249:t=>{"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var e=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=e.exec(t);var i=r[1]||"";var a=Boolean(i&&i.charAt(1)!==":");return Boolean(r[2]||a)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},928:t=>{t.exports=wrappy;function wrappy(t,e){if(t&&e)return wrappy(t)(e);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach((function(e){wrapper[e]=t[e]}));return wrapper;function wrapper(){var e=new Array(arguments.length);for(var r=0;r<e.length;r++){e[r]=arguments[r]}var i=t.apply(this,e);var a=e[e.length-1];if(typeof i==="function"&&i!==a){Object.keys(a).forEach((function(t){i[t]=a[t]}))}return i}}},491:t=>{"use strict";t.exports=require("assert")},361:t=>{"use strict";t.exports=require("events")},147:t=>{"use strict";t.exports=require("fs")},17:t=>{"use strict";t.exports=require("path")},837:t=>{"use strict";t.exports=require("util")}};var e={};function __nccwpck_require__(r){var i=e[r];if(i!==undefined){return i.exports}var a=e[r]={exports:{}};var n=true;try{t[r](a,a.exports,__nccwpck_require__);n=false}finally{if(n)delete e[r]}return a.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(978);module.exports=r})();
@@ -1,21 +0,0 @@
1
- The ISC License
2
-
3
- Copyright (c) Isaac Z. Schlueter and Contributors
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted, provided that the above
7
- copyright notice and this permission notice appear in all copies.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
-
17
- ## Glob Logo
18
-
19
- Glob's logo created by Tanya Brassie <http://tanyabrassie.com/>, licensed
20
- under a Creative Commons Attribution-ShareAlike 4.0 International License
21
- https://creativecommons.org/licenses/by-sa/4.0/
@@ -1,204 +0,0 @@
1
- // Type definitions for Minimatch 3.0
2
- // Project: https://github.com/isaacs/minimatch
3
- // Definitions by: vvakame <https://github.com/vvakame>
4
- // Shant Marouti <https://github.com/shantmarouti>
5
- // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
6
-
7
- /**
8
- * Tests a path against the pattern using the options.
9
- */
10
- declare function M(target: string, pattern: string, options?: M.IOptions): boolean;
11
-
12
- declare namespace M {
13
- /**
14
- * Match against the list of files, in the style of fnmatch or glob.
15
- * If nothing is matched, and options.nonull is set,
16
- * then return a list containing the pattern itself.
17
- */
18
- function match(list: ReadonlyArray<string>, pattern: string, options?: IOptions): string[];
19
-
20
- /**
21
- * Returns a function that tests its supplied argument, suitable for use with Array.filter
22
- */
23
- function filter(pattern: string, options?: IOptions): (element: string, indexed: number, array: ReadonlyArray<string>) => boolean;
24
-
25
- /**
26
- * Make a regular expression object from the pattern.
27
- */
28
- function makeRe(pattern: string, options?: IOptions): RegExp;
29
-
30
- let Minimatch: IMinimatchStatic;
31
-
32
- interface IOptions {
33
- /**
34
- * Dump a ton of stuff to stderr.
35
- *
36
- * @default false
37
- */
38
- debug?: boolean | undefined;
39
-
40
- /**
41
- * Do not expand {a,b} and {1..3} brace sets.
42
- *
43
- * @default false
44
- */
45
- nobrace?: boolean | undefined;
46
-
47
- /**
48
- * Disable ** matching against multiple folder names.
49
- *
50
- * @default false
51
- */
52
- noglobstar?: boolean | undefined;
53
-
54
- /**
55
- * Allow patterns to match filenames starting with a period,
56
- * even if the pattern does not explicitly have a period in that spot.
57
- *
58
- * @default false
59
- */
60
- dot?: boolean | undefined;
61
-
62
- /**
63
- * Disable "extglob" style patterns like +(a|b).
64
- *
65
- * @default false
66
- */
67
- noext?: boolean | undefined;
68
-
69
- /**
70
- * Perform a case-insensitive match.
71
- *
72
- * @default false
73
- */
74
- nocase?: boolean | undefined;
75
-
76
- /**
77
- * When a match is not found by minimatch.match,
78
- * return a list containing the pattern itself if this option is set.
79
- * Otherwise, an empty list is returned if there are no matches.
80
- *
81
- * @default false
82
- */
83
- nonull?: boolean | undefined;
84
-
85
- /**
86
- * If set, then patterns without slashes will be matched against
87
- * the basename of the path if it contains slashes.
88
- *
89
- * @default false
90
- */
91
- matchBase?: boolean | undefined;
92
-
93
- /**
94
- * Suppress the behavior of treating #
95
- * at the start of a pattern as a comment.
96
- *
97
- * @default false
98
- */
99
- nocomment?: boolean | undefined;
100
-
101
- /**
102
- * Suppress the behavior of treating a leading ! character as negation.
103
- *
104
- * @default false
105
- */
106
- nonegate?: boolean | undefined;
107
-
108
- /**
109
- * Returns from negate expressions the same as if they were not negated.
110
- * (Ie, true on a hit, false on a miss.)
111
- *
112
- * @default false
113
- */
114
- flipNegate?: boolean | undefined;
115
- }
116
-
117
- interface IMinimatchStatic {
118
- new(pattern: string, options?: IOptions): IMinimatch;
119
- prototype: IMinimatch;
120
- }
121
-
122
- interface IMinimatch {
123
- /**
124
- * The original pattern the minimatch object represents.
125
- */
126
- pattern: string;
127
-
128
- /**
129
- * The options supplied to the constructor.
130
- */
131
- options: IOptions;
132
-
133
- /**
134
- * A 2-dimensional array of regexp or string expressions.
135
- */
136
- set: any[][]; // (RegExp | string)[][]
137
-
138
- /**
139
- * A single regular expression expressing the entire pattern.
140
- * Created by the makeRe method.
141
- */
142
- regexp: RegExp;
143
-
144
- /**
145
- * True if the pattern is negated.
146
- */
147
- negate: boolean;
148
-
149
- /**
150
- * True if the pattern is a comment.
151
- */
152
- comment: boolean;
153
-
154
- /**
155
- * True if the pattern is ""
156
- */
157
- empty: boolean;
158
-
159
- /**
160
- * Generate the regexp member if necessary, and return it.
161
- * Will return false if the pattern is invalid.
162
- */
163
- makeRe(): RegExp; // regexp or boolean
164
-
165
- /**
166
- * Return true if the filename matches the pattern, or false otherwise.
167
- */
168
- match(fname: string): boolean;
169
-
170
- /**
171
- * Take a /-split filename, and match it against a single row in the regExpSet.
172
- * This method is mainly for internal use, but is exposed so that it can be used
173
- * by a glob-walker that needs to avoid excessive filesystem calls.
174
- */
175
- matchOne(files: string[], pattern: string[], partial: boolean): boolean;
176
-
177
- /**
178
- * @deprecated. For internal use.
179
- */
180
- debug(): void;
181
-
182
- /**
183
- * @deprecated. For internal use.
184
- */
185
- make(): void;
186
-
187
- /**
188
- * @deprecated. For internal use.
189
- */
190
- parseNegate(): void;
191
-
192
- /**
193
- * @deprecated. For internal use.
194
- */
195
- braceExpand(pattern: string, options: IOptions): void;
196
-
197
- /**
198
- * @deprecated. For internal use.
199
- */
200
- parse(pattern: string, isSub?: boolean): void;
201
- }
202
- }
203
-
204
- export = M;
@@ -1 +0,0 @@
1
- {"name":"glob","author":"Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)","version":"7.2.0","funding":{"url":"https://github.com/sponsors/isaacs"},"license":"ISC"}
@@ -1,186 +0,0 @@
1
- import {Options as FastGlobOptions, Entry as FastGlobEntry} from '../fast-glob';
2
-
3
- declare namespace globby {
4
- type ExpandDirectoriesOption =
5
- | boolean
6
- | readonly string[]
7
- | {files?: readonly string[]; extensions?: readonly string[]};
8
-
9
- type Entry = FastGlobEntry;
10
-
11
- interface GlobbyOptions extends FastGlobOptions {
12
- /**
13
- If set to `true`, `globby` will automatically glob directories for you. If you define an `Array` it will only glob files that matches the patterns inside the `Array`. You can also define an `Object` with `files` and `extensions` like in the example below.
14
-
15
- Note that if you set this option to `false`, you won't get back matched directories unless you set `onlyFiles: false`.
16
-
17
- @default true
18
-
19
- @example
20
- ```
21
- import globby = require('./globby');
22
-
23
- (async () => {
24
- const paths = await globby('images', {
25
- expandDirectories: {
26
- files: ['cat', 'unicorn', '*.jpg'],
27
- extensions: ['png']
28
- }
29
- });
30
-
31
- console.log(paths);
32
- //=> ['cat.png', 'unicorn.png', 'cow.jpg', 'rainbow.jpg']
33
- })();
34
- ```
35
- */
36
- readonly expandDirectories?: ExpandDirectoriesOption;
37
-
38
- /**
39
- Respect ignore patterns in `.gitignore` files that apply to the globbed files.
40
-
41
- @default false
42
- */
43
- readonly gitignore?: boolean;
44
- }
45
-
46
- interface GlobTask {
47
- readonly pattern: string;
48
- readonly options: GlobbyOptions;
49
- }
50
-
51
- interface GitignoreOptions {
52
- readonly cwd?: string;
53
- readonly ignore?: readonly string[];
54
- }
55
-
56
- type FilterFunction = (path: string) => boolean;
57
- }
58
-
59
- interface Gitignore {
60
- /**
61
- @returns A filter function indicating whether a given path is ignored via a `.gitignore` file.
62
- */
63
- sync: (options?: globby.GitignoreOptions) => globby.FilterFunction;
64
-
65
- /**
66
- `.gitignore` files matched by the ignore config are not used for the resulting filter function.
67
-
68
- @returns A filter function indicating whether a given path is ignored via a `.gitignore` file.
69
-
70
- @example
71
- ```
72
- import {gitignore} from './globby';
73
-
74
- (async () => {
75
- const isIgnored = await gitignore();
76
- console.log(isIgnored('some/file'));
77
- })();
78
- ```
79
- */
80
- (options?: globby.GitignoreOptions): Promise<globby.FilterFunction>;
81
- }
82
-
83
- declare const globby: {
84
- /**
85
- Find files and directories using glob patterns.
86
-
87
- Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
88
-
89
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
90
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
91
- @returns The matching paths.
92
- */
93
- sync: ((
94
- patterns: string | readonly string[],
95
- options: globby.GlobbyOptions & {objectMode: true}
96
- ) => globby.Entry[]) & ((
97
- patterns: string | readonly string[],
98
- options?: globby.GlobbyOptions
99
- ) => string[]);
100
-
101
- /**
102
- Find files and directories using glob patterns.
103
-
104
- Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
105
-
106
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
107
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
108
- @returns The stream of matching paths.
109
-
110
- @example
111
- ```
112
- import globby = require('./globby');
113
-
114
- (async () => {
115
- for await (const path of globby.stream('*.tmp')) {
116
- console.log(path);
117
- }
118
- })();
119
- ```
120
- */
121
- stream: (
122
- patterns: string | readonly string[],
123
- options?: globby.GlobbyOptions
124
- ) => NodeJS.ReadableStream;
125
-
126
- /**
127
- Note that you should avoid running the same tasks multiple times as they contain a file system cache. Instead, run this method each time to ensure file system changes are taken into consideration.
128
-
129
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
130
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
131
- @returns An object in the format `{pattern: string, options: object}`, which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). This is useful for other globbing-related packages.
132
- */
133
- generateGlobTasks: (
134
- patterns: string | readonly string[],
135
- options?: globby.GlobbyOptions
136
- ) => globby.GlobTask[];
137
-
138
- /**
139
- Note that the options affect the results.
140
-
141
- This function is backed by [`fast-glob`](https://github.com/mrmlnc/fast-glob#isdynamicpatternpattern-options).
142
-
143
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
144
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3).
145
- @returns Whether there are any special glob characters in the `patterns`.
146
- */
147
- hasMagic: (
148
- patterns: string | readonly string[],
149
- options?: FastGlobOptions
150
- ) => boolean;
151
-
152
- readonly gitignore: Gitignore;
153
-
154
- (
155
- patterns: string | readonly string[],
156
- options: globby.GlobbyOptions & {objectMode: true}
157
- ): Promise<globby.Entry[]>;
158
-
159
- /**
160
- Find files and directories using glob patterns.
161
-
162
- Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
163
-
164
- @param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
165
- @param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
166
- @returns The matching paths.
167
-
168
- @example
169
- ```
170
- import globby = require('./globby');
171
-
172
- (async () => {
173
- const paths = await globby(['*', '!cake']);
174
-
175
- console.log(paths);
176
- //=> ['unicorn', 'rainbow']
177
- })();
178
- ```
179
- */
180
- (
181
- patterns: string | readonly string[],
182
- options?: globby.GlobbyOptions
183
- ): Promise<string[]>;
184
- };
185
-
186
- export = globby;
@@ -1 +0,0 @@
1
- (()=>{var t={337:t=>{"use strict";t.exports=(...t)=>[...new Set([].concat(...t))]},352:(t,e,r)=>{"use strict";const n=r(17);const s=r(223);const getExtensions=t=>t.length>1?`{${t.join(",")}}`:t[0];const getPath=(t,e)=>{const r=t[0]==="!"?t.slice(1):t;return n.isAbsolute(r)?r:n.join(e,r)};const addExtensions=(t,e)=>{if(n.extname(t)){return`**/${t}`}return`**/${t}.${getExtensions(e)}`};const getGlob=(t,e)=>{if(e.files&&!Array.isArray(e.files)){throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof e.files}\``)}if(e.extensions&&!Array.isArray(e.extensions)){throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof e.extensions}\``)}if(e.files&&e.extensions){return e.files.map((r=>n.posix.join(t,addExtensions(r,e.extensions))))}if(e.files){return e.files.map((e=>n.posix.join(t,`**/${e}`)))}if(e.extensions){return[n.posix.join(t,`**/*.${getExtensions(e.extensions)}`)]}return[n.posix.join(t,"**")]};t.exports=async(t,e)=>{e={cwd:process.cwd(),...e};if(typeof e.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``)}const r=await Promise.all([].concat(t).map((async t=>{const r=await s.isDirectory(getPath(t,e.cwd));return r?getGlob(t,e):t})));return[].concat.apply([],r)};t.exports.sync=(t,e)=>{e={cwd:process.cwd(),...e};if(typeof e.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof e.cwd}\``)}const r=[].concat(t).map((t=>s.isDirectorySync(getPath(t,e.cwd))?getGlob(t,e):t));return[].concat.apply([],r)}},153:(t,e,r)=>{"use strict";const{promisify:n}=r(837);const s=r(147);const o=r(17);const i=r(592);const c=r(302);const a=r(398);const p=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"];const u=n(s.readFile);const mapGitIgnorePatternTo=t=>e=>{if(e.startsWith("!")){return"!"+o.posix.join(t,e.slice(1))}return o.posix.join(t,e)};const parseGitIgnore=(t,e)=>{const r=a(o.relative(e.cwd,o.dirname(e.fileName)));return t.split(/\r?\n/).filter(Boolean).filter((t=>!t.startsWith("#"))).map(mapGitIgnorePatternTo(r))};const reduceIgnore=t=>{const e=c();for(const r of t){e.add(parseGitIgnore(r.content,{cwd:r.cwd,fileName:r.filePath}))}return e};const ensureAbsolutePathForCwd=(t,e)=>{t=a(t);if(o.isAbsolute(e)){if(a(e).startsWith(t)){return e}throw new Error(`Path ${e} is not in cwd ${t}`)}return o.join(t,e)};const getIsIgnoredPredecate=(t,e)=>r=>t.ignores(a(o.relative(e,ensureAbsolutePathForCwd(e,r.path||r))));const getFile=async(t,e)=>{const r=o.join(e,t);const n=await u(r,"utf8");return{cwd:e,filePath:r,content:n}};const getFileSync=(t,e)=>{const r=o.join(e,t);const n=s.readFileSync(r,"utf8");return{cwd:e,filePath:r,content:n}};const normalizeOptions=({ignore:t=[],cwd:e=a(process.cwd())}={})=>({ignore:t,cwd:e});t.exports=async t=>{t=normalizeOptions(t);const e=await i("**/.gitignore",{ignore:p.concat(t.ignore),cwd:t.cwd});const r=await Promise.all(e.map((e=>getFile(e,t.cwd))));const n=reduceIgnore(r);return getIsIgnoredPredecate(n,t.cwd)};t.exports.sync=t=>{t=normalizeOptions(t);const e=i.sync("**/.gitignore",{ignore:p.concat(t.ignore),cwd:t.cwd});const r=e.map((e=>getFileSync(e,t.cwd)));const n=reduceIgnore(r);return getIsIgnoredPredecate(n,t.cwd)}},718:(t,e,r)=>{"use strict";const n=r(147);const s=r(337);const o=r(382);const i=r(592);const c=r(352);const a=r(153);const{FilterStream:p,UniqueStream:u}=r(546);const DEFAULT_FILTER=()=>false;const isNegative=t=>t[0]==="!";const assertPatternsInput=t=>{if(!t.every((t=>typeof t==="string"))){throw new TypeError("Patterns must be a string or an array of strings")}};const checkCwdOption=(t={})=>{if(!t.cwd){return}let e;try{e=n.statSync(t.cwd)}catch{return}if(!e.isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const getPathString=t=>t.stats instanceof n.Stats?t.path:t;const generateGlobTasks=(t,e)=>{t=s([].concat(t));assertPatternsInput(t);checkCwdOption(e);const r=[];e={ignore:[],expandDirectories:true,...e};for(const[n,s]of t.entries()){if(isNegative(s)){continue}const o=t.slice(n).filter((t=>isNegative(t))).map((t=>t.slice(1)));const i={...e,ignore:e.ignore.concat(o)};r.push({pattern:s,options:i})}return r};const globDirs=(t,e)=>{let r={};if(t.options.cwd){r.cwd=t.options.cwd}if(Array.isArray(t.options.expandDirectories)){r={...r,files:t.options.expandDirectories}}else if(typeof t.options.expandDirectories==="object"){r={...r,...t.options.expandDirectories}}return e(t.pattern,r)};const getPattern=(t,e)=>t.options.expandDirectories?globDirs(t,e):[t.pattern];const getFilterSync=t=>t&&t.gitignore?a.sync({cwd:t.cwd,ignore:t.ignore}):DEFAULT_FILTER;const globToTask=t=>e=>{const{options:r}=t;if(r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories){r.ignore=c.sync(r.ignore)}return{pattern:e,options:r}};t.exports=async(t,e)=>{const r=generateGlobTasks(t,e);const getFilter=async()=>e&&e.gitignore?a({cwd:e.cwd,ignore:e.ignore}):DEFAULT_FILTER;const getTasks=async()=>{const t=await Promise.all(r.map((async t=>{const e=await getPattern(t,c);return Promise.all(e.map(globToTask(t)))})));return s(...t)};const[n,o]=await Promise.all([getFilter(),getTasks()]);const p=await Promise.all(o.map((t=>i(t.pattern,t.options))));return s(...p).filter((t=>!n(getPathString(t))))};t.exports.sync=(t,e)=>{const r=generateGlobTasks(t,e);const n=[];for(const t of r){const e=getPattern(t,c.sync).map(globToTask(t));n.push(...e)}const o=getFilterSync(e);let a=[];for(const t of n){a=s(a,i.sync(t.pattern,t.options))}return a.filter((t=>!o(t)))};t.exports.stream=(t,e)=>{const r=generateGlobTasks(t,e);const n=[];for(const t of r){const e=getPattern(t,c.sync).map(globToTask(t));n.push(...e)}const s=getFilterSync(e);const a=new p((t=>!s(t)));const l=new u;return o(n.map((t=>i.stream(t.pattern,t.options)))).pipe(a).pipe(l)};t.exports.generateGlobTasks=generateGlobTasks;t.exports.hasMagic=(t,e)=>[].concat(t).some((t=>i.isDynamicPattern(t,e)));t.exports.gitignore=a},546:(t,e,r)=>{"use strict";const{Transform:n}=r(781);class ObjectTransform extends n{constructor(){super({objectMode:true})}}class FilterStream extends ObjectTransform{constructor(t){super();this._filter=t}_transform(t,e,r){if(this._filter(t)){this.push(t)}r()}}class UniqueStream extends ObjectTransform{constructor(){super();this._pushed=new Set}_transform(t,e,r){if(!this._pushed.has(t)){this.push(t);this._pushed.add(t)}r()}}t.exports={FilterStream:FilterStream,UniqueStream:UniqueStream}},302:t=>{function makeArray(t){return Array.isArray(t)?t:[t]}const e="";const r=" ";const n="\\";const s=/^\s+$/;const o=/^\\!/;const i=/^\\#/;const c=/\r?\n/g;const a=/^\.*\/|^\.+$/;const p="/";const u=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const define=(t,e,r)=>Object.defineProperty(t,e,{value:r});const l=/([0-z])-([0-z])/g;const RETURN_FALSE=()=>false;const sanitizeRange=t=>t.replace(l,((t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:e));const cleanRangeBackSlash=t=>{const{length:e}=t;return t.slice(0,e-e%2)};const f=[[/\\?\s+$/,t=>t.indexOf("\\")===0?r:e],[/\\\s/g,()=>r],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)\\\*(?=.+)/g,(t,e)=>`${e}[^\\/]*`],[/\\\\\\(?=[$.|*+(){^])/g,()=>n],[/\\\\/g,()=>n],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,o)=>e===n?`\\[${r}${cleanRangeBackSlash(s)}${o}`:o==="]"?s.length%2===0?`[${sanitizeRange(r)}${s}]`:"[]":"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>{const r=e?`${e}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`}]];const d=Object.create(null);const makeRegex=(t,e)=>{let r=d[t];if(!r){r=f.reduce(((e,r)=>e.replace(r[0],r[1].bind(t))),t);d[t]=r}return e?new RegExp(r,"i"):new RegExp(r)};const isString=t=>typeof t==="string";const checkPattern=t=>t&&isString(t)&&!s.test(t)&&t.indexOf("#")!==0;const splitPattern=t=>t.split(c);class IgnoreRule{constructor(t,e,r,n){this.origin=t;this.pattern=e;this.negative=r;this.regex=n}}const createRule=(t,e)=>{const r=t;let n=false;if(t.indexOf("!")===0){n=true;t=t.substr(1)}t=t.replace(o,"!").replace(i,"#");const s=makeRegex(t,e);return new IgnoreRule(r,t,n,s)};const throwError=(t,e)=>{throw new e(t)};const checkPath=(t,e,r)=>{if(!isString(t)){return r(`path must be a string, but got \`${e}\``,TypeError)}if(!t){return r(`path must not be empty`,TypeError)}if(checkPath.isNotRelative(t)){const t="`path.relative()`d";return r(`path should be a ${t} string, but got "${e}"`,RangeError)}return true};const isNotRelative=t=>a.test(t);checkPath.isNotRelative=isNotRelative;checkPath.convert=t=>t;class Ignore{constructor({ignorecase:t=true,ignoreCase:e=t,allowRelativePaths:r=false}={}){define(this,u,true);this._rules=[];this._ignoreCase=e;this._allowRelativePaths=r;this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}_addPattern(t){if(t&&t[u]){this._rules=this._rules.concat(t._rules);this._added=true;return}if(checkPattern(t)){const e=createRule(t,this._ignoreCase);this._added=true;this._rules.push(e)}}add(t){this._added=false;makeArray(isString(t)?splitPattern(t):t).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(t){return this.add(t)}_testOne(t,e){let r=false;let n=false;this._rules.forEach((s=>{const{negative:o}=s;if(n===o&&r!==n||o&&!r&&!n&&!e){return}const i=s.regex.test(t);if(i){r=!o;n=o}}));return{ignored:r,unignored:n}}_test(t,e,r,n){const s=t&&checkPath.convert(t);checkPath(s,t,this._allowRelativePaths?RETURN_FALSE:throwError);return this._t(s,e,r,n)}_t(t,e,r,n){if(t in e){return e[t]}if(!n){n=t.split(p)}n.pop();if(!n.length){return e[t]=this._testOne(t,r)}const s=this._t(n.join(p)+p,e,r,n);return e[t]=s.ignored?s:this._testOne(t,r)}ignores(t){return this._test(t,this._ignoreCache,false).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return makeArray(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,true)}}const factory=t=>new Ignore(t);const isPathValid=t=>checkPath(t&&checkPath.convert(t),t,RETURN_FALSE);factory.isPathValid=isPathValid;factory.default=factory;t.exports=factory;if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const makePosix=t=>/^\\\\\?\\/.test(t)||/["<>|\u0000-\u001F]+/u.test(t)?t:t.replace(/\\/g,"/");checkPath.convert=makePosix;const t=/^[a-z]:\//i;checkPath.isNotRelative=e=>t.test(e)||isNotRelative(e)}},382:(t,e,r)=>{"use strict";const n=r(781);const s=n.PassThrough;const o=Array.prototype.slice;t.exports=merge2;function merge2(){const t=[];const e=o.call(arguments);let r=false;let n=e[e.length-1];if(n&&!Array.isArray(n)&&n.pipe==null){e.pop()}else{n={}}const i=n.end!==false;const c=n.pipeError===true;if(n.objectMode==null){n.objectMode=true}if(n.highWaterMark==null){n.highWaterMark=64*1024}const a=s(n);function addStream(){for(let e=0,r=arguments.length;e<r;e++){t.push(pauseStreams(arguments[e],n))}mergeStream();return this}function mergeStream(){if(r){return}r=true;let e=t.shift();if(!e){process.nextTick(endStream);return}if(!Array.isArray(e)){e=[e]}let n=e.length+1;function next(){if(--n>0){return}r=false;mergeStream()}function pipe(t){function onend(){t.removeListener("merge2UnpipeEnd",onend);t.removeListener("end",onend);if(c){t.removeListener("error",onerror)}next()}function onerror(t){a.emit("error",t)}if(t._readableState.endEmitted){return next()}t.on("merge2UnpipeEnd",onend);t.on("end",onend);if(c){t.on("error",onerror)}t.pipe(a,{end:false});t.resume()}for(let t=0;t<e.length;t++){pipe(e[t])}next()}function endStream(){r=false;a.emit("queueDrain");if(i){a.end()}}a.setMaxListeners(0);a.add=addStream;a.on("unpipe",(function(t){t.emit("merge2UnpipeEnd")}));if(e.length){addStream.apply(null,e)}return a}function pauseStreams(t,e){if(!Array.isArray(t)){if(!t._readableState&&t.pipe){t=t.pipe(s(e))}if(!t._readableState||!t.pause||!t.pipe){throw new Error("Only readable stream can be merged.")}t.pause()}else{for(let r=0,n=t.length;r<n;r++){t[r]=pauseStreams(t[r],e)}}return t}},223:(t,e,r)=>{"use strict";const{promisify:n}=r(837);const s=r(147);async function isType(t,e,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{const o=await n(s[t])(r);return o[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}function isTypeSync(t,e,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return s[t](r)[e]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}e.isFile=isType.bind(null,"stat","isFile");e.isDirectory=isType.bind(null,"stat","isDirectory");e.isSymlink=isType.bind(null,"lstat","isSymbolicLink");e.isFileSync=isTypeSync.bind(null,"statSync","isFile");e.isDirectorySync=isTypeSync.bind(null,"statSync","isDirectory");e.isSymlinkSync=isTypeSync.bind(null,"lstatSync","isSymbolicLink")},398:t=>{"use strict";t.exports=t=>{const e=/^\\\\\?\\/.test(t);const r=/[^\u0000-\u0080]+/.test(t);if(e||r){return t}return t.replace(/\\/g,"/")}},592:t=>{"use strict";t.exports=require("../fast-glob")},147:t=>{"use strict";t.exports=require("fs")},17:t=>{"use strict";t.exports=require("path")},781:t=>{"use strict";t.exports=require("stream")},837:t=>{"use strict";t.exports=require("util")}};var e={};function __nccwpck_require__(r){var n=e[r];if(n!==undefined){return n.exports}var s=e[r]={exports:{}};var o=true;try{t[r](s,s.exports,__nccwpck_require__);o=false}finally{if(o)delete e[r]}return s.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var r=__nccwpck_require__(718);module.exports=r})();