@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,467 +1,473 @@
1
1
  import require$$0 from 'node:util';
2
- import { braces_1 } from '../../../braces@3.0.2/node_modules/braces/index.mjs';
3
- import { picomatch as picomatch$1 } from '../../../picomatch@2.3.1/node_modules/picomatch/index.mjs';
4
- import '../../../picomatch@2.3.1/node_modules/picomatch/lib/utils.mjs';
5
- import { __exports as utils$1 } from '../../../../../_virtual/utils.mjs';
6
-
7
- const util = require$$0;
8
- const braces = braces_1;
9
- const picomatch = picomatch$1;
10
- const utils = utils$1;
11
- const isEmptyString = val => val === '' || val === './';
12
-
13
- /**
14
- * Returns an array of strings that match one or more glob patterns.
15
- *
16
- * ```js
17
- * const mm = require('micromatch');
18
- * // mm(list, patterns[, options]);
19
- *
20
- * console.log(mm(['a.js', 'a.txt'], ['*.js']));
21
- * //=> [ 'a.js' ]
22
- * ```
23
- * @param {String|Array<string>} `list` List of strings to match.
24
- * @param {String|Array<string>} `patterns` One or more glob patterns to use for matching.
25
- * @param {Object} `options` See available [options](#options)
26
- * @return {Array} Returns an array of matches
27
- * @summary false
28
- * @api public
29
- */
30
-
31
- const micromatch = (list, patterns, options) => {
32
- patterns = [].concat(patterns);
33
- list = [].concat(list);
34
- let omit = new Set();
35
- let keep = new Set();
36
- let items = new Set();
37
- let negatives = 0;
38
- let onResult = state => {
39
- items.add(state.output);
40
- if (options && options.onResult) {
41
- options.onResult(state);
2
+ import { __require as requireBraces } from '../../../braces@3.0.2/node_modules/braces/index.mjs';
3
+ import { __require as requirePicomatch } from '../../../picomatch@2.3.1/node_modules/picomatch/index.mjs';
4
+ import { __require as requireUtils } from '../../../picomatch@2.3.1/node_modules/picomatch/lib/utils.mjs';
5
+
6
+ var micromatch_1;
7
+ var hasRequiredMicromatch;
8
+ function requireMicromatch() {
9
+ if (hasRequiredMicromatch) return micromatch_1;
10
+ hasRequiredMicromatch = 1;
11
+ const util = require$$0;
12
+ const braces = requireBraces();
13
+ const picomatch = requirePicomatch();
14
+ const utils = requireUtils();
15
+ const isEmptyString = val => val === '' || val === './';
16
+
17
+ /**
18
+ * Returns an array of strings that match one or more glob patterns.
19
+ *
20
+ * ```js
21
+ * const mm = require('micromatch');
22
+ * // mm(list, patterns[, options]);
23
+ *
24
+ * console.log(mm(['a.js', 'a.txt'], ['*.js']));
25
+ * //=> [ 'a.js' ]
26
+ * ```
27
+ * @param {String|Array<string>} `list` List of strings to match.
28
+ * @param {String|Array<string>} `patterns` One or more glob patterns to use for matching.
29
+ * @param {Object} `options` See available [options](#options)
30
+ * @return {Array} Returns an array of matches
31
+ * @summary false
32
+ * @api public
33
+ */
34
+
35
+ const micromatch = (list, patterns, options) => {
36
+ patterns = [].concat(patterns);
37
+ list = [].concat(list);
38
+ let omit = new Set();
39
+ let keep = new Set();
40
+ let items = new Set();
41
+ let negatives = 0;
42
+ let onResult = state => {
43
+ items.add(state.output);
44
+ if (options && options.onResult) {
45
+ options.onResult(state);
46
+ }
47
+ };
48
+ for (let i = 0; i < patterns.length; i++) {
49
+ let isMatch = picomatch(String(patterns[i]), {
50
+ ...options,
51
+ onResult
52
+ }, true);
53
+ let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
54
+ if (negated) negatives++;
55
+ for (let item of list) {
56
+ let matched = isMatch(item, true);
57
+ let match = negated ? !matched.isMatch : matched.isMatch;
58
+ if (!match) continue;
59
+ if (negated) {
60
+ omit.add(matched.output);
61
+ } else {
62
+ omit.delete(matched.output);
63
+ keep.add(matched.output);
64
+ }
65
+ }
66
+ }
67
+ let result = negatives === patterns.length ? [...items] : [...keep];
68
+ let matches = result.filter(item => !omit.has(item));
69
+ if (options && matches.length === 0) {
70
+ if (options.failglob === true) {
71
+ throw new Error(`No matches found for "${patterns.join(', ')}"`);
72
+ }
73
+ if (options.nonull === true || options.nullglob === true) {
74
+ return options.unescape ? patterns.map(p => p.replace(/\\/g, '')) : patterns;
75
+ }
42
76
  }
77
+ return matches;
43
78
  };
44
- for (let i = 0; i < patterns.length; i++) {
45
- let isMatch = picomatch(String(patterns[i]), {
79
+
80
+ /**
81
+ * Backwards compatibility
82
+ */
83
+
84
+ micromatch.match = micromatch;
85
+
86
+ /**
87
+ * Returns a matcher function from the given glob `pattern` and `options`.
88
+ * The returned function takes a string to match as its only argument and returns
89
+ * true if the string is a match.
90
+ *
91
+ * ```js
92
+ * const mm = require('micromatch');
93
+ * // mm.matcher(pattern[, options]);
94
+ *
95
+ * const isMatch = mm.matcher('*.!(*a)');
96
+ * console.log(isMatch('a.a')); //=> false
97
+ * console.log(isMatch('a.b')); //=> true
98
+ * ```
99
+ * @param {String} `pattern` Glob pattern
100
+ * @param {Object} `options`
101
+ * @return {Function} Returns a matcher function.
102
+ * @api public
103
+ */
104
+
105
+ micromatch.matcher = (pattern, options) => picomatch(pattern, options);
106
+
107
+ /**
108
+ * Returns true if **any** of the given glob `patterns` match the specified `string`.
109
+ *
110
+ * ```js
111
+ * const mm = require('micromatch');
112
+ * // mm.isMatch(string, patterns[, options]);
113
+ *
114
+ * console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true
115
+ * console.log(mm.isMatch('a.a', 'b.*')); //=> false
116
+ * ```
117
+ * @param {String} `str` The string to test.
118
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
119
+ * @param {Object} `[options]` See available [options](#options).
120
+ * @return {Boolean} Returns true if any patterns match `str`
121
+ * @api public
122
+ */
123
+
124
+ micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
125
+
126
+ /**
127
+ * Backwards compatibility
128
+ */
129
+
130
+ micromatch.any = micromatch.isMatch;
131
+
132
+ /**
133
+ * Returns a list of strings that _**do not match any**_ of the given `patterns`.
134
+ *
135
+ * ```js
136
+ * const mm = require('micromatch');
137
+ * // mm.not(list, patterns[, options]);
138
+ *
139
+ * console.log(mm.not(['a.a', 'b.b', 'c.c'], '*.a'));
140
+ * //=> ['b.b', 'c.c']
141
+ * ```
142
+ * @param {Array} `list` Array of strings to match.
143
+ * @param {String|Array} `patterns` One or more glob pattern to use for matching.
144
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
145
+ * @return {Array} Returns an array of strings that **do not match** the given patterns.
146
+ * @api public
147
+ */
148
+
149
+ micromatch.not = (list, patterns, options = {}) => {
150
+ patterns = [].concat(patterns).map(String);
151
+ let result = new Set();
152
+ let items = [];
153
+ let onResult = state => {
154
+ if (options.onResult) options.onResult(state);
155
+ items.push(state.output);
156
+ };
157
+ let matches = new Set(micromatch(list, patterns, {
46
158
  ...options,
47
159
  onResult
48
- }, true);
49
- let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
50
- if (negated) negatives++;
51
- for (let item of list) {
52
- let matched = isMatch(item, true);
53
- let match = negated ? !matched.isMatch : matched.isMatch;
54
- if (!match) continue;
55
- if (negated) {
56
- omit.add(matched.output);
57
- } else {
58
- omit.delete(matched.output);
59
- keep.add(matched.output);
160
+ }));
161
+ for (let item of items) {
162
+ if (!matches.has(item)) {
163
+ result.add(item);
60
164
  }
61
165
  }
62
- }
63
- let result = negatives === patterns.length ? [...items] : [...keep];
64
- let matches = result.filter(item => !omit.has(item));
65
- if (options && matches.length === 0) {
66
- if (options.failglob === true) {
67
- throw new Error(`No matches found for "${patterns.join(', ')}"`);
166
+ return [...result];
167
+ };
168
+
169
+ /**
170
+ * Returns true if the given `string` contains the given pattern. Similar
171
+ * to [.isMatch](#isMatch) but the pattern can match any part of the string.
172
+ *
173
+ * ```js
174
+ * var mm = require('micromatch');
175
+ * // mm.contains(string, pattern[, options]);
176
+ *
177
+ * console.log(mm.contains('aa/bb/cc', '*b'));
178
+ * //=> true
179
+ * console.log(mm.contains('aa/bb/cc', '*d'));
180
+ * //=> false
181
+ * ```
182
+ * @param {String} `str` The string to match.
183
+ * @param {String|Array} `patterns` Glob pattern to use for matching.
184
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
185
+ * @return {Boolean} Returns true if any of the patterns matches any part of `str`.
186
+ * @api public
187
+ */
188
+
189
+ micromatch.contains = (str, pattern, options) => {
190
+ if (typeof str !== 'string') {
191
+ throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
68
192
  }
69
- if (options.nonull === true || options.nullglob === true) {
70
- return options.unescape ? patterns.map(p => p.replace(/\\/g, '')) : patterns;
193
+ if (Array.isArray(pattern)) {
194
+ return pattern.some(p => micromatch.contains(str, p, options));
71
195
  }
72
- }
73
- return matches;
74
- };
75
-
76
- /**
77
- * Backwards compatibility
78
- */
79
-
80
- micromatch.match = micromatch;
81
-
82
- /**
83
- * Returns a matcher function from the given glob `pattern` and `options`.
84
- * The returned function takes a string to match as its only argument and returns
85
- * true if the string is a match.
86
- *
87
- * ```js
88
- * const mm = require('micromatch');
89
- * // mm.matcher(pattern[, options]);
90
- *
91
- * const isMatch = mm.matcher('*.!(*a)');
92
- * console.log(isMatch('a.a')); //=> false
93
- * console.log(isMatch('a.b')); //=> true
94
- * ```
95
- * @param {String} `pattern` Glob pattern
96
- * @param {Object} `options`
97
- * @return {Function} Returns a matcher function.
98
- * @api public
99
- */
100
-
101
- micromatch.matcher = (pattern, options) => picomatch(pattern, options);
102
-
103
- /**
104
- * Returns true if **any** of the given glob `patterns` match the specified `string`.
105
- *
106
- * ```js
107
- * const mm = require('micromatch');
108
- * // mm.isMatch(string, patterns[, options]);
109
- *
110
- * console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true
111
- * console.log(mm.isMatch('a.a', 'b.*')); //=> false
112
- * ```
113
- * @param {String} `str` The string to test.
114
- * @param {String|Array} `patterns` One or more glob patterns to use for matching.
115
- * @param {Object} `[options]` See available [options](#options).
116
- * @return {Boolean} Returns true if any patterns match `str`
117
- * @api public
118
- */
119
-
120
- micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
121
-
122
- /**
123
- * Backwards compatibility
124
- */
125
-
126
- micromatch.any = micromatch.isMatch;
127
-
128
- /**
129
- * Returns a list of strings that _**do not match any**_ of the given `patterns`.
130
- *
131
- * ```js
132
- * const mm = require('micromatch');
133
- * // mm.not(list, patterns[, options]);
134
- *
135
- * console.log(mm.not(['a.a', 'b.b', 'c.c'], '*.a'));
136
- * //=> ['b.b', 'c.c']
137
- * ```
138
- * @param {Array} `list` Array of strings to match.
139
- * @param {String|Array} `patterns` One or more glob pattern to use for matching.
140
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
141
- * @return {Array} Returns an array of strings that **do not match** the given patterns.
142
- * @api public
143
- */
144
-
145
- micromatch.not = (list, patterns, options = {}) => {
146
- patterns = [].concat(patterns).map(String);
147
- let result = new Set();
148
- let items = [];
149
- let onResult = state => {
150
- if (options.onResult) options.onResult(state);
151
- items.push(state.output);
196
+ if (typeof pattern === 'string') {
197
+ if (isEmptyString(str) || isEmptyString(pattern)) {
198
+ return false;
199
+ }
200
+ if (str.includes(pattern) || str.startsWith('./') && str.slice(2).includes(pattern)) {
201
+ return true;
202
+ }
203
+ }
204
+ return micromatch.isMatch(str, pattern, {
205
+ ...options,
206
+ contains: true
207
+ });
152
208
  };
153
- let matches = new Set(micromatch(list, patterns, {
154
- ...options,
155
- onResult
156
- }));
157
- for (let item of items) {
158
- if (!matches.has(item)) {
159
- result.add(item);
209
+
210
+ /**
211
+ * Filter the keys of the given object with the given `glob` pattern
212
+ * and `options`. Does not attempt to match nested keys. If you need this feature,
213
+ * use [glob-object][] instead.
214
+ *
215
+ * ```js
216
+ * const mm = require('micromatch');
217
+ * // mm.matchKeys(object, patterns[, options]);
218
+ *
219
+ * const obj = { aa: 'a', ab: 'b', ac: 'c' };
220
+ * console.log(mm.matchKeys(obj, '*b'));
221
+ * //=> { ab: 'b' }
222
+ * ```
223
+ * @param {Object} `object` The object with keys to filter.
224
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
225
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
226
+ * @return {Object} Returns an object with only keys that match the given patterns.
227
+ * @api public
228
+ */
229
+
230
+ micromatch.matchKeys = (obj, patterns, options) => {
231
+ if (!utils.isObject(obj)) {
232
+ throw new TypeError('Expected the first argument to be an object');
160
233
  }
161
- }
162
- return [...result];
163
- };
164
-
165
- /**
166
- * Returns true if the given `string` contains the given pattern. Similar
167
- * to [.isMatch](#isMatch) but the pattern can match any part of the string.
168
- *
169
- * ```js
170
- * var mm = require('micromatch');
171
- * // mm.contains(string, pattern[, options]);
172
- *
173
- * console.log(mm.contains('aa/bb/cc', '*b'));
174
- * //=> true
175
- * console.log(mm.contains('aa/bb/cc', '*d'));
176
- * //=> false
177
- * ```
178
- * @param {String} `str` The string to match.
179
- * @param {String|Array} `patterns` Glob pattern to use for matching.
180
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
181
- * @return {Boolean} Returns true if any of the patterns matches any part of `str`.
182
- * @api public
183
- */
184
-
185
- micromatch.contains = (str, pattern, options) => {
186
- if (typeof str !== 'string') {
187
- throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
188
- }
189
- if (Array.isArray(pattern)) {
190
- return pattern.some(p => micromatch.contains(str, p, options));
191
- }
192
- if (typeof pattern === 'string') {
193
- if (isEmptyString(str) || isEmptyString(pattern)) {
194
- return false;
234
+ let keys = micromatch(Object.keys(obj), patterns, options);
235
+ let res = {};
236
+ for (let key of keys) res[key] = obj[key];
237
+ return res;
238
+ };
239
+
240
+ /**
241
+ * Returns true if some of the strings in the given `list` match any of the given glob `patterns`.
242
+ *
243
+ * ```js
244
+ * const mm = require('micromatch');
245
+ * // mm.some(list, patterns[, options]);
246
+ *
247
+ * console.log(mm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
248
+ * // true
249
+ * console.log(mm.some(['foo.js'], ['*.js', '!foo.js']));
250
+ * // false
251
+ * ```
252
+ * @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
253
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
254
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
255
+ * @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
256
+ * @api public
257
+ */
258
+
259
+ micromatch.some = (list, patterns, options) => {
260
+ let items = [].concat(list);
261
+ for (let pattern of [].concat(patterns)) {
262
+ let isMatch = picomatch(String(pattern), options);
263
+ if (items.some(item => isMatch(item))) {
264
+ return true;
265
+ }
266
+ }
267
+ return false;
268
+ };
269
+
270
+ /**
271
+ * Returns true if every string in the given `list` matches
272
+ * any of the given glob `patterns`.
273
+ *
274
+ * ```js
275
+ * const mm = require('micromatch');
276
+ * // mm.every(list, patterns[, options]);
277
+ *
278
+ * console.log(mm.every('foo.js', ['foo.js']));
279
+ * // true
280
+ * console.log(mm.every(['foo.js', 'bar.js'], ['*.js']));
281
+ * // true
282
+ * console.log(mm.every(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
283
+ * // false
284
+ * console.log(mm.every(['foo.js'], ['*.js', '!foo.js']));
285
+ * // false
286
+ * ```
287
+ * @param {String|Array} `list` The string or array of strings to test.
288
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
289
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
290
+ * @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
291
+ * @api public
292
+ */
293
+
294
+ micromatch.every = (list, patterns, options) => {
295
+ let items = [].concat(list);
296
+ for (let pattern of [].concat(patterns)) {
297
+ let isMatch = picomatch(String(pattern), options);
298
+ if (!items.every(item => isMatch(item))) {
299
+ return false;
300
+ }
195
301
  }
196
- if (str.includes(pattern) || str.startsWith('./') && str.slice(2).includes(pattern)) {
197
- return true;
302
+ return true;
303
+ };
304
+
305
+ /**
306
+ * Returns true if **all** of the given `patterns` match
307
+ * the specified string.
308
+ *
309
+ * ```js
310
+ * const mm = require('micromatch');
311
+ * // mm.all(string, patterns[, options]);
312
+ *
313
+ * console.log(mm.all('foo.js', ['foo.js']));
314
+ * // true
315
+ *
316
+ * console.log(mm.all('foo.js', ['*.js', '!foo.js']));
317
+ * // false
318
+ *
319
+ * console.log(mm.all('foo.js', ['*.js', 'foo.js']));
320
+ * // true
321
+ *
322
+ * console.log(mm.all('foo.js', ['*.js', 'f*', '*o*', '*o.js']));
323
+ * // true
324
+ * ```
325
+ * @param {String|Array} `str` The string to test.
326
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
327
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
328
+ * @return {Boolean} Returns true if any patterns match `str`
329
+ * @api public
330
+ */
331
+
332
+ micromatch.all = (str, patterns, options) => {
333
+ if (typeof str !== 'string') {
334
+ throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
198
335
  }
199
- }
200
- return micromatch.isMatch(str, pattern, {
201
- ...options,
202
- contains: true
203
- });
204
- };
205
-
206
- /**
207
- * Filter the keys of the given object with the given `glob` pattern
208
- * and `options`. Does not attempt to match nested keys. If you need this feature,
209
- * use [glob-object][] instead.
210
- *
211
- * ```js
212
- * const mm = require('micromatch');
213
- * // mm.matchKeys(object, patterns[, options]);
214
- *
215
- * const obj = { aa: 'a', ab: 'b', ac: 'c' };
216
- * console.log(mm.matchKeys(obj, '*b'));
217
- * //=> { ab: 'b' }
218
- * ```
219
- * @param {Object} `object` The object with keys to filter.
220
- * @param {String|Array} `patterns` One or more glob patterns to use for matching.
221
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
222
- * @return {Object} Returns an object with only keys that match the given patterns.
223
- * @api public
224
- */
225
-
226
- micromatch.matchKeys = (obj, patterns, options) => {
227
- if (!utils.isObject(obj)) {
228
- throw new TypeError('Expected the first argument to be an object');
229
- }
230
- let keys = micromatch(Object.keys(obj), patterns, options);
231
- let res = {};
232
- for (let key of keys) res[key] = obj[key];
233
- return res;
234
- };
235
-
236
- /**
237
- * Returns true if some of the strings in the given `list` match any of the given glob `patterns`.
238
- *
239
- * ```js
240
- * const mm = require('micromatch');
241
- * // mm.some(list, patterns[, options]);
242
- *
243
- * console.log(mm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
244
- * // true
245
- * console.log(mm.some(['foo.js'], ['*.js', '!foo.js']));
246
- * // false
247
- * ```
248
- * @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
249
- * @param {String|Array} `patterns` One or more glob patterns to use for matching.
250
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
251
- * @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
252
- * @api public
253
- */
254
-
255
- micromatch.some = (list, patterns, options) => {
256
- let items = [].concat(list);
257
- for (let pattern of [].concat(patterns)) {
258
- let isMatch = picomatch(String(pattern), options);
259
- if (items.some(item => isMatch(item))) {
260
- return true;
336
+ return [].concat(patterns).every(p => picomatch(p, options)(str));
337
+ };
338
+
339
+ /**
340
+ * Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
341
+ *
342
+ * ```js
343
+ * const mm = require('micromatch');
344
+ * // mm.capture(pattern, string[, options]);
345
+ *
346
+ * console.log(mm.capture('test/*.js', 'test/foo.js'));
347
+ * //=> ['foo']
348
+ * console.log(mm.capture('test/*.js', 'foo/bar.css'));
349
+ * //=> null
350
+ * ```
351
+ * @param {String} `glob` Glob pattern to use for matching.
352
+ * @param {String} `input` String to match
353
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
354
+ * @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
355
+ * @api public
356
+ */
357
+
358
+ micromatch.capture = (glob, input, options) => {
359
+ let posix = utils.isWindows(options);
360
+ let regex = picomatch.makeRe(String(glob), {
361
+ ...options,
362
+ capture: true
363
+ });
364
+ let match = regex.exec(posix ? utils.toPosixSlashes(input) : input);
365
+ if (match) {
366
+ return match.slice(1).map(v => v === void 0 ? '' : v);
261
367
  }
262
- }
263
- return false;
264
- };
265
-
266
- /**
267
- * Returns true if every string in the given `list` matches
268
- * any of the given glob `patterns`.
269
- *
270
- * ```js
271
- * const mm = require('micromatch');
272
- * // mm.every(list, patterns[, options]);
273
- *
274
- * console.log(mm.every('foo.js', ['foo.js']));
275
- * // true
276
- * console.log(mm.every(['foo.js', 'bar.js'], ['*.js']));
277
- * // true
278
- * console.log(mm.every(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
279
- * // false
280
- * console.log(mm.every(['foo.js'], ['*.js', '!foo.js']));
281
- * // false
282
- * ```
283
- * @param {String|Array} `list` The string or array of strings to test.
284
- * @param {String|Array} `patterns` One or more glob patterns to use for matching.
285
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
286
- * @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
287
- * @api public
288
- */
289
-
290
- micromatch.every = (list, patterns, options) => {
291
- let items = [].concat(list);
292
- for (let pattern of [].concat(patterns)) {
293
- let isMatch = picomatch(String(pattern), options);
294
- if (!items.every(item => isMatch(item))) {
295
- return false;
368
+ };
369
+
370
+ /**
371
+ * Create a regular expression from the given glob `pattern`.
372
+ *
373
+ * ```js
374
+ * const mm = require('micromatch');
375
+ * // mm.makeRe(pattern[, options]);
376
+ *
377
+ * console.log(mm.makeRe('*.js'));
378
+ * //=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
379
+ * ```
380
+ * @param {String} `pattern` A glob pattern to convert to regex.
381
+ * @param {Object} `options`
382
+ * @return {RegExp} Returns a regex created from the given pattern.
383
+ * @api public
384
+ */
385
+
386
+ micromatch.makeRe = (...args) => picomatch.makeRe(...args);
387
+
388
+ /**
389
+ * Scan a glob pattern to separate the pattern into segments. Used
390
+ * by the [split](#split) method.
391
+ *
392
+ * ```js
393
+ * const mm = require('micromatch');
394
+ * const state = mm.scan(pattern[, options]);
395
+ * ```
396
+ * @param {String} `pattern`
397
+ * @param {Object} `options`
398
+ * @return {Object} Returns an object with
399
+ * @api public
400
+ */
401
+
402
+ micromatch.scan = (...args) => picomatch.scan(...args);
403
+
404
+ /**
405
+ * Parse a glob pattern to create the source string for a regular
406
+ * expression.
407
+ *
408
+ * ```js
409
+ * const mm = require('micromatch');
410
+ * const state = mm.parse(pattern[, options]);
411
+ * ```
412
+ * @param {String} `glob`
413
+ * @param {Object} `options`
414
+ * @return {Object} Returns an object with useful properties and output to be used as regex source string.
415
+ * @api public
416
+ */
417
+
418
+ micromatch.parse = (patterns, options) => {
419
+ let res = [];
420
+ for (let pattern of [].concat(patterns || [])) {
421
+ for (let str of braces(String(pattern), options)) {
422
+ res.push(picomatch.parse(str, options));
423
+ }
296
424
  }
297
- }
298
- return true;
299
- };
300
-
301
- /**
302
- * Returns true if **all** of the given `patterns` match
303
- * the specified string.
304
- *
305
- * ```js
306
- * const mm = require('micromatch');
307
- * // mm.all(string, patterns[, options]);
308
- *
309
- * console.log(mm.all('foo.js', ['foo.js']));
310
- * // true
311
- *
312
- * console.log(mm.all('foo.js', ['*.js', '!foo.js']));
313
- * // false
314
- *
315
- * console.log(mm.all('foo.js', ['*.js', 'foo.js']));
316
- * // true
317
- *
318
- * console.log(mm.all('foo.js', ['*.js', 'f*', '*o*', '*o.js']));
319
- * // true
320
- * ```
321
- * @param {String|Array} `str` The string to test.
322
- * @param {String|Array} `patterns` One or more glob patterns to use for matching.
323
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
324
- * @return {Boolean} Returns true if any patterns match `str`
325
- * @api public
326
- */
327
-
328
- micromatch.all = (str, patterns, options) => {
329
- if (typeof str !== 'string') {
330
- throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
331
- }
332
- return [].concat(patterns).every(p => picomatch(p, options)(str));
333
- };
334
-
335
- /**
336
- * Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
337
- *
338
- * ```js
339
- * const mm = require('micromatch');
340
- * // mm.capture(pattern, string[, options]);
341
- *
342
- * console.log(mm.capture('test/*.js', 'test/foo.js'));
343
- * //=> ['foo']
344
- * console.log(mm.capture('test/*.js', 'foo/bar.css'));
345
- * //=> null
346
- * ```
347
- * @param {String} `glob` Glob pattern to use for matching.
348
- * @param {String} `input` String to match
349
- * @param {Object} `options` See available [options](#options) for changing how matches are performed
350
- * @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
351
- * @api public
352
- */
353
-
354
- micromatch.capture = (glob, input, options) => {
355
- let posix = utils.isWindows(options);
356
- let regex = picomatch.makeRe(String(glob), {
357
- ...options,
358
- capture: true
359
- });
360
- let match = regex.exec(posix ? utils.toPosixSlashes(input) : input);
361
- if (match) {
362
- return match.slice(1).map(v => v === void 0 ? '' : v);
363
- }
364
- };
365
-
366
- /**
367
- * Create a regular expression from the given glob `pattern`.
368
- *
369
- * ```js
370
- * const mm = require('micromatch');
371
- * // mm.makeRe(pattern[, options]);
372
- *
373
- * console.log(mm.makeRe('*.js'));
374
- * //=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
375
- * ```
376
- * @param {String} `pattern` A glob pattern to convert to regex.
377
- * @param {Object} `options`
378
- * @return {RegExp} Returns a regex created from the given pattern.
379
- * @api public
380
- */
381
-
382
- micromatch.makeRe = (...args) => picomatch.makeRe(...args);
383
-
384
- /**
385
- * Scan a glob pattern to separate the pattern into segments. Used
386
- * by the [split](#split) method.
387
- *
388
- * ```js
389
- * const mm = require('micromatch');
390
- * const state = mm.scan(pattern[, options]);
391
- * ```
392
- * @param {String} `pattern`
393
- * @param {Object} `options`
394
- * @return {Object} Returns an object with
395
- * @api public
396
- */
397
-
398
- micromatch.scan = (...args) => picomatch.scan(...args);
399
-
400
- /**
401
- * Parse a glob pattern to create the source string for a regular
402
- * expression.
403
- *
404
- * ```js
405
- * const mm = require('micromatch');
406
- * const state = mm.parse(pattern[, options]);
407
- * ```
408
- * @param {String} `glob`
409
- * @param {Object} `options`
410
- * @return {Object} Returns an object with useful properties and output to be used as regex source string.
411
- * @api public
412
- */
413
-
414
- micromatch.parse = (patterns, options) => {
415
- let res = [];
416
- for (let pattern of [].concat(patterns || [])) {
417
- for (let str of braces(String(pattern), options)) {
418
- res.push(picomatch.parse(str, options));
425
+ return res;
426
+ };
427
+
428
+ /**
429
+ * Process the given brace `pattern`.
430
+ *
431
+ * ```js
432
+ * const { braces } = require('micromatch');
433
+ * console.log(braces('foo/{a,b,c}/bar'));
434
+ * //=> [ 'foo/(a|b|c)/bar' ]
435
+ *
436
+ * console.log(braces('foo/{a,b,c}/bar', { expand: true }));
437
+ * //=> [ 'foo/a/bar', 'foo/b/bar', 'foo/c/bar' ]
438
+ * ```
439
+ * @param {String} `pattern` String with brace pattern to process.
440
+ * @param {Object} `options` Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options.
441
+ * @return {Array}
442
+ * @api public
443
+ */
444
+
445
+ micromatch.braces = (pattern, options) => {
446
+ if (typeof pattern !== 'string') throw new TypeError('Expected a string');
447
+ if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) {
448
+ return [pattern];
419
449
  }
420
- }
421
- return res;
422
- };
423
-
424
- /**
425
- * Process the given brace `pattern`.
426
- *
427
- * ```js
428
- * const { braces } = require('micromatch');
429
- * console.log(braces('foo/{a,b,c}/bar'));
430
- * //=> [ 'foo/(a|b|c)/bar' ]
431
- *
432
- * console.log(braces('foo/{a,b,c}/bar', { expand: true }));
433
- * //=> [ 'foo/a/bar', 'foo/b/bar', 'foo/c/bar' ]
434
- * ```
435
- * @param {String} `pattern` String with brace pattern to process.
436
- * @param {Object} `options` Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options.
437
- * @return {Array}
438
- * @api public
439
- */
440
-
441
- micromatch.braces = (pattern, options) => {
442
- if (typeof pattern !== 'string') throw new TypeError('Expected a string');
443
- if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) {
444
- return [pattern];
445
- }
446
- return braces(pattern, options);
447
- };
448
-
449
- /**
450
- * Expand braces
451
- */
452
-
453
- micromatch.braceExpand = (pattern, options) => {
454
- if (typeof pattern !== 'string') throw new TypeError('Expected a string');
455
- return micromatch.braces(pattern, {
456
- ...options,
457
- expand: true
458
- });
459
- };
460
-
461
- /**
462
- * Expose micromatch
463
- */
464
-
465
- var micromatch_1 = micromatch;
466
-
467
- export { micromatch_1 };
450
+ return braces(pattern, options);
451
+ };
452
+
453
+ /**
454
+ * Expand braces
455
+ */
456
+
457
+ micromatch.braceExpand = (pattern, options) => {
458
+ if (typeof pattern !== 'string') throw new TypeError('Expected a string');
459
+ return micromatch.braces(pattern, {
460
+ ...options,
461
+ expand: true
462
+ });
463
+ };
464
+
465
+ /**
466
+ * Expose micromatch
467
+ */
468
+
469
+ micromatch_1 = micromatch;
470
+ return micromatch_1;
471
+ }
472
+
473
+ export { requireMicromatch as __require };