@quilted/create 0.2.42 → 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 (285) hide show
  1. package/CHANGELOG.md +20 -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 +39 -33
  30. package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.mjs +26 -20
  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 +103 -98
  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 +64 -59
  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/App.tsx +3 -4
  256. package/templates/app-basic/browser.tsx +5 -1
  257. package/templates/app-basic/foundation/html/Head.test.tsx +42 -0
  258. package/templates/app-basic/foundation/html/Head.tsx +34 -0
  259. package/templates/app-basic/foundation/html.ts +1 -1
  260. package/templates/app-basic/package.json +4 -4
  261. package/templates/app-basic/server.tsx +89 -3
  262. package/templates/app-empty/package.json +3 -3
  263. package/templates/app-empty/server.tsx +4 -3
  264. package/templates/app-graphql/App.tsx +3 -4
  265. package/templates/app-graphql/browser.tsx +5 -1
  266. package/templates/app-graphql/foundation/html/Head.test.tsx +42 -0
  267. package/templates/app-graphql/foundation/html/Head.tsx +34 -0
  268. package/templates/app-graphql/foundation/html.ts +1 -1
  269. package/templates/app-graphql/package.json +4 -4
  270. package/templates/app-graphql/server.tsx +93 -9
  271. package/templates/app-trpc/App.tsx +3 -4
  272. package/templates/app-trpc/browser.tsx +5 -1
  273. package/templates/app-trpc/foundation/html/Head.test.tsx +42 -0
  274. package/templates/app-trpc/foundation/html/Head.tsx +34 -0
  275. package/templates/app-trpc/foundation/html.ts +1 -1
  276. package/templates/app-trpc/package.json +4 -4
  277. package/templates/app-trpc/server.tsx +93 -8
  278. package/templates/package/package.json +3 -3
  279. package/templates/workspace/package.json +4 -4
  280. package/templates/app-basic/foundation/html/HTML.test.tsx +0 -46
  281. package/templates/app-basic/foundation/html/HTML.tsx +0 -159
  282. package/templates/app-graphql/foundation/html/HTML.test.tsx +0 -46
  283. package/templates/app-graphql/foundation/html/HTML.tsx +0 -159
  284. package/templates/app-trpc/foundation/html/HTML.test.tsx +0 -46
  285. package/templates/app-trpc/foundation/html/HTML.tsx +0 -159
@@ -1,190 +1,254 @@
1
- import './utils.mjs';
2
- import { constants } from './constants.mjs';
3
- import { __exports as utils$1 } from '../../../../../../_virtual/utils.mjs';
1
+ import { __require as requireUtils } from './utils.mjs';
2
+ import { __require as requireConstants } from './constants.mjs';
4
3
 
