@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,372 +1,376 @@
1
- import { getDefaultExportFromCjs } from '../../../../../_virtual/_commonjsHelpers.esnext';
2
-
3
- function makeArray(subject) {
4
- return Array.isArray(subject) ? subject : [subject];
5
- }
6
- const EMPTY = "";
7
- const SPACE = " ";
8
- const ESCAPE = "\\";
9
- const REGEX_TEST_BLANK_LINE = /^\s+$/;
10
- const REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
11
- const REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
12
- const REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
13
- const REGEX_SPLITALL_CRLF = /\r?\n/g;
14
- const REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
15
- const SLASH = "/";
16
- let TMP_KEY_IGNORE = "node-ignore";
17
- if (typeof Symbol !== "undefined") {
18
- TMP_KEY_IGNORE = Symbol.for("node-ignore");
19
- }
20
- const KEY_IGNORE = TMP_KEY_IGNORE;
21
- const define = (object, key, value) => Object.defineProperty(object, key, { value });
22
- const REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
23
- const RETURN_FALSE = () => false;
24
- const sanitizeRange = (range) => range.replace(
25
- REGEX_REGEXP_RANGE,
26
- (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY
27
- );
28
- const cleanRangeBackSlash = (slashes) => {
29
- const { length } = slashes;
30
- return slashes.slice(0, length - length % 2);
31
- };
32
- const REPLACERS = [
33
- // > Trailing spaces are ignored unless they are quoted with backslash ("\")
34
- [
35
- // (a\ ) -> (a )
36
- // (a ) -> (a)
37
- // (a \ ) -> (a )
38
- /\\?\s+$/,
39
- (match) => match.indexOf("\\") === 0 ? SPACE : EMPTY
40
- ],
41
- // replace (\ ) with ' '
42
- [
43
- /\\\s/g,
44
- () => SPACE
45
- ],
46
- // Escape metacharacters
47
- // which is written down by users but means special for regular expressions.
48
- // > There are 12 characters with special meanings:
49
- // > - the backslash \,
50
- // > - the caret ^,
51
- // > - the dollar sign $,
52
- // > - the period or dot .,
53
- // > - the vertical bar or pipe symbol |,
54
- // > - the question mark ?,
55
- // > - the asterisk or star *,
56
- // > - the plus sign +,
57
- // > - the opening parenthesis (,
58
- // > - the closing parenthesis ),
59
- // > - and the opening square bracket [,
60
- // > - the opening curly brace {,
61
- // > These special characters are often called "metacharacters".
62
- [
63
- /[\\$.|*+(){^]/g,
64
- (match) => `\\${match}`
65
- ],
66
- [
67
- // > a question mark (?) matches a single character
68
- /(?!\\)\?/g,
69
- () => "[^/]"
70
- ],
71
- // leading slash
72
- [
73
- // > A leading slash matches the beginning of the pathname.
74
- // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
75
- // A leading slash matches the beginning of the pathname
76
- /^\//,
77
- () => "^"
78
- ],
79
- // replace special metacharacter slash after the leading slash
80
- [
81
- /\//g,
82
- () => "\\/"
83
- ],
84
- [
85
- // > A leading "**" followed by a slash means match in all directories.
86
- // > For example, "**/foo" matches file or directory "foo" anywhere,
87
- // > the same as pattern "foo".
88
- // > "**/foo/bar" matches file or directory "bar" anywhere that is directly
89
- // > under directory "foo".
90
- // Notice that the '*'s have been replaced as '\\*'
91
- /^\^*\\\*\\\*\\\//,
92
- // '**/foo' <-> 'foo'
93
- () => "^(?:.*\\/)?"
94
- ],
95
- // starting
96
- [
97
- // there will be no leading '/'
98
- // (which has been replaced by section "leading slash")
99
- // If starts with '**', adding a '^' to the regular expression also works
100
- /^(?=[^^])/,
101
- function startingReplacer() {
102
- return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^";
103
- }
104
- ],
105
- // two globstars
106
- [
107
- // Use lookahead assertions so that we could match more than one `'/**'`
108
- /\\\/\\\*\\\*(?=\\\/|$)/g,
109
- // Zero, one or several directories
110
- // should not use '*', or it will be replaced by the next replacer
111
- // Check if it is not the last `'/**'`
112
- (_, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
113
- ],
114
- // normal intermediate wildcards
115
- [
116
- // Never replace escaped '*'
117
- // ignore rule '\*' will match the path '*'
118
- // 'abc.*/' -> go
119
- // 'abc.*' -> skip this rule,
120
- // coz trailing single wildcard will be handed by [trailing wildcard]
121
- /(^|[^\\]+)(\\\*)+(?=.+)/g,
122
- // '*.js' matches '.js'
123
- // '*.js' doesn't match 'abc'
124
- (_, p1, p2) => {
125
- const unescaped = p2.replace(/\\\*/g, "[^\\/]*");
126
- return p1 + unescaped;
127
- }
128
- ],
129
- [
130
- // unescape, revert step 3 except for back slash
131
- // For example, if a user escape a '\\*',
132
- // after step 3, the result will be '\\\\\\*'
133
- /\\\\\\(?=[$.|*+(){^])/g,
134
- () => ESCAPE
135
- ],
136
- [
137
- // '\\\\' -> '\\'
138
- /\\\\/g,
139
- () => ESCAPE
140
- ],
141
- [
142
- // > The range notation, e.g. [a-zA-Z],
143
- // > can be used to match one of the characters in a range.
144
- // `\` is escaped by step 3
145
- /(\\)?\[([^\]/]*?)(\\*)($|\])/g,
146
- (match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
147
- ],
148
- // ending
149
- [
150
- // 'js' will not match 'js.'
151
- // 'ab' will not match 'abc'
152
- /(?:[^*])$/,
153
- // WTF!
154
- // https://git-scm.com/docs/gitignore
155
- // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
156
- // which re-fixes #24, #38
157
- // > If there is a separator at the end of the pattern then the pattern
158
- // > will only match directories, otherwise the pattern can match both
159
- // > files and directories.
160
- // 'js*' will not match 'a.js'
161
- // 'js/' will not match 'a.js'
162
- // 'js' will match 'a.js' and 'a.js/'
163
- (match) => /\/$/.test(match) ? `${match}$` : `${match}(?=$|\\/$)`
164
- ],
165
- // trailing wildcard
166
- [
167
- /(\^|\\\/)?\\\*$/,
168
- (_, p1) => {
169
- const prefix = p1 ? `${p1}[^/]+` : "[^/]*";
170
- return `${prefix}(?=$|\\/$)`;
171
- }
172
- ]
173
- ];
174
- const regexCache = /* @__PURE__ */ Object.create(null);
175
- const makeRegex = (pattern, ignoreCase) => {
176
- let source = regexCache[pattern];
177
- if (!source) {
178
- source = REPLACERS.reduce(
179
- (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
180
- pattern
181
- );
182
- regexCache[pattern] = source;
183
- }
184
- return ignoreCase ? new RegExp(source, "i") : new RegExp(source);
185
- };
186
- const isString = (subject) => typeof subject === "string";
187
- const checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0;
188
- const splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF);
189
- class IgnoreRule {
190
- constructor(origin, pattern, negative, regex) {
191
- this.origin = origin;
192
- this.pattern = pattern;
193
- this.negative = negative;
194
- this.regex = regex;
1
+ var ignore;
2
+ var hasRequiredIgnore;
3
+ function requireIgnore() {
4
+ if (hasRequiredIgnore) return ignore;
5
+ hasRequiredIgnore = 1;
6
+ function makeArray(subject) {
7
+ return Array.isArray(subject) ? subject : [subject];
195
8
  }
196
- }
197
- const createRule = (pattern, ignoreCase) => {
198
- const origin = pattern;
199
- let negative = false;
200
- if (pattern.indexOf("!") === 0) {
201
- negative = true;
202
- pattern = pattern.substr(1);
9
+ const EMPTY = "";
10
+ const SPACE = " ";
11
+ const ESCAPE = "\\";
12
+ const REGEX_TEST_BLANK_LINE = /^\s+$/;
13
+ const REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
14
+ const REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
15
+ const REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
16
+ const REGEX_SPLITALL_CRLF = /\r?\n/g;
17
+ const REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
18
+ const SLASH = "/";
19
+ let TMP_KEY_IGNORE = "node-ignore";
20
+ if (typeof Symbol !== "undefined") {
21
+ TMP_KEY_IGNORE = Symbol.for("node-ignore");
203
22
  }
204
- pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
205
- const regex = makeRegex(pattern, ignoreCase);
206
- return new IgnoreRule(
207
- origin,
208
- pattern,
209
- negative,
210
- regex
23
+ const KEY_IGNORE = TMP_KEY_IGNORE;
24
+ const define = (object, key, value) => Object.defineProperty(object, key, { value });
25
+ const REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
26
+ const RETURN_FALSE = () => false;
27
+ const sanitizeRange = (range) => range.replace(
28
+ REGEX_REGEXP_RANGE,
29
+ (match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0) ? match : EMPTY
211
30
  );
212
- };
213
- const throwError = (message, Ctor) => {
214
- throw new Ctor(message);
215
- };
216
- const checkPath = (path, originalPath, doThrow) => {
217
- if (!isString(path)) {
218
- return doThrow(
219
- `path must be a string, but got \`${originalPath}\``,
220
- TypeError
221
- );
222
- }
223
- if (!path) {
224
- return doThrow(`path must not be empty`, TypeError);
31
+ const cleanRangeBackSlash = (slashes) => {
32
+ const { length } = slashes;
33
+ return slashes.slice(0, length - length % 2);
34
+ };
35
+ const REPLACERS = [
36
+ // > Trailing spaces are ignored unless they are quoted with backslash ("\")
37
+ [
38
+ // (a\ ) -> (a )
39
+ // (a ) -> (a)
40
+ // (a \ ) -> (a )
41
+ /\\?\s+$/,
42
+ (match) => match.indexOf("\\") === 0 ? SPACE : EMPTY
43
+ ],
44
+ // replace (\ ) with ' '
45
+ [
46
+ /\\\s/g,
47
+ () => SPACE
48
+ ],
49
+ // Escape metacharacters
50
+ // which is written down by users but means special for regular expressions.
51
+ // > There are 12 characters with special meanings:
52
+ // > - the backslash \,
53
+ // > - the caret ^,
54
+ // > - the dollar sign $,
55
+ // > - the period or dot .,
56
+ // > - the vertical bar or pipe symbol |,
57
+ // > - the question mark ?,
58
+ // > - the asterisk or star *,
59
+ // > - the plus sign +,
60
+ // > - the opening parenthesis (,
61
+ // > - the closing parenthesis ),
62
+ // > - and the opening square bracket [,
63
+ // > - the opening curly brace {,
64
+ // > These special characters are often called "metacharacters".
65
+ [
66
+ /[\\$.|*+(){^]/g,
67
+ (match) => `\\${match}`
68
+ ],
69
+ [
70
+ // > a question mark (?) matches a single character
71
+ /(?!\\)\?/g,
72
+ () => "[^/]"
73
+ ],
74
+ // leading slash
75
+ [
76
+ // > A leading slash matches the beginning of the pathname.
77
+ // > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
78
+ // A leading slash matches the beginning of the pathname
79
+ /^\//,
80
+ () => "^"
81
+ ],
82
+ // replace special metacharacter slash after the leading slash
83
+ [
84
+ /\//g,
85
+ () => "\\/"
86
+ ],
87
+ [
88
+ // > A leading "**" followed by a slash means match in all directories.
89
+ // > For example, "**/foo" matches file or directory "foo" anywhere,
90
+ // > the same as pattern "foo".
91
+ // > "**/foo/bar" matches file or directory "bar" anywhere that is directly
92
+ // > under directory "foo".
93
+ // Notice that the '*'s have been replaced as '\\*'
94
+ /^\^*\\\*\\\*\\\//,
95
+ // '**/foo' <-> 'foo'
96
+ () => "^(?:.*\\/)?"
97
+ ],
98
+ // starting
99
+ [
100
+ // there will be no leading '/'
101
+ // (which has been replaced by section "leading slash")
102
+ // If starts with '**', adding a '^' to the regular expression also works
103
+ /^(?=[^^])/,
104
+ function startingReplacer() {
105
+ return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^";
106
+ }
107
+ ],
108
+ // two globstars
109
+ [
110
+ // Use lookahead assertions so that we could match more than one `'/**'`
111
+ /\\\/\\\*\\\*(?=\\\/|$)/g,
112
+ // Zero, one or several directories
113
+ // should not use '*', or it will be replaced by the next replacer
114
+ // Check if it is not the last `'/**'`
115
+ (_, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
116
+ ],
117
+ // normal intermediate wildcards
118
+ [
119
+ // Never replace escaped '*'
120
+ // ignore rule '\*' will match the path '*'
121
+ // 'abc.*/' -> go
122
+ // 'abc.*' -> skip this rule,
123
+ // coz trailing single wildcard will be handed by [trailing wildcard]
124
+ /(^|[^\\]+)(\\\*)+(?=.+)/g,
125
+ // '*.js' matches '.js'
126
+ // '*.js' doesn't match 'abc'
127
+ (_, p1, p2) => {
128
+ const unescaped = p2.replace(/\\\*/g, "[^\\/]*");
129
+ return p1 + unescaped;
130
+ }
131
+ ],
132
+ [
133
+ // unescape, revert step 3 except for back slash
134
+ // For example, if a user escape a '\\*',
135
+ // after step 3, the result will be '\\\\\\*'
136
+ /\\\\\\(?=[$.|*+(){^])/g,
137
+ () => ESCAPE
138
+ ],
139
+ [
140
+ // '\\\\' -> '\\'
141
+ /\\\\/g,
142
+ () => ESCAPE
143
+ ],
144
+ [
145
+ // > The range notation, e.g. [a-zA-Z],
146
+ // > can be used to match one of the characters in a range.
147
+ // `\` is escaped by step 3
148
+ /(\\)?\[([^\]/]*?)(\\*)($|\])/g,
149
+ (match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
150
+ ],
151
+ // ending
152
+ [
153
+ // 'js' will not match 'js.'
154
+ // 'ab' will not match 'abc'
155
+ /(?:[^*])$/,
156
+ // WTF!
157
+ // https://git-scm.com/docs/gitignore
158
+ // changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
159
+ // which re-fixes #24, #38
160
+ // > If there is a separator at the end of the pattern then the pattern
161
+ // > will only match directories, otherwise the pattern can match both
162
+ // > files and directories.
163
+ // 'js*' will not match 'a.js'
164
+ // 'js/' will not match 'a.js'
165
+ // 'js' will match 'a.js' and 'a.js/'
166
+ (match) => /\/$/.test(match) ? `${match}$` : `${match}(?=$|\\/$)`
167
+ ],
168
+ // trailing wildcard
169
+ [
170
+ /(\^|\\\/)?\\\*$/,
171
+ (_, p1) => {
172
+ const prefix = p1 ? `${p1}[^/]+` : "[^/]*";
173
+ return `${prefix}(?=$|\\/$)`;
174
+ }
175
+ ]
176
+ ];
177
+ const regexCache = /* @__PURE__ */ Object.create(null);
178
+ const makeRegex = (pattern, ignoreCase) => {
179
+ let source = regexCache[pattern];
180
+ if (!source) {
181
+ source = REPLACERS.reduce(
182
+ (prev, current) => prev.replace(current[0], current[1].bind(pattern)),
183
+ pattern
184
+ );
185
+ regexCache[pattern] = source;
186
+ }
187
+ return ignoreCase ? new RegExp(source, "i") : new RegExp(source);
188
+ };
189
+ const isString = (subject) => typeof subject === "string";
190
+ const checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0;
191
+ const splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF);
192
+ class IgnoreRule {
193
+ constructor(origin, pattern, negative, regex) {
194
+ this.origin = origin;
195
+ this.pattern = pattern;
196
+ this.negative = negative;
197
+ this.regex = regex;
198
+ }
225
199
  }
226
- if (checkPath.isNotRelative(path)) {
227
- const r = "`path.relative()`d";
228
- return doThrow(
229
- `path should be a ${r} string, but got "${originalPath}"`,
230
- RangeError
200
+ const createRule = (pattern, ignoreCase) => {
201
+ const origin = pattern;
202
+ let negative = false;
203
+ if (pattern.indexOf("!") === 0) {
204
+ negative = true;
205
+ pattern = pattern.substr(1);
206
+ }
207
+ pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
208
+ const regex = makeRegex(pattern, ignoreCase);
209
+ return new IgnoreRule(
210
+ origin,
211
+ pattern,
212
+ negative,
213
+ regex
231
214
  );
232
- }
233
- return true;
234
- };
235
- const isNotRelative = (path) => REGEX_TEST_INVALID_PATH.test(path);
236
- checkPath.isNotRelative = isNotRelative;
237
- checkPath.convert = (p) => p;
238
- class Ignore {
239
- constructor({
240
- ignorecase = true,
241
- ignoreCase = ignorecase,
242
- allowRelativePaths = false
243
- } = {}) {
244
- define(this, KEY_IGNORE, true);
245
- this._rules = [];
246
- this._ignoreCase = ignoreCase;
247
- this._allowRelativePaths = allowRelativePaths;
248
- this._initCache();
249
- }
250
- _initCache() {
251
- this._ignoreCache = /* @__PURE__ */ Object.create(null);
252
- this._testCache = /* @__PURE__ */ Object.create(null);
253
- }
254
- _addPattern(pattern) {
255
- if (pattern && pattern[KEY_IGNORE]) {
256
- this._rules = this._rules.concat(pattern._rules);
257
- this._added = true;
258
- return;
215
+ };
216
+ const throwError = (message, Ctor) => {
217
+ throw new Ctor(message);
218
+ };
219
+ const checkPath = (path, originalPath, doThrow) => {
220
+ if (!isString(path)) {
221
+ return doThrow(
222
+ `path must be a string, but got \`${originalPath}\``,
223
+ TypeError
224
+ );
259
225
  }
260
- if (checkPattern(pattern)) {
261
- const rule = createRule(pattern, this._ignoreCase);
262
- this._added = true;
263
- this._rules.push(rule);
226
+ if (!path) {
227
+ return doThrow(`path must not be empty`, TypeError);
264
228
  }
265
- }
266
- // @param {Array<string> | string | Ignore} pattern
267
- add(pattern) {
268
- this._added = false;
269
- makeArray(
270
- isString(pattern) ? splitPattern(pattern) : pattern
271
- ).forEach(this._addPattern, this);
272
- if (this._added) {
229
+ if (checkPath.isNotRelative(path)) {
230
+ const r = "`path.relative()`d";
231
+ return doThrow(
232
+ `path should be a ${r} string, but got "${originalPath}"`,
233
+ RangeError
234
+ );
235
+ }
236
+ return true;
237
+ };
238
+ const isNotRelative = (path) => REGEX_TEST_INVALID_PATH.test(path);
239
+ checkPath.isNotRelative = isNotRelative;
240
+ checkPath.convert = (p) => p;
241
+ class Ignore {
242
+ constructor({
243
+ ignorecase = true,
244
+ ignoreCase = ignorecase,
245
+ allowRelativePaths = false
246
+ } = {}) {
247
+ define(this, KEY_IGNORE, true);
248
+ this._rules = [];
249
+ this._ignoreCase = ignoreCase;
250
+ this._allowRelativePaths = allowRelativePaths;
273
251
  this._initCache();
274
252
  }
275
- return this;
276
- }
277
- // legacy
278
- addPattern(pattern) {
279
- return this.add(pattern);
280
- }
281
- // | ignored : unignored
282
- // negative | 0:0 | 0:1 | 1:0 | 1:1
283
- // -------- | ------- | ------- | ------- | --------
284
- // 0 | TEST | TEST | SKIP | X
285
- // 1 | TESTIF | SKIP | TEST | X
286
- // - SKIP: always skip
287
- // - TEST: always test
288
- // - TESTIF: only test if checkUnignored
289
- // - X: that never happen
290
- // @param {boolean} whether should check if the path is unignored,
291
- // setting `checkUnignored` to `false` could reduce additional
292
- // path matching.
293
- // @returns {TestResult} true if a file is ignored
294
- _testOne(path, checkUnignored) {
295
- let ignored = false;
296
- let unignored = false;
297
- this._rules.forEach((rule) => {
298
- const { negative } = rule;
299
- if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
253
+ _initCache() {
254
+ this._ignoreCache = /* @__PURE__ */ Object.create(null);
255
+ this._testCache = /* @__PURE__ */ Object.create(null);
256
+ }
257
+ _addPattern(pattern) {
258
+ if (pattern && pattern[KEY_IGNORE]) {
259
+ this._rules = this._rules.concat(pattern._rules);
260
+ this._added = true;
300
261
  return;
301
262
  }
302
- const matched = rule.regex.test(path);
303
- if (matched) {
304
- ignored = !negative;
305
- unignored = negative;
263
+ if (checkPattern(pattern)) {
264
+ const rule = createRule(pattern, this._ignoreCase);
265
+ this._added = true;
266
+ this._rules.push(rule);
306
267
  }
307
- });
308
- return {
309
- ignored,
310
- unignored
311
- };
312
- }
313
- // @returns {TestResult}
314
- _test(originalPath, cache, checkUnignored, slices) {
315
- const path = originalPath && checkPath.convert(originalPath);
316
- checkPath(
317
- path,
318
- originalPath,
319
- this._allowRelativePaths ? RETURN_FALSE : throwError
320
- );
321
- return this._t(path, cache, checkUnignored, slices);
322
- }
323
- _t(path, cache, checkUnignored, slices) {
324
- if (path in cache) {
325
- return cache[path];
326
268
  }
327
- if (!slices) {
328
- slices = path.split(SLASH);
269
+ // @param {Array<string> | string | Ignore} pattern
270
+ add(pattern) {
271
+ this._added = false;
272
+ makeArray(
273
+ isString(pattern) ? splitPattern(pattern) : pattern
274
+ ).forEach(this._addPattern, this);
275
+ if (this._added) {
276
+ this._initCache();
277
+ }
278
+ return this;
329
279
  }
330
- slices.pop();
331
- if (!slices.length) {
332
- return cache[path] = this._testOne(path, checkUnignored);
280
+ // legacy
281
+ addPattern(pattern) {
282
+ return this.add(pattern);
283
+ }
284
+ // | ignored : unignored
285
+ // negative | 0:0 | 0:1 | 1:0 | 1:1
286
+ // -------- | ------- | ------- | ------- | --------
287
+ // 0 | TEST | TEST | SKIP | X
288
+ // 1 | TESTIF | SKIP | TEST | X
289
+ // - SKIP: always skip
290
+ // - TEST: always test
291
+ // - TESTIF: only test if checkUnignored
292
+ // - X: that never happen
293
+ // @param {boolean} whether should check if the path is unignored,
294
+ // setting `checkUnignored` to `false` could reduce additional
295
+ // path matching.
296
+ // @returns {TestResult} true if a file is ignored
297
+ _testOne(path, checkUnignored) {
298
+ let ignored = false;
299
+ let unignored = false;
300
+ this._rules.forEach((rule) => {
301
+ const { negative } = rule;
302
+ if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
303
+ return;
304
+ }
305
+ const matched = rule.regex.test(path);
306
+ if (matched) {
307
+ ignored = !negative;
308
+ unignored = negative;
309
+ }
310
+ });
311
+ return {
312
+ ignored,
313
+ unignored
314
+ };
315
+ }
316
+ // @returns {TestResult}
317
+ _test(originalPath, cache, checkUnignored, slices) {
318
+ const path = originalPath && checkPath.convert(originalPath);
319
+ checkPath(
320
+ path,
321
+ originalPath,
322
+ this._allowRelativePaths ? RETURN_FALSE : throwError
323
+ );
324
+ return this._t(path, cache, checkUnignored, slices);
325
+ }
326
+ _t(path, cache, checkUnignored, slices) {
327
+ if (path in cache) {
328
+ return cache[path];
329
+ }
330
+ if (!slices) {
331
+ slices = path.split(SLASH);
332
+ }
333
+ slices.pop();
334
+ if (!slices.length) {
335
+ return cache[path] = this._testOne(path, checkUnignored);
336
+ }
337
+ const parent = this._t(
338
+ slices.join(SLASH) + SLASH,
339
+ cache,
340
+ checkUnignored,
341
+ slices
342
+ );
343
+ return cache[path] = parent.ignored ? parent : this._testOne(path, checkUnignored);
344
+ }
345
+ ignores(path) {
346
+ return this._test(path, this._ignoreCache, false).ignored;
347
+ }
348
+ createFilter() {
349
+ return (path) => !this.ignores(path);
350
+ }
351
+ filter(paths) {
352
+ return makeArray(paths).filter(this.createFilter());
353
+ }
354
+ // @returns {TestResult}
355
+ test(path) {
356
+ return this._test(path, this._testCache, true);
333
357
  }
334
- const parent = this._t(
335
- slices.join(SLASH) + SLASH,
336
- cache,
337
- checkUnignored,
338
- slices
339
- );
340
- return cache[path] = parent.ignored ? parent : this._testOne(path, checkUnignored);
341
- }
342
- ignores(path) {
343
- return this._test(path, this._ignoreCache, false).ignored;
344
- }
345
- createFilter() {
346
- return (path) => !this.ignores(path);
347
- }
348
- filter(paths) {
349
- return makeArray(paths).filter(this.createFilter());
350
358
  }
351
- // @returns {TestResult}
352
- test(path) {
353
- return this._test(path, this._testCache, true);
359
+ const factory = (options) => new Ignore(options);
360
+ const isPathValid = (path) => checkPath(path && checkPath.convert(path), path, RETURN_FALSE);
361
+ factory.isPathValid = isPathValid;
362
+ factory.default = factory;
363
+ ignore = factory;
364
+ if (
365
+ // Detect `process` so that it can run in browsers.
366
+ typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
367
+ ) {
368
+ const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
369
+ checkPath.convert = makePosix;
370
+ const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
371
+ checkPath.isNotRelative = (path) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path) || isNotRelative(path);
354
372
  }
373
+ return ignore;
355
374
  }
356
- const factory = (options) => new Ignore(options);
357
- const isPathValid = (path) => checkPath(path && checkPath.convert(path), path, RETURN_FALSE);
358
- factory.isPathValid = isPathValid;
359
- factory.default = factory;
360
- var ignore = factory;
361
- if (
362
- // Detect `process` so that it can run in browsers.
363
- typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
364
- ) {
365
- const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
366
- checkPath.convert = makePosix;
367
- const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
368
- checkPath.isNotRelative = (path) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path) || isNotRelative(path);
369
- }
370
- const gitIgnore = /* @__PURE__ */ getDefaultExportFromCjs(ignore);
371
375
 
372
- export { gitIgnore as default };
376
+ export { requireIgnore as __require };