@quilted/create 0.2.43 → 0.2.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/build/esm/_virtual/index.mjs +6 -2
  3. package/build/esm/_virtual/index10.mjs +3 -0
  4. package/build/esm/_virtual/index11.mjs +3 -0
  5. package/build/esm/_virtual/index12.mjs +3 -0
  6. package/build/esm/_virtual/index13.mjs +3 -0
  7. package/build/esm/_virtual/index2.mjs +2 -2
  8. package/build/esm/_virtual/index3.mjs +6 -2
  9. package/build/esm/_virtual/index4.mjs +6 -2
  10. package/build/esm/_virtual/index5.mjs +6 -2
  11. package/build/esm/_virtual/index6.mjs +6 -2
  12. package/build/esm/_virtual/index8.mjs +3 -0
  13. package/build/esm/_virtual/index9.mjs +3 -0
  14. package/build/esm/_virtual/minimatch.mjs +12 -0
  15. package/build/esm/app.mjs +2 -2
  16. package/build/esm/cli.mjs +1 -1
  17. package/build/esm/module.mjs +2 -2
  18. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.mjs +29 -21
  19. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.mjs +24 -18
  20. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs +35 -32
  21. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.mjs +103 -101
  22. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.mjs +19 -13
  23. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.mjs +63 -61
  24. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.mjs +33 -27
  25. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.mjs +25 -19
  26. package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.mjs +15 -10
  27. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.mjs +27 -19
  28. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.mjs +35 -32
  29. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.mjs +40 -34
  30. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.mjs +27 -21
  31. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.mjs +24 -17
  32. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.mjs +44 -42
  33. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.mjs +37 -30
  34. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.mjs +41 -34
  35. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.mjs +22 -15
  36. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.mjs +104 -99
  37. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.mjs +35 -29
  38. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.mjs +19 -12
  39. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.mjs +65 -60
  40. package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.mjs +34 -27
  41. package/build/esm/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.mjs +116 -112
  42. package/build/esm/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.mjs +54 -47
  43. package/build/esm/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.mjs +144 -137
  44. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.mjs +173 -166
  45. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.mjs +57 -51
  46. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.mjs +102 -94
  47. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.mjs +89 -83
  48. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.mjs +312 -305
  49. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.mjs +30 -24
  50. package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.mjs +116 -108
  51. package/build/esm/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.mjs +1 -3
  52. package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +63 -61
  53. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.mjs +75 -77
  54. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +28 -22
  55. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.mjs +83 -78
  56. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.mjs +31 -25
  57. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.mjs +66 -60
  58. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +66 -59
  59. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.mjs +23 -16
  60. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.mjs +55 -48
  61. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.mjs +40 -33
  62. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.mjs +59 -55
  63. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.mjs +38 -32
  64. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.mjs +31 -25
  65. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.mjs +33 -26
  66. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.mjs +43 -38
  67. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.mjs +41 -35
  68. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.mjs +60 -55
  69. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.mjs +48 -43
  70. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.mjs +65 -57
  71. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.mjs +26 -20
  72. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.mjs +14 -8
  73. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.mjs +25 -19
  74. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.mjs +33 -34
  75. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +39 -33
  76. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.mjs +170 -164
  77. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.mjs +24 -18
  78. package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.mjs +18 -12
  79. package/build/esm/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.mjs +227 -221
  80. package/build/esm/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.mjs +207 -200
  81. package/build/esm/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.mjs +1 -6
  82. package/build/esm/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.mjs +51 -44
  83. package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.mjs +2 -2
  84. package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.mjs +3 -3
  85. package/build/esm/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.mjs +443 -439
  86. package/build/esm/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.mjs +18 -11
  87. package/build/esm/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.mjs +116 -109
  88. package/build/esm/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.mjs +17 -10
  89. package/build/esm/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.mjs +117 -110
  90. package/build/esm/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.mjs +457 -451
  91. package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.mjs +14 -7
  92. package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.mjs +770 -770
  93. package/build/esm/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.mjs +40 -34
  94. package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.mjs +10 -3
  95. package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.mjs +227 -220
  96. package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.mjs +941 -935
  97. package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.mjs +331 -325
  98. package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.mjs +303 -297
  99. package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.mjs +65 -57
  100. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.mjs +605 -605
  101. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +378 -394
  102. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +15 -15
  103. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.mjs +281 -294
  104. package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +155 -155
  105. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.mjs +1 -1
  106. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
  107. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.mjs +1 -1
  108. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.mjs +17 -12
  109. package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
  110. package/build/esm/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.mjs +14 -7
  111. package/build/esm/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.mjs +29 -22
  112. package/build/esm/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.mjs +49 -42
  113. package/build/esm/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.mjs +231 -224
  114. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +1 -1
  115. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +1 -1
  116. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.mjs +3 -3
  117. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +2 -2
  118. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +1 -1
  119. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +2 -2
  120. package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +1 -1
  121. package/build/esm/package.mjs +2 -2
  122. package/build/esm/packages/cli-kit/build/esnext/prompt.esnext.mjs +1 -1
  123. package/build/esm/server.mjs +5 -9
  124. package/build/esm/shared/package-manager.mjs +1 -1
  125. package/build/esm/shared/prompts.mjs +1 -1
  126. package/build/esnext/_virtual/index.esnext +6 -2
  127. package/build/esnext/_virtual/index10.esnext +3 -0
  128. package/build/esnext/_virtual/index11.esnext +3 -0
  129. package/build/esnext/_virtual/index12.esnext +3 -0
  130. package/build/esnext/_virtual/index13.esnext +3 -0
  131. package/build/esnext/_virtual/index2.esnext +2 -2
  132. package/build/esnext/_virtual/index3.esnext +6 -2
  133. package/build/esnext/_virtual/index4.esnext +6 -2
  134. package/build/esnext/_virtual/index5.esnext +6 -2
  135. package/build/esnext/_virtual/index6.esnext +6 -2
  136. package/build/esnext/_virtual/index8.esnext +3 -0
  137. package/build/esnext/_virtual/index9.esnext +3 -0
  138. package/build/esnext/_virtual/minimatch.esnext +12 -0
  139. package/build/esnext/app.esnext +2 -2
  140. package/build/esnext/module.esnext +2 -2
  141. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.esnext +27 -19
  142. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.esnext +19 -13
  143. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.esnext +33 -30
  144. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.esnext +99 -97
  145. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.esnext +14 -8
  146. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.esnext +59 -57
  147. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.esnext +31 -25
  148. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.esnext +23 -17
  149. package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.esnext +13 -8
  150. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.esnext +25 -17
  151. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.esnext +33 -30
  152. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +38 -32
  153. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +25 -19
  154. package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +23 -16
  155. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.esnext +42 -40
  156. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +36 -29
  157. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.esnext +40 -33
  158. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +21 -14
  159. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.esnext +98 -93
  160. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.esnext +30 -24
  161. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.esnext +17 -10
  162. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.esnext +59 -54
  163. package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +33 -26
  164. package/build/esnext/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.esnext +132 -128
  165. package/build/esnext/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.esnext +54 -47
  166. package/build/esnext/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.esnext +137 -130
  167. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.esnext +66 -59
  168. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.esnext +53 -47
  169. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.esnext +102 -95
  170. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.esnext +89 -83
  171. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.esnext +217 -210
  172. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.esnext +30 -24
  173. package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.esnext +75 -67
  174. package/build/esnext/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.esnext +1 -3
  175. package/build/esnext/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.esnext +63 -61
  176. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.esnext +68 -70
  177. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +17 -11
  178. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.esnext +81 -76
  179. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.esnext +29 -23
  180. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.esnext +61 -55
  181. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +61 -54
  182. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.esnext +21 -14
  183. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.esnext +49 -42
  184. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.esnext +31 -24
  185. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.esnext +57 -53
  186. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.esnext +34 -28
  187. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.esnext +29 -23
  188. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.esnext +29 -22
  189. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.esnext +40 -35
  190. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.esnext +39 -33
  191. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.esnext +56 -51
  192. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.esnext +46 -41
  193. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.esnext +59 -51
  194. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.esnext +24 -18
  195. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.esnext +12 -6
  196. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.esnext +23 -17
  197. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.esnext +31 -32
  198. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +32 -26
  199. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.esnext +135 -129
  200. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.esnext +23 -17
  201. package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.esnext +16 -10
  202. package/build/esnext/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.esnext +220 -215
  203. package/build/esnext/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.esnext +193 -186
  204. package/build/esnext/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.esnext +1 -6
  205. package/build/esnext/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.esnext +31 -24
  206. package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.esnext +2 -2
  207. package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.esnext +3 -3
  208. package/build/esnext/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.esnext +357 -353
  209. package/build/esnext/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.esnext +18 -11
  210. package/build/esnext/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.esnext +111 -104
  211. package/build/esnext/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.esnext +17 -10
  212. package/build/esnext/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.esnext +103 -96
  213. package/build/esnext/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.esnext +147 -141
  214. package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.esnext +10 -3
  215. package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.esnext +495 -491
  216. package/build/esnext/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.esnext +38 -32
  217. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.esnext +10 -3
  218. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.esnext +198 -191
  219. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.esnext +683 -677
  220. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.esnext +137 -131
  221. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.esnext +279 -273
  222. package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.esnext +65 -57
  223. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +9 -9
  224. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +20 -20
  225. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +15 -15
  226. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +64 -64
  227. package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +19 -19
  228. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.esnext +1 -1
  229. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.esnext +1 -1
  230. package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.esnext +16 -11
  231. package/build/esnext/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.esnext +12 -5
  232. package/build/esnext/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.esnext +29 -22
  233. package/build/esnext/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.esnext +47 -40
  234. package/build/esnext/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.esnext +196 -189
  235. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.esnext +2 -0
  236. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.esnext +2 -0
  237. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-props.esnext +1 -0
  238. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +1 -1
  239. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +1 -1
  240. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/lexer.esnext +5 -0
  241. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/parser.esnext +4 -0
  242. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.esnext +3 -3
  243. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.esnext +2 -2
  244. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.esnext +1 -1
  245. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.esnext +2 -2
  246. package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +1 -1
  247. package/build/esnext/package.esnext +2 -2
  248. package/build/esnext/packages/cli-kit/build/esnext/prompt.esnext.esnext +1 -1
  249. package/build/esnext/server.esnext +5 -9
  250. package/build/esnext/shared/package-manager.esnext +1 -1
  251. package/build/esnext/shared/prompts.esnext +1 -1
  252. package/build/tsconfig.tsbuildinfo +1 -1
  253. package/package.json +3 -3
  254. package/source/shared/prompts.ts +1 -1
  255. package/templates/app-basic/package.json +4 -4
  256. package/templates/app-empty/package.json +3 -3
  257. package/templates/app-graphql/package.json +4 -4
  258. package/templates/app-trpc/package.json +4 -4
  259. package/templates/package/package.json +3 -3
  260. package/templates/workspace/package.json +4 -4