5
- const utils = utils$1;
6
- const {
7
- CHAR_ASTERISK,
8
- /* * */
9
- CHAR_AT,
10
- /* @ */
11
- CHAR_BACKWARD_SLASH,
12
- /* \ */
13
- CHAR_COMMA,
14
- /* , */
15
- CHAR_DOT,
16
- /* . */
17
- CHAR_EXCLAMATION_MARK,
18
- /* ! */
19
- CHAR_FORWARD_SLASH,
20
- /* / */
21
- CHAR_LEFT_CURLY_BRACE,
22
- /* { */
23
- CHAR_LEFT_PARENTHESES,
24
- /* ( */
25
- CHAR_LEFT_SQUARE_BRACKET,
26
- /* [ */
27
- CHAR_PLUS,
28
- /* + */
29
- CHAR_QUESTION_MARK,
30
- /* ? */
31
- CHAR_RIGHT_CURLY_BRACE,
32
- /* } */
33
- CHAR_RIGHT_PARENTHESES,
34
- /* ) */
35
- CHAR_RIGHT_SQUARE_BRACKET /* ] */
36
- } = constants;
37
- const isPathSeparator = code => {
38
- return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
39
- };
40
- const depth = token => {
41
- if (token.isPrefix !== true) {
42
- token.depth = token.isGlobstar ? Infinity : 1;
43
- }
44
- };
45
-
46
- /**
47
- * Quickly scans a glob pattern and returns an object with a handful of
48
- * useful properties, like `isGlob`, `path` (the leading non-glob, if it exists),
49
- * `glob` (the actual pattern), `negated` (true if the path starts with `!` but not
50
- * with `!(`) and `negatedExtglob` (true if the path starts with `!(`).
51
- *
52
- * ```js
53
- * const pm = require('picomatch');
54
- * console.log(pm.scan('foo/bar/*.js'));
55
- * { isGlob: true, input: 'foo/bar/*.js', base: 'foo/bar', glob: '*.js' }
56
- * ```
57
- * @param {String} `str`
58
- * @param {Object} `options`
59
- * @return {Object} Returns an object with tokens and regex source string.
60
- * @api public
61
- */
62
-
63
- const scan = (input, options) => {
64
- const opts = options || {};
65
- const length = input.length - 1;
66
- const scanToEnd = opts.parts === true || opts.scanToEnd === true;
67
- const slashes = [];
68
- const tokens = [];
69
- const parts = [];
70
- let str = input;
71
- let index = -1;
72
- let start = 0;
73
- let lastIndex = 0;
74
- let isBrace = false;
75
- let isBracket = false;
76
- let isGlob = false;
77
- let isExtglob = false;
78
- let isGlobstar = false;
79
- let braceEscaped = false;
80
- let backslashes = false;
81
- let negated = false;
82
- let negatedExtglob = false;
83
- let finished = false;
84
- let braces = 0;
85
- let prev;
86
- let code;
87
- let token = {
88
- value: '',
89
- depth: 0,
90
- isGlob: false
4
+ var scan_1;
5
+ var hasRequiredScan;
6
+ function requireScan() {
7
+ if (hasRequiredScan) return scan_1;
8
+ hasRequiredScan = 1;
9
+ const utils = requireUtils();
10
+ const {
11
+ CHAR_ASTERISK,
12
+ /* * */
13
+ CHAR_AT,
14
+ /* @ */
15
+ CHAR_BACKWARD_SLASH,
16
+ /* \ */
17
+ CHAR_COMMA,
18
+ /* , */
19
+ CHAR_DOT,
20
+ /* . */
21
+ CHAR_EXCLAMATION_MARK,
22
+ /* ! */
23
+ CHAR_FORWARD_SLASH,
24
+ /* / */
25
+ CHAR_LEFT_CURLY_BRACE,
26
+ /* { */
27
+ CHAR_LEFT_PARENTHESES,
28
+ /* ( */
29
+ CHAR_LEFT_SQUARE_BRACKET,
30
+ /* [ */
31
+ CHAR_PLUS,
32
+ /* + */
33
+ CHAR_QUESTION_MARK,
34
+ /* ? */
35
+ CHAR_RIGHT_CURLY_BRACE,
36
+ /* } */
37
+ CHAR_RIGHT_PARENTHESES,
38
+ /* ) */
39
+ CHAR_RIGHT_SQUARE_BRACKET /* ] */
40
+ } = requireConstants();
41
+ const isPathSeparator = code => {
42
+ return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
91
43
  };
92
- const eos = () => index >= length;
93
- const peek = () => str.charCodeAt(index + 1);
94
- const advance = () => {
95
- prev = code;
96
- return str.charCodeAt(++index);
44
+ const depth = token => {
45
+ if (token.isPrefix !== true) {
46
+ token.depth = token.isGlobstar ? Infinity : 1;
47
+ }
97
48
  };
98
- while (index < length) {
99
- code = advance();
100
- let next;
101
- if (code === CHAR_BACKWARD_SLASH) {
102
- backslashes = token.backslashes = true;
49
+
50
+ /**
51
+ * Quickly scans a glob pattern and returns an object with a handful of
52
+ * useful properties, like `isGlob`, `path` (the leading non-glob, if it exists),
53
+ * `glob` (the actual pattern), `negated` (true if the path starts with `!` but not
54
+ * with `!(`) and `negatedExtglob` (true if the path starts with `!(`).
55
+ *
56
+ * ```js
57
+ * const pm = require('picomatch');
58
+ * console.log(pm.scan('foo/bar/*.js'));
59
+ * { isGlob: true, input: 'foo/bar/*.js', base: 'foo/bar', glob: '*.js' }
60
+ * ```
61
+ * @param {String} `str`
62
+ * @param {Object} `options`
63
+ * @return {Object} Returns an object with tokens and regex source string.
64
+ * @api public
65
+ */
66
+
67
+ const scan = (input, options) => {
68
+ const opts = options || {};
69
+ const length = input.length - 1;
70
+ const scanToEnd = opts.parts === true || opts.scanToEnd === true;
71
+ const slashes = [];
72
+ const tokens = [];
73
+ const parts = [];
74
+ let str = input;
75
+ let index = -1;
76
+ let start = 0;
77
+ let lastIndex = 0;
78
+ let isBrace = false;
79
+ let isBracket = false;
80
+ let isGlob = false;
81
+ let isExtglob = false;
82
+ let isGlobstar = false;
83
+ let braceEscaped = false;
84
+ let backslashes = false;
85
+ let negated = false;
86
+ let negatedExtglob = false;
87
+ let finished = false;
88
+ let braces = 0;
89
+ let prev;
90
+ let code;
91
+ let token = {
92
+ value: '',
93
+ depth: 0,
94
+ isGlob: false
95
+ };
96
+ const eos = () => index >= length;
97
+ const peek = () => str.charCodeAt(index + 1);
98
+ const advance = () => {
99
+ prev = code;
100
+ return str.charCodeAt(++index);
101
+ };
102
+ while (index < length) {
103
103
  code = advance();
104
- if (code === CHAR_LEFT_CURLY_BRACE) {
105
- braceEscaped = true;
104
+ let next;
105
+ if (code === CHAR_BACKWARD_SLASH) {
106
+ backslashes = token.backslashes = true;
107
+ code = advance();
108
+ if (code === CHAR_LEFT_CURLY_BRACE) {
109
+ braceEscaped = true;
110
+ }
111
+ continue;
106
112
  }
107
- continue;
108
- }
109
- if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
110
- braces++;
111
- while (eos() !== true && (code = advance())) {
112
- if (code === CHAR_BACKWARD_SLASH) {
113
- backslashes = token.backslashes = true;
114
- advance();
113
+ if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
114
+ braces++;
115
+ while (eos() !== true && (code = advance())) {
116
+ if (code === CHAR_BACKWARD_SLASH) {
117
+ backslashes = token.backslashes = true;
118
+ advance();
119
+ continue;
120
+ }
121
+ if (code === CHAR_LEFT_CURLY_BRACE) {
122
+ braces++;
123
+ continue;
124
+ }
125
+ if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
126
+ isBrace = token.isBrace = true;
127
+ isGlob = token.isGlob = true;
128
+ finished = true;
129
+ if (scanToEnd === true) {
130
+ continue;
131
+ }
132
+ break;
133
+ }
134
+ if (braceEscaped !== true && code === CHAR_COMMA) {
135
+ isBrace = token.isBrace = true;
136
+ isGlob = token.isGlob = true;
137
+ finished = true;
138
+ if (scanToEnd === true) {
139
+ continue;
140
+ }
141
+ break;
142
+ }
143
+ if (code === CHAR_RIGHT_CURLY_BRACE) {
144
+ braces--;
145
+ if (braces === 0) {
146
+ braceEscaped = false;
147
+ isBrace = token.isBrace = true;
148
+ finished = true;
149
+ break;
150
+ }
151
+ }
152
+ }
153
+ if (scanToEnd === true) {
115
154
  continue;
116
155
  }
117
- if (code === CHAR_LEFT_CURLY_BRACE) {
118
- braces++;
156
+ break;
157
+ }
158
+ if (code === CHAR_FORWARD_SLASH) {
159
+ slashes.push(index);
160
+ tokens.push(token);
161
+ token = {
162
+ value: '',
163
+ depth: 0,
164
+ isGlob: false
165
+ };
166
+ if (finished === true) continue;
167
+ if (prev === CHAR_DOT && index === start + 1) {
168
+ start += 2;
119
169
  continue;
120
170
  }
121
- if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
122
- isBrace = token.isBrace = true;
171
+ lastIndex = index + 1;
172
+ continue;
173
+ }
174
+ if (opts.noext !== true) {
175
+ const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK;
176
+ if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
123
177
  isGlob = token.isGlob = true;
178
+ isExtglob = token.isExtglob = true;
124
179
  finished = true;
180
+ if (code === CHAR_EXCLAMATION_MARK && index === start) {
181
+ negatedExtglob = true;
182
+ }
125
183
  if (scanToEnd === true) {
184
+ while (eos() !== true && (code = advance())) {
185
+ if (code === CHAR_BACKWARD_SLASH) {
186
+ backslashes = token.backslashes = true;
187
+ code = advance();
188
+ continue;
189
+ }
190
+ if (code === CHAR_RIGHT_PARENTHESES) {
191
+ isGlob = token.isGlob = true;
192
+ finished = true;
193
+ break;
194
+ }
195
+ }
126
196
  continue;
127
197
  }
128
198
  break;
129
199
  }
130
- if (braceEscaped !== true && code === CHAR_COMMA) {
131
- isBrace = token.isBrace = true;
132
- isGlob = token.isGlob = true;
133
- finished = true;
134
- if (scanToEnd === true) {
200
+ }
201
+ if (code === CHAR_ASTERISK) {
202
+ if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
203
+ isGlob = token.isGlob = true;
204
+ finished = true;
205
+ if (scanToEnd === true) {
206
+ continue;
207
+ }
208
+ break;
209
+ }
210
+ if (code === CHAR_QUESTION_MARK) {
211
+ isGlob = token.isGlob = true;
212
+ finished = true;
213
+ if (scanToEnd === true) {
214
+ continue;
215
+ }
216
+ break;
217
+ }
218
+ if (code === CHAR_LEFT_SQUARE_BRACKET) {
219
+ while (eos() !== true && (next = advance())) {
220
+ if (next === CHAR_BACKWARD_SLASH) {
221
+ backslashes = token.backslashes = true;
222
+ advance();
135
223
  continue;
136
224
  }
137
- break;
138
- }
139
- if (code === CHAR_RIGHT_CURLY_BRACE) {
140
- braces--;
141
- if (braces === 0) {
142
- braceEscaped = false;
143
- isBrace = token.isBrace = true;
225
+ if (next === CHAR_RIGHT_SQUARE_BRACKET) {
226
+ isBracket = token.isBracket = true;
227
+ isGlob = token.isGlob = true;
144
228
  finished = true;
145
229
  break;
146
230
  }
147
231
  }
232
+ if (scanToEnd === true) {
233
+ continue;
234
+ }
235
+ break;
148
236
  }
149
- if (scanToEnd === true) {
150
- continue;
151
- }
152
- break;
153
- }
154
- if (code === CHAR_FORWARD_SLASH) {
155
- slashes.push(index);
156
- tokens.push(token);
157
- token = {
158
- value: '',
159
- depth: 0,
160
- isGlob: false
161
- };
162
- if (finished === true) continue;
163
- if (prev === CHAR_DOT && index === start + 1) {
164
- start += 2;
237
+ if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
238
+ negated = token.negated = true;
239
+ start++;
165
240
  continue;
166
241
  }
167
- lastIndex = index + 1;
168
- continue;
169
- }
170
- if (opts.noext !== true) {
171
- const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK;
172
- if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
242
+ if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
173
243
  isGlob = token.isGlob = true;
174
- isExtglob = token.isExtglob = true;
175
- finished = true;
176
- if (code === CHAR_EXCLAMATION_MARK && index === start) {
177
- negatedExtglob = true;
178
- }
179
244
  if (scanToEnd === true) {
180
245
  while (eos() !== true && (code = advance())) {
181
- if (code === CHAR_BACKWARD_SLASH) {
246
+ if (code === CHAR_LEFT_PARENTHESES) {
182
247
  backslashes = token.backslashes = true;
183
248
  code = advance();
184
249
  continue;
185
250
  }
186
251
  if (code === CHAR_RIGHT_PARENTHESES) {
187
- isGlob = token.isGlob = true;
188
252
  finished = true;
189
253
  break;
190
254
  }
@@ -193,162 +257,104 @@ const scan = (input, options) => {
193
257
  }
194
258
  break;
195
259
  }
196
- }
197
- if (code === CHAR_ASTERISK) {
198
- if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
199
- isGlob = token.isGlob = true;
200
- finished = true;
201
- if (scanToEnd === true) {
202
- continue;
203
- }
204
- break;
205
- }
206
- if (code === CHAR_QUESTION_MARK) {
207
- isGlob = token.isGlob = true;
208
- finished = true;
209
- if (scanToEnd === true) {
210
- continue;
211
- }
212
- break;
213
- }
214
- if (code === CHAR_LEFT_SQUARE_BRACKET) {
215
- while (eos() !== true && (next = advance())) {
216
- if (next === CHAR_BACKWARD_SLASH) {
217
- backslashes = token.backslashes = true;
218
- advance();
260
+ if (isGlob === true) {
261
+ finished = true;
262
+ if (scanToEnd === true) {
219
263
  continue;
220
264
  }
221
- if (next === CHAR_RIGHT_SQUARE_BRACKET) {
222
- isBracket = token.isBracket = true;
223
- isGlob = token.isGlob = true;
224
- finished = true;
225
- break;
226
- }
227
- }
228
- if (scanToEnd === true) {
229
- continue;
265
+ break;
230
266
  }
231
- break;
232
267
  }
233
- if (opts.nonegate !== true && code === CHAR_EXCLAMATION_MARK && index === start) {
234
- negated = token.negated = true;
235
- start++;
236
- continue;
268
+ if (opts.noext === true) {
269
+ isExtglob = false;
270
+ isGlob = false;
237
271
  }
238
- if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
239
- isGlob = token.isGlob = true;
240
- if (scanToEnd === true) {
241
- while (eos() !== true && (code = advance())) {
242
- if (code === CHAR_LEFT_PARENTHESES) {
243
- backslashes = token.backslashes = true;
244
- code = advance();
245
- continue;
246
- }
247
- if (code === CHAR_RIGHT_PARENTHESES) {
248
- finished = true;
249
- break;
250
- }
251
- }
252
- continue;
253
- }
254
- break;
272
+ let base = str;
273
+ let prefix = '';
274
+ let glob = '';
275
+ if (start > 0) {
276
+ prefix = str.slice(0, start);
277
+ str = str.slice(start);
278
+ lastIndex -= start;
255
279
  }
256
- if (isGlob === true) {
257
- finished = true;
258
- if (scanToEnd === true) {
259
- continue;
260
- }
261
- break;
280
+ if (base && isGlob === true && lastIndex > 0) {
281
+ base = str.slice(0, lastIndex);
282
+ glob = str.slice(lastIndex);
283
+ } else if (isGlob === true) {
284
+ base = '';
285
+ glob = str;
286
+ } else {
287
+ base = str;
262
288
  }
263
- }
264
- if (opts.noext === true) {
265
- isExtglob = false;
266
- isGlob = false;
267
- }
268
- let base = str;
269
- let prefix = '';
270
- let glob = '';
271
- if (start > 0) {
272
- prefix = str.slice(0, start);
273
- str = str.slice(start);
274
- lastIndex -= start;
275
- }
276
- if (base && isGlob === true && lastIndex > 0) {
277
- base = str.slice(0, lastIndex);
278
- glob = str.slice(lastIndex);
279
- } else if (isGlob === true) {
280
- base = '';
281
- glob = str;
282
- } else {
283
- base = str;
284
- }
285
- if (base && base !== '' && base !== '/' && base !== str) {
286
- if (isPathSeparator(base.charCodeAt(base.length - 1))) {
287
- base = base.slice(0, -1);
289
+ if (base && base !== '' && base !== '/' && base !== str) {
290
+ if (isPathSeparator(base.charCodeAt(base.length - 1))) {
291
+ base = base.slice(0, -1);
292
+ }
288
293
  }
289
- }
290
- if (opts.unescape === true) {
291
- if (glob) glob = utils.removeBackslashes(glob);
292
- if (base && backslashes === true) {
293
- base = utils.removeBackslashes(base);
294
+ if (opts.unescape === true) {
295
+ if (glob) glob = utils.removeBackslashes(glob);
296
+ if (base && backslashes === true) {
297
+ base = utils.removeBackslashes(base);
298
+ }
294
299
  }
295
- }
296
- const state = {
297
- prefix,
298
- input,
299
- start,
300
- base,
301
- glob,
302
- isBrace,
303
- isBracket,
304
- isGlob,
305
- isExtglob,
306
- isGlobstar,
307
- negated,
308
- negatedExtglob
309
- };
310
- if (opts.tokens === true) {
311
- state.maxDepth = 0;
312
- if (!isPathSeparator(code)) {
313
- tokens.push(token);
300
+ const state = {
301
+ prefix,
302
+ input,
303
+ start,
304
+ base,
305
+ glob,
306
+ isBrace,
307
+ isBracket,
308
+ isGlob,
309
+ isExtglob,
310
+ isGlobstar,
311
+ negated,
312
+ negatedExtglob
313
+ };
314
+ if (opts.tokens === true) {
315
+ state.maxDepth = 0;
316
+ if (!isPathSeparator(code)) {
317
+ tokens.push(token);
318
+ }
319
+ state.tokens = tokens;
314
320
  }
315
- state.tokens = tokens;
316
- }
317
- if (opts.parts === true || opts.tokens === true) {
318
- let prevIndex;
319
- for (let idx = 0; idx < slashes.length; idx++) {
320
- const n = prevIndex ? prevIndex + 1 : start;
321
- const i = slashes[idx];
322
- const value = input.slice(n, i);
323
- if (opts.tokens) {
324
- if (idx === 0 && start !== 0) {
325
- tokens[idx].isPrefix = true;
326
- tokens[idx].value = prefix;
327
- } else {
328
- tokens[idx].value = value;
321
+ if (opts.parts === true || opts.tokens === true) {
322
+ let prevIndex;
323
+ for (let idx = 0; idx < slashes.length; idx++) {
324
+ const n = prevIndex ? prevIndex + 1 : start;
325
+ const i = slashes[idx];
326
+ const value = input.slice(n, i);
327
+ if (opts.tokens) {
328
+ if (idx === 0 && start !== 0) {
329
+ tokens[idx].isPrefix = true;
330
+ tokens[idx].value = prefix;
331
+ } else {
332
+ tokens[idx].value = value;
333
+ }
334
+ depth(tokens[idx]);
335
+ state.maxDepth += tokens[idx].depth;
336
+ }
337
+ if (idx !== 0 || value !== '') {
338
+ parts.push(value);
329
339
  }
330
- depth(tokens[idx]);
331
- state.maxDepth += tokens[idx].depth;
340
+ prevIndex = i;
332
341
  }
333
- if (idx !== 0 || value !== '') {
342
+ if (prevIndex && prevIndex + 1 < input.length) {
343
+ const value = input.slice(prevIndex + 1);
334
344
  parts.push(value);
345
+ if (opts.tokens) {
346
+ tokens[tokens.length - 1].value = value;
347
+ depth(tokens[tokens.length - 1]);
348
+ state.maxDepth += tokens[tokens.length - 1].depth;
349
+ }
335
350
  }
336
- prevIndex = i;
337
- }
338
- if (prevIndex && prevIndex + 1 < input.length) {
339
- const value = input.slice(prevIndex + 1);
340
- parts.push(value);
341
- if (opts.tokens) {
342
- tokens[tokens.length - 1].value = value;
343
- depth(tokens[tokens.length - 1]);
344
- state.maxDepth += tokens[tokens.length - 1].depth;
345
- }
351
+ state.slashes = slashes;
352
+ state.parts = parts;
346
353
  }
347
- state.slashes = slashes;
348
- state.parts = parts;
349
- }
350
- return state;
351
- };
352
- var scan_1 = scan;
354
+ return state;
355
+ };
356
+ scan_1 = scan;
357
+ return scan_1;
358
+ }
353
359
 
354
- export { scan_1 };
360
+ export { requireScan as __require };