@@ -1,70 +1,75 @@
1
- import { __exports as sync } from '../../../../../../../../_virtual/sync4.mjs';
2
- import '../../../../../../@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs';
3
- import './common.mjs';
4
- import './reader.mjs';
5
- import { __exports as out } from '../../../../../../../../_virtual/index6.mjs';
6
- import { __exports as common$1 } from '../../../../../../../../_virtual/common.mjs';
7
- import { __exports as reader } from '../../../../../../../../_virtual/reader2.mjs';
1
+ import { __exports as sync } from '../../../../../../../../_virtual/sync5.mjs';
2
+ import { __require as requireOut } from '../../../../../../@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs';
3
+ import { __require as requireCommon } from './common.mjs';
4
+ import { __require as requireReader } from './reader.mjs';
8
5
 
9
- Object.defineProperty(sync, "__esModule", {
10
- value: true
11
- });
12
- const fsScandir = out;
13
- const common = common$1;
14
- const reader_1 = reader;
15
- class SyncReader extends reader_1.default {
16
- constructor() {
17
- super(...arguments);
18
- this._scandir = fsScandir.scandirSync;
19
- this._storage = [];
20
- this._queue = new Set();
21
- }
22
- read() {
23
- this._pushToQueue(this._root, this._settings.basePath);
24
- this._handleQueue();
25
- return this._storage;
26
- }
27
- _pushToQueue(directory, base) {
28
- this._queue.add({
29
- directory,
30
- base
31
- });
32
- }
33
- _handleQueue() {
34
- for (const item of this._queue.values()) {
35
- this._handleDirectory(item.directory, item.base);
6
+ var hasRequiredSync;
7
+ function requireSync() {
8
+ if (hasRequiredSync) return sync;
9
+ hasRequiredSync = 1;
10
+ Object.defineProperty(sync, "__esModule", {
11
+ value: true
12
+ });
13
+ const fsScandir = requireOut();
14
+ const common = requireCommon();
15
+ const reader_1 = requireReader();
16
+ class SyncReader extends reader_1.default {
17
+ constructor() {
18
+ super(...arguments);
19
+ this._scandir = fsScandir.scandirSync;
20
+ this._storage = [];
21
+ this._queue = new Set();
36
22
  }
37
- }
38
- _handleDirectory(directory, base) {
39
- try {
40
- const entries = this._scandir(directory, this._settings.fsScandirSettings);
41
- for (const entry of entries) {
42
- this._handleEntry(entry, base);
23
+ read() {
24
+ this._pushToQueue(this._root, this._settings.basePath);
25
+ this._handleQueue();
26
+ return this._storage;
27
+ }
28
+ _pushToQueue(directory, base) {
29
+ this._queue.add({
30
+ directory,
31
+ base
32
+ });
33
+ }
34
+ _handleQueue() {
35
+ for (const item of this._queue.values()) {
36
+ this._handleDirectory(item.directory, item.base);
43
37
  }
44
- } catch (error) {
45
- this._handleError(error);
46
38
  }
47
- }
48
- _handleError(error) {
49
- if (!common.isFatalError(this._settings, error)) {
50
- return;
39
+ _handleDirectory(directory, base) {
40
+ try {
41
+ const entries = this._scandir(directory, this._settings.fsScandirSettings);
42
+ for (const entry of entries) {
43
+ this._handleEntry(entry, base);
44
+ }
45
+ } catch (error) {
46
+ this._handleError(error);
47
+ }
51
48
  }
52
- throw error;
53
- }
54
- _handleEntry(entry, base) {
55
- const fullpath = entry.path;
56
- if (base !== undefined) {
57
- entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
49
+ _handleError(error) {
50
+ if (!common.isFatalError(this._settings, error)) {
51
+ return;
52
+ }
53
+ throw error;
58
54
  }
59
- if (common.isAppliedFilter(this._settings.entryFilter, entry)) {
60
- this._pushToStorage(entry);
55
+ _handleEntry(entry, base) {
56
+ const fullpath = entry.path;
57
+ if (base !== undefined) {
58
+ entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
59
+ }
60
+ if (common.isAppliedFilter(this._settings.entryFilter, entry)) {
61
+ this._pushToStorage(entry);
62
+ }
63
+ if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) {
64
+ this._pushToQueue(fullpath, base === undefined ? undefined : entry.path);
65
+ }
61
66
  }
62
- if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) {
63
- this._pushToQueue(fullpath, base === undefined ? undefined : entry.path);
67
+ _pushToStorage(entry) {
68
+ this._storage.push(entry);
64
69
  }
65
70
  }
66
- _pushToStorage(entry) {
67
- this._storage.push(entry);
68
- }
71
+ sync.default = SyncReader;
72
+ return sync;
69
73
  }
70
- sync.default = SyncReader;
74
+
75
+ export { requireSync as __require };
@@ -1,32 +1,39 @@
1
1
  import { __exports as settings } from '../../../../../../../_virtual/settings2.mjs';
2
2
  import path__default from 'node:path';
3
- import '../../../../../@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs';
4
- import { __exports as out } from '../../../../../../../_virtual/index6.mjs';
3
+ import { __require as requireOut } from '../../../../../@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs';
5
4
 
6
- Object.defineProperty(settings, "__esModule", {
7
- value: true
8
- });
9
- const path = path__default;
10
- const fsScandir = out;
11
- class Settings {
12
- constructor(_options = {}) {
13
- this._options = _options;
14
- this.basePath = this._getValue(this._options.basePath, undefined);
15
- this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY);
16
- this.deepFilter = this._getValue(this._options.deepFilter, null);
17
- this.entryFilter = this._getValue(this._options.entryFilter, null);
18
- this.errorFilter = this._getValue(this._options.errorFilter, null);
19
- this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
20
- this.fsScandirSettings = new fsScandir.Settings({
21
- followSymbolicLinks: this._options.followSymbolicLinks,
22
- fs: this._options.fs,
23
- pathSegmentSeparator: this._options.pathSegmentSeparator,
24
- stats: this._options.stats,
25
- throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink
26
- });
27
- }
28
- _getValue(option, value) {
29
- return option !== null && option !== void 0 ? option : value;
5
+ var hasRequiredSettings;
6
+ function requireSettings() {
7
+ if (hasRequiredSettings) return settings;
8
+ hasRequiredSettings = 1;
9
+ Object.defineProperty(settings, "__esModule", {
10
+ value: true
11
+ });
12
+ const path = path__default;
13
+ const fsScandir = requireOut();
14
+ class Settings {
15
+ constructor(_options = {}) {
16
+ this._options = _options;
17
+ this.basePath = this._getValue(this._options.basePath, undefined);
18
+ this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY);
19
+ this.deepFilter = this._getValue(this._options.deepFilter, null);
20
+ this.entryFilter = this._getValue(this._options.entryFilter, null);
21
+ this.errorFilter = this._getValue(this._options.errorFilter, null);
22
+ this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
23
+ this.fsScandirSettings = new fsScandir.Settings({
24
+ followSymbolicLinks: this._options.followSymbolicLinks,
25
+ fs: this._options.fs,
26
+ pathSegmentSeparator: this._options.pathSegmentSeparator,
27
+ stats: this._options.stats,
28
+ throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink
29
+ });
30
+ }
31
+ _getValue(option, value) {
32
+ return option !== null && option !== void 0 ? option : value;
33
+ }
30
34
  }
35
+ settings.default = Settings;
36
+ return settings;
31
37
  }
32
- settings.default = Settings;
38
+
39
+ export { requireSettings as __require };
@@ -1,126 +1,130 @@
1
- import { getDefaultExportFromCjs } from '../../../../../_virtual/_commonjsHelpers.mjs';
2
-
3
- const flagSymbol = Symbol('arg flag');
4
- class ArgError extends Error {
5
- constructor(msg, code) {
6
- super(msg);
7
- this.name = 'ArgError';
8
- this.code = code;
9
- Object.setPrototypeOf(this, ArgError.prototype);
10
- }
11
- }
12
- function arg(opts, {
13
- argv = process.argv.slice(2),
14
- permissive = false,
15
- stopAtPositional = false
16
- } = {}) {
17
- if (!opts) {
18
- throw new ArgError('argument specification object is required', 'ARG_CONFIG_NO_SPEC');
19
- }
20
- const result = {
21
- _: []
22
- };
23
- const aliases = {};
24
- const handlers = {};
25
- for (const key of Object.keys(opts)) {
26
- if (!key) {
27
- throw new ArgError('argument key cannot be an empty string', 'ARG_CONFIG_EMPTY_KEY');
28
- }
29
- if (key[0] !== '-') {
30
- throw new ArgError(`argument key must start with '-' but found: '${key}'`, 'ARG_CONFIG_NONOPT_KEY');
31
- }
32
- if (key.length === 1) {
33
- throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${key}`, 'ARG_CONFIG_NONAME_KEY');
1
+ var arg_1;
2
+ var hasRequiredArg;
3
+ function requireArg() {
4
+ if (hasRequiredArg) return arg_1;
5
+ hasRequiredArg = 1;
6
+ const flagSymbol = Symbol('arg flag');
7
+ class ArgError extends Error {
8
+ constructor(msg, code) {
9
+ super(msg);
10
+ this.name = 'ArgError';
11
+ this.code = code;
12
+ Object.setPrototypeOf(this, ArgError.prototype);
34
13
  }
35
- if (typeof opts[key] === 'string') {
36
- aliases[key] = opts[key];
37
- continue;
38
- }
39
- let type = opts[key];
40
- let isFlag = false;
41
- if (Array.isArray(type) && type.length === 1 && typeof type[0] === 'function') {
42
- const [fn] = type;
43
- type = (value, name, prev = []) => {
44
- prev.push(fn(value, name, prev[prev.length - 1]));
45
- return prev;
46
- };
47
- isFlag = fn === Boolean || fn[flagSymbol] === true;
48
- } else if (typeof type === 'function') {
49
- isFlag = type === Boolean || type[flagSymbol] === true;
50
- } else {
51
- throw new ArgError(`type missing or not a function or valid array type: ${key}`, 'ARG_CONFIG_VAD_TYPE');
52
- }
53
- if (key[1] !== '-' && key.length > 2) {
54
- throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${key}`, 'ARG_CONFIG_SHORTOPT_TOOLONG');
55
- }
56
- handlers[key] = [type, isFlag];
57
14
  }
58
- for (let i = 0, len = argv.length; i < len; i++) {
59
- const wholeArg = argv[i];
60
- if (stopAtPositional && result._.length > 0) {
61
- result._ = result._.concat(argv.slice(i));
62
- break;
15
+ function arg(opts, {
16
+ argv = process.argv.slice(2),
17
+ permissive = false,
18
+ stopAtPositional = false
19
+ } = {}) {
20
+ if (!opts) {
21
+ throw new ArgError('argument specification object is required', 'ARG_CONFIG_NO_SPEC');
63
22
  }
64
- if (wholeArg === '--') {
65
- result._ = result._.concat(argv.slice(i + 1));
66
- break;
23
+ const result = {
24
+ _: []
25
+ };
26
+ const aliases = {};
27
+ const handlers = {};
28
+ for (const key of Object.keys(opts)) {
29
+ if (!key) {
30
+ throw new ArgError('argument key cannot be an empty string', 'ARG_CONFIG_EMPTY_KEY');
31
+ }
32
+ if (key[0] !== '-') {
33
+ throw new ArgError(`argument key must start with '-' but found: '${key}'`, 'ARG_CONFIG_NONOPT_KEY');
34
+ }
35
+ if (key.length === 1) {
36
+ throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${key}`, 'ARG_CONFIG_NONAME_KEY');
37
+ }
38
+ if (typeof opts[key] === 'string') {
39
+ aliases[key] = opts[key];
40
+ continue;
41
+ }
42
+ let type = opts[key];
43
+ let isFlag = false;
44
+ if (Array.isArray(type) && type.length === 1 && typeof type[0] === 'function') {
45
+ const [fn] = type;
46
+ type = (value, name, prev = []) => {
47
+ prev.push(fn(value, name, prev[prev.length - 1]));
48
+ return prev;
49
+ };
50
+ isFlag = fn === Boolean || fn[flagSymbol] === true;
51
+ } else if (typeof type === 'function') {
52
+ isFlag = type === Boolean || type[flagSymbol] === true;
53
+ } else {
54
+ throw new ArgError(`type missing or not a function or valid array type: ${key}`, 'ARG_CONFIG_VAD_TYPE');
55
+ }
56
+ if (key[1] !== '-' && key.length > 2) {
57
+ throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${key}`, 'ARG_CONFIG_SHORTOPT_TOOLONG');
58
+ }
59
+ handlers[key] = [type, isFlag];
67
60
  }
68
- if (wholeArg.length > 1 && wholeArg[0] === '-') {
69
- /* eslint-disable operator-linebreak */
70
- const separatedArguments = wholeArg[1] === '-' || wholeArg.length === 2 ? [wholeArg] : wholeArg.slice(1).split('').map(a => `-${a}`);
71
- /* eslint-enable operator-linebreak */
61
+ for (let i = 0, len = argv.length; i < len; i++) {
62
+ const wholeArg = argv[i];
63
+ if (stopAtPositional && result._.length > 0) {
64
+ result._ = result._.concat(argv.slice(i));
65
+ break;
66
+ }
67
+ if (wholeArg === '--') {
68
+ result._ = result._.concat(argv.slice(i + 1));
69
+ break;
70
+ }
71
+ if (wholeArg.length > 1 && wholeArg[0] === '-') {
72
+ /* eslint-disable operator-linebreak */
73
+ const separatedArguments = wholeArg[1] === '-' || wholeArg.length === 2 ? [wholeArg] : wholeArg.slice(1).split('').map(a => `-${a}`);
74
+ /* eslint-enable operator-linebreak */
72
75
 
73
- for (let j = 0; j < separatedArguments.length; j++) {
74
- const arg = separatedArguments[j];
75
- const [originalArgName, argStr] = arg[1] === '-' ? arg.split(/=(.*)/, 2) : [arg, undefined];
76
- let argName = originalArgName;
77
- while (argName in aliases) {
78
- argName = aliases[argName];
79
- }
80
- if (!(argName in handlers)) {
81
- if (permissive) {
82
- result._.push(arg);
83
- continue;
84
- } else {
85
- throw new ArgError(`unknown or unexpected option: ${originalArgName}`, 'ARG_UNKNOWN_OPTION');
76
+ for (let j = 0; j < separatedArguments.length; j++) {
77
+ const arg = separatedArguments[j];
78
+ const [originalArgName, argStr] = arg[1] === '-' ? arg.split(/=(.*)/, 2) : [arg, undefined];
79
+ let argName = originalArgName;
80
+ while (argName in aliases) {
81
+ argName = aliases[argName];
86
82
  }
87
- }
88
- const [type, isFlag] = handlers[argName];
89
- if (!isFlag && j + 1 < separatedArguments.length) {
90
- throw new ArgError(`option requires argument (but was followed by another short argument): ${originalArgName}`, 'ARG_MISSING_REQUIRED_SHORTARG');
91
- }
92
- if (isFlag) {
93
- result[argName] = type(true, argName, result[argName]);
94
- } else if (argStr === undefined) {
95
- if (argv.length < i + 2 || argv[i + 1].length > 1 && argv[i + 1][0] === '-' && !(argv[i + 1].match(/^-?\d*(\.(?=\d))?\d*$/) && (type === Number ||
96
- // eslint-disable-next-line no-undef
97
- typeof BigInt !== 'undefined' && type === BigInt))) {
98
- const extended = originalArgName === argName ? '' : ` (alias for ${argName})`;
99
- throw new ArgError(`option requires argument: ${originalArgName}${extended}`, 'ARG_MISSING_REQUIRED_LONGARG');
83
+ if (!(argName in handlers)) {
84
+ if (permissive) {
85
+ result._.push(arg);
86
+ continue;
87
+ } else {
88
+ throw new ArgError(`unknown or unexpected option: ${originalArgName}`, 'ARG_UNKNOWN_OPTION');
89
+ }
90
+ }
91
+ const [type, isFlag] = handlers[argName];
92
+ if (!isFlag && j + 1 < separatedArguments.length) {
93
+ throw new ArgError(`option requires argument (but was followed by another short argument): ${originalArgName}`, 'ARG_MISSING_REQUIRED_SHORTARG');
94
+ }
95
+ if (isFlag) {
96
+ result[argName] = type(true, argName, result[argName]);
97
+ } else if (argStr === undefined) {
98
+ if (argv.length < i + 2 || argv[i + 1].length > 1 && argv[i + 1][0] === '-' && !(argv[i + 1].match(/^-?\d*(\.(?=\d))?\d*$/) && (type === Number ||
99
+ // eslint-disable-next-line no-undef
100
+ typeof BigInt !== 'undefined' && type === BigInt))) {
101
+ const extended = originalArgName === argName ? '' : ` (alias for ${argName})`;
102
+ throw new ArgError(`option requires argument: ${originalArgName}${extended}`, 'ARG_MISSING_REQUIRED_LONGARG');
103
+ }
104
+ result[argName] = type(argv[i + 1], argName, result[argName]);
105
+ ++i;
106
+ } else {
107
+ result[argName] = type(argStr, argName, result[argName]);
100
108
  }
101
- result[argName] = type(argv[i + 1], argName, result[argName]);
102
- ++i;
103
- } else {
104
- result[argName] = type(argStr, argName, result[argName]);
105
109
  }
110
+ } else {
111
+ result._.push(wholeArg);
106
112
  }
107
- } else {
108
- result._.push(wholeArg);
109
113
  }
114
+ return result;
110
115
  }
111
- return result;
112
- }
113
- arg.flag = fn => {
114
- fn[flagSymbol] = true;
115
- return fn;
116
- };
116
+ arg.flag = fn => {
117
+ fn[flagSymbol] = true;
118
+ return fn;
119
+ };
117
120
 
118
- // Utility types
119
- arg.COUNT = arg.flag((v, name, existingCount) => (existingCount || 0) + 1);
121
+ // Utility types
122
+ arg.COUNT = arg.flag((v, name, existingCount) => (existingCount || 0) + 1);
120
123
 
121
- // Expose error class
122
- arg.ArgError = ArgError;
123
- var arg_1 = arg;
124
- const parseArguments = /*@__PURE__*/getDefaultExportFromCjs(arg_1);
124
+ // Expose error class
125
+ arg.ArgError = ArgError;
126
+ arg_1 = arg;
127
+ return arg_1;
128
+ }
125
129
 
126
- export { parseArguments as default };
130
+ export { requireArg as __require };
@@ -1,53 +1,60 @@
1
- var balancedMatch = balanced;
2
- function balanced(a, b, str) {
3
- if (a instanceof RegExp) a = maybeMatch(a, str);
4
- if (b instanceof RegExp) b = maybeMatch(b, str);
5
- var r = range(a, b, str);
6
- return r && {
7
- start: r[0],
8
- end: r[1],
9
- pre: str.slice(0, r[0]),
10
- body: str.slice(r[0] + a.length, r[1]),
11
- post: str.slice(r[1] + b.length)
12
- };
13
- }
14
- function maybeMatch(reg, str) {
15
- var m = str.match(reg);
16
- return m ? m[0] : null;
17
- }
18
- balanced.range = range;
19
- function range(a, b, str) {
20
- var begs, beg, left, right, result;
21
- var ai = str.indexOf(a);
22
- var bi = str.indexOf(b, ai + 1);
23
- var i = ai;
24
- if (ai >= 0 && bi > 0) {
25
- if (a === b) {
26
- return [ai, bi];
27
- }
28
- begs = [];
29
- left = str.length;
30
- while (i >= 0 && !result) {
31
- if (i == ai) {
32
- begs.push(i);
33
- ai = str.indexOf(a, i + 1);
34
- } else if (begs.length == 1) {
35
- result = [begs.pop(), bi];
36
- } else {
37
- beg = begs.pop();
38
- if (beg < left) {
39
- left = beg;
40
- right = bi;
1
+ var balancedMatch;
2
+ var hasRequiredBalancedMatch;
3
+ function requireBalancedMatch() {
4
+ if (hasRequiredBalancedMatch) return balancedMatch;
5
+ hasRequiredBalancedMatch = 1;
6
+ balancedMatch = balanced;
7
+ function balanced(a, b, str) {
8
+ if (a instanceof RegExp) a = maybeMatch(a, str);
9
+ if (b instanceof RegExp) b = maybeMatch(b, str);
10
+ var r = range(a, b, str);
11
+ return r && {
12
+ start: r[0],
13
+ end: r[1],
14
+ pre: str.slice(0, r[0]),
15
+ body: str.slice(r[0] + a.length, r[1]),
16
+ post: str.slice(r[1] + b.length)
17
+ };
18
+ }
19
+ function maybeMatch(reg, str) {
20
+ var m = str.match(reg);
21
+ return m ? m[0] : null;
22
+ }
23
+ balanced.range = range;
24
+ function range(a, b, str) {
25
+ var begs, beg, left, right, result;
26
+ var ai = str.indexOf(a);
27
+ var bi = str.indexOf(b, ai + 1);
28
+ var i = ai;
29
+ if (ai >= 0 && bi > 0) {
30
+ if (a === b) {
31
+ return [ai, bi];
32
+ }
33
+ begs = [];
34
+ left = str.length;
35
+ while (i >= 0 && !result) {
36
+ if (i == ai) {
37
+ begs.push(i);
38
+ ai = str.indexOf(a, i + 1);
39
+ } else if (begs.length == 1) {
40
+ result = [begs.pop(), bi];
41
+ } else {
42
+ beg = begs.pop();
43
+ if (beg < left) {
44
+ left = beg;
45
+ right = bi;
46
+ }
47
+ bi = str.indexOf(b, i + 1);
41
48
  }
42
- bi = str.indexOf(b, i + 1);
49
+ i = ai < bi && ai >= 0 ? ai : bi;
50
+ }
51
+ if (begs.length) {
52
+ result = [left, right];
43
53
  }
44
- i = ai < bi && ai >= 0 ? ai : bi;
45
- }
46
- if (begs.length) {
47
- result = [left, right];
48
54
  }
55
+ return result;
49
56
  }
50
- return result;
57
+ return balancedMatch;
51
58
  }
52
59
 
53
- export { balancedMatch };
60
+ export { requireBalancedMatch as __require };