@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.
- package/CHANGELOG.md +20 -0
- package/build/esm/_virtual/index.mjs +6 -2
- package/build/esm/_virtual/index10.mjs +3 -0
- package/build/esm/_virtual/index11.mjs +3 -0
- package/build/esm/_virtual/index12.mjs +3 -0
- package/build/esm/_virtual/index13.mjs +3 -0
- package/build/esm/_virtual/index2.mjs +2 -2
- package/build/esm/_virtual/index3.mjs +6 -2
- package/build/esm/_virtual/index4.mjs +6 -2
- package/build/esm/_virtual/index5.mjs +6 -2
- package/build/esm/_virtual/index6.mjs +6 -2
- package/build/esm/_virtual/index8.mjs +3 -0
- package/build/esm/_virtual/index9.mjs +3 -0
- package/build/esm/_virtual/minimatch.mjs +12 -0
- package/build/esm/app.mjs +2 -2
- package/build/esm/cli.mjs +1 -1
- package/build/esm/module.mjs +2 -2
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.mjs +29 -21
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.mjs +24 -18
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs +35 -32
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.mjs +103 -101
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.mjs +19 -13
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.mjs +63 -61
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.mjs +33 -27
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.mjs +25 -19
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.mjs +15 -10
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.mjs +27 -19
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.mjs +35 -32
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.mjs +39 -33
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.mjs +26 -20
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.mjs +24 -17
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.mjs +44 -42
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.mjs +37 -30
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.mjs +41 -34
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.mjs +22 -15
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.mjs +103 -98
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.mjs +35 -29
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.mjs +19 -12
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.mjs +64 -59
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.mjs +34 -27
- package/build/esm/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.mjs +116 -112
- package/build/esm/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.mjs +54 -47
- package/build/esm/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.mjs +144 -137
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.mjs +173 -166
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.mjs +57 -51
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.mjs +102 -94
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.mjs +89 -83
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.mjs +312 -305
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.mjs +30 -24
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.mjs +116 -108
- package/build/esm/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.mjs +1 -3
- package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +63 -61
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.mjs +75 -77
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +28 -22
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.mjs +83 -78
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.mjs +31 -25
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.mjs +66 -60
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +66 -59
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.mjs +23 -16
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.mjs +55 -48
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.mjs +40 -33
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.mjs +59 -55
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.mjs +38 -32
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.mjs +31 -25
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.mjs +33 -26
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.mjs +43 -38
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.mjs +41 -35
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.mjs +60 -55
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.mjs +48 -43
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.mjs +65 -57
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.mjs +26 -20
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.mjs +14 -8
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.mjs +25 -19
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.mjs +33 -34
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +39 -33
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.mjs +170 -164
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.mjs +24 -18
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.mjs +18 -12
- package/build/esm/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.mjs +227 -221
- package/build/esm/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.mjs +207 -200
- package/build/esm/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.mjs +1 -6
- package/build/esm/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.mjs +51 -44
- package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.mjs +2 -2
- package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.mjs +3 -3
- package/build/esm/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.mjs +443 -439
- package/build/esm/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.mjs +18 -11
- package/build/esm/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.mjs +116 -109
- package/build/esm/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.mjs +17 -10
- package/build/esm/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.mjs +117 -110
- package/build/esm/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.mjs +457 -451
- package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.mjs +14 -7
- package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.mjs +770 -770
- package/build/esm/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.mjs +40 -34
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.mjs +10 -3
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.mjs +227 -220
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.mjs +941 -935
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.mjs +331 -325
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.mjs +303 -297
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.mjs +65 -57
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.mjs +605 -605
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +378 -394
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +15 -15
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.mjs +281 -294
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +155 -155
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.mjs +17 -12
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.mjs +14 -7
- package/build/esm/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.mjs +29 -22
- package/build/esm/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.mjs +49 -42
- package/build/esm/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.mjs +231 -224
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.mjs +3 -3
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +2 -2
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +2 -2
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +1 -1
- package/build/esm/package.mjs +2 -2
- package/build/esm/packages/cli-kit/build/esnext/prompt.esnext.mjs +1 -1
- package/build/esm/server.mjs +5 -9
- package/build/esm/shared/package-manager.mjs +1 -1
- package/build/esm/shared/prompts.mjs +1 -1
- package/build/esnext/_virtual/index.esnext +6 -2
- package/build/esnext/_virtual/index10.esnext +3 -0
- package/build/esnext/_virtual/index11.esnext +3 -0
- package/build/esnext/_virtual/index12.esnext +3 -0
- package/build/esnext/_virtual/index13.esnext +3 -0
- package/build/esnext/_virtual/index2.esnext +2 -2
- package/build/esnext/_virtual/index3.esnext +6 -2
- package/build/esnext/_virtual/index4.esnext +6 -2
- package/build/esnext/_virtual/index5.esnext +6 -2
- package/build/esnext/_virtual/index6.esnext +6 -2
- package/build/esnext/_virtual/index8.esnext +3 -0
- package/build/esnext/_virtual/index9.esnext +3 -0
- package/build/esnext/_virtual/minimatch.esnext +12 -0
- package/build/esnext/app.esnext +2 -2
- package/build/esnext/module.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.esnext +27 -19
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.esnext +19 -13
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.esnext +33 -30
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.esnext +99 -97
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.esnext +14 -8
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.esnext +59 -57
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.esnext +31 -25
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.esnext +13 -8
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.esnext +25 -17
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.esnext +33 -30
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +38 -32
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +25 -19
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +23 -16
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.esnext +42 -40
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +36 -29
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.esnext +40 -33
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +21 -14
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.esnext +98 -93
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.esnext +30 -24
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.esnext +17 -10
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.esnext +59 -54
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +33 -26
- package/build/esnext/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.esnext +132 -128
- package/build/esnext/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.esnext +54 -47
- package/build/esnext/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.esnext +137 -130
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.esnext +66 -59
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.esnext +53 -47
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.esnext +102 -95
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.esnext +89 -83
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.esnext +217 -210
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.esnext +30 -24
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.esnext +75 -67
- package/build/esnext/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.esnext +1 -3
- package/build/esnext/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.esnext +63 -61
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.esnext +68 -70
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +17 -11
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.esnext +81 -76
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.esnext +29 -23
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.esnext +61 -55
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +61 -54
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.esnext +21 -14
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.esnext +49 -42
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.esnext +31 -24
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.esnext +57 -53
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.esnext +34 -28
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.esnext +29 -23
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.esnext +29 -22
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.esnext +40 -35
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.esnext +39 -33
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.esnext +56 -51
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.esnext +46 -41
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.esnext +59 -51
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.esnext +24 -18
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.esnext +12 -6
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.esnext +31 -32
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +32 -26
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.esnext +135 -129
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.esnext +16 -10
- package/build/esnext/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.esnext +220 -215
- package/build/esnext/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.esnext +193 -186
- package/build/esnext/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.esnext +1 -6
- package/build/esnext/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.esnext +31 -24
- package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.esnext +3 -3
- package/build/esnext/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.esnext +357 -353
- package/build/esnext/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.esnext +18 -11
- package/build/esnext/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.esnext +111 -104
- package/build/esnext/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.esnext +17 -10
- package/build/esnext/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.esnext +103 -96
- package/build/esnext/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.esnext +147 -141
- package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.esnext +10 -3
- package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.esnext +495 -491
- package/build/esnext/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.esnext +38 -32
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.esnext +10 -3
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.esnext +198 -191
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.esnext +683 -677
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.esnext +137 -131
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.esnext +279 -273
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.esnext +65 -57
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +9 -9
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +20 -20
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +15 -15
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +64 -64
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +19 -19
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.esnext +16 -11
- package/build/esnext/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.esnext +12 -5
- package/build/esnext/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.esnext +29 -22
- package/build/esnext/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.esnext +47 -40
- package/build/esnext/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.esnext +196 -189
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-props.esnext +1 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/lexer.esnext +5 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/parser.esnext +4 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.esnext +3 -3
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +1 -1
- package/build/esnext/package.esnext +2 -2
- package/build/esnext/packages/cli-kit/build/esnext/prompt.esnext.esnext +1 -1
- package/build/esnext/server.esnext +5 -9
- package/build/esnext/shared/package-manager.esnext +1 -1
- package/build/esnext/shared/prompts.esnext +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/source/shared/prompts.ts +1 -1
- package/templates/app-basic/App.tsx +3 -4
- package/templates/app-basic/browser.tsx +5 -1
- package/templates/app-basic/foundation/html/Head.test.tsx +42 -0
- package/templates/app-basic/foundation/html/Head.tsx +34 -0
- package/templates/app-basic/foundation/html.ts +1 -1
- package/templates/app-basic/package.json +4 -4
- package/templates/app-basic/server.tsx +89 -3
- package/templates/app-empty/package.json +3 -3
- package/templates/app-empty/server.tsx +4 -3
- package/templates/app-graphql/App.tsx +3 -4
- package/templates/app-graphql/browser.tsx +5 -1
- package/templates/app-graphql/foundation/html/Head.test.tsx +42 -0
- package/templates/app-graphql/foundation/html/Head.tsx +34 -0
- package/templates/app-graphql/foundation/html.ts +1 -1
- package/templates/app-graphql/package.json +4 -4
- package/templates/app-graphql/server.tsx +93 -9
- package/templates/app-trpc/App.tsx +3 -4
- package/templates/app-trpc/browser.tsx +5 -1
- package/templates/app-trpc/foundation/html/Head.test.tsx +42 -0
- package/templates/app-trpc/foundation/html/Head.tsx +34 -0
- package/templates/app-trpc/foundation/html.ts +1 -1
- package/templates/app-trpc/package.json +4 -4
- package/templates/app-trpc/server.tsx +93 -8
- package/templates/package/package.json +3 -3
- package/templates/workspace/package.json +4 -4
- package/templates/app-basic/foundation/html/HTML.test.tsx +0 -46
- package/templates/app-basic/foundation/html/HTML.tsx +0 -159
- package/templates/app-graphql/foundation/html/HTML.test.tsx +0 -46
- package/templates/app-graphql/foundation/html/HTML.tsx +0 -159
- package/templates/app-trpc/foundation/html/HTML.test.tsx +0 -46
- package/templates/app-trpc/foundation/html/HTML.tsx +0 -159
package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.mjs
CHANGED
|
@@ -1,359 +1,365 @@
|
|
|
1
1
|
import path__default from 'node:path';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import './utils.mjs';
|
|
5
|
-
import {
|
|
6
|
-
import { __exports as utils$1 } from '../../../../../../_virtual/utils.mjs';
|
|
2
|
+
import { __require as requireScan } from './scan.mjs';
|
|
3
|
+
import { __require as requireParse } from './parse.mjs';
|
|
4
|
+
import { __require as requireUtils } from './utils.mjs';
|
|
5
|
+
import { __require as requireConstants } from './constants.mjs';
|
|
7
6
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const
|
|
7
|
+
var picomatch_1;
|
|
8
|
+
var hasRequiredPicomatch;
|
|
9
|
+
function requirePicomatch() {
|
|
10
|
+
if (hasRequiredPicomatch) return picomatch_1;
|
|
11
|
+
hasRequiredPicomatch = 1;
|
|
12
|
+
const path = path__default;
|
|
13
|
+
const scan = requireScan();
|
|
14
|
+
const parse = requireParse();
|
|
15
|
+
const utils = requireUtils();
|
|
16
|
+
const constants = requireConstants();
|
|
17
|
+
const isObject = val => val && typeof val === 'object' && !Array.isArray(val);
|
|
14
18
|
|
|
15
|
-
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Creates a matcher function from one or more glob patterns. The
|
|
21
|
+
* returned function takes a string to match as its first argument,
|
|
22
|
+
* and returns true if the string is a match. The returned matcher
|
|
23
|
+
* function also takes a boolean as the second argument that, when true,
|
|
24
|
+
* returns an object with additional information.
|
|
25
|
+
*
|
|
26
|
+
* ```js
|
|
27
|
+
* const picomatch = require('picomatch');
|
|
28
|
+
* // picomatch(glob[, options]);
|
|
29
|
+
*
|
|
30
|
+
* const isMatch = picomatch('*.!(*a)');
|
|
31
|
+
* console.log(isMatch('a.a')); //=> false
|
|
32
|
+
* console.log(isMatch('a.b')); //=> true
|
|
33
|
+
* ```
|
|
34
|
+
* @name picomatch
|
|
35
|
+
* @param {String|Array} `globs` One or more glob patterns.
|
|
36
|
+
* @param {Object=} `options`
|
|
37
|
+
* @return {Function=} Returns a matcher function.
|
|
38
|
+
* @api public
|
|
39
|
+
*/
|
|
36
40
|
|
|
37
|
-
const picomatch = (glob, options, returnState = false) => {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
const isState = isObject(glob) && glob.tokens && glob.input;
|
|
50
|
-
if (glob === '' || typeof glob !== 'string' && !isState) {
|
|
51
|
-
throw new TypeError('Expected pattern to be a non-empty string');
|
|
52
|
-
}
|
|
53
|
-
const opts = options || {};
|
|
54
|
-
const posix = utils.isWindows(options);
|
|
55
|
-
const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
|
|
56
|
-
const state = regex.state;
|
|
57
|
-
delete regex.state;
|
|
58
|
-
let isIgnored = () => false;
|
|
59
|
-
if (opts.ignore) {
|
|
60
|
-
const ignoreOpts = {
|
|
61
|
-
...options,
|
|
62
|
-
ignore: null,
|
|
63
|
-
onMatch: null,
|
|
64
|
-
onResult: null
|
|
65
|
-
};
|
|
66
|
-
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
67
|
-
}
|
|
68
|
-
const matcher = (input, returnObject = false) => {
|
|
69
|
-
const {
|
|
70
|
-
isMatch,
|
|
71
|
-
match,
|
|
72
|
-
output
|
|
73
|
-
} = picomatch.test(input, regex, options, {
|
|
74
|
-
glob,
|
|
75
|
-
posix
|
|
76
|
-
});
|
|
77
|
-
const result = {
|
|
78
|
-
glob,
|
|
79
|
-
state,
|
|
80
|
-
regex,
|
|
81
|
-
posix,
|
|
82
|
-
input,
|
|
83
|
-
output,
|
|
84
|
-
match,
|
|
85
|
-
isMatch
|
|
86
|
-
};
|
|
87
|
-
if (typeof opts.onResult === 'function') {
|
|
88
|
-
opts.onResult(result);
|
|
41
|
+
const picomatch = (glob, options, returnState = false) => {
|
|
42
|
+
if (Array.isArray(glob)) {
|
|
43
|
+
const fns = glob.map(input => picomatch(input, options, returnState));
|
|
44
|
+
const arrayMatcher = str => {
|
|
45
|
+
for (const isMatch of fns) {
|
|
46
|
+
const state = isMatch(str);
|
|
47
|
+
if (state) return state;
|
|
48
|
+
}
|
|
49
|
+
return false;
|
|
50
|
+
};
|
|
51
|
+
return arrayMatcher;
|
|
89
52
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
53
|
+
const isState = isObject(glob) && glob.tokens && glob.input;
|
|
54
|
+
if (glob === '' || typeof glob !== 'string' && !isState) {
|
|
55
|
+
throw new TypeError('Expected pattern to be a non-empty string');
|
|
93
56
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
57
|
+
const opts = options || {};
|
|
58
|
+
const posix = utils.isWindows(options);
|
|
59
|
+
const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
|
|
60
|
+
const state = regex.state;
|
|
61
|
+
delete regex.state;
|
|
62
|
+
let isIgnored = () => false;
|
|
63
|
+
if (opts.ignore) {
|
|
64
|
+
const ignoreOpts = {
|
|
65
|
+
...options,
|
|
66
|
+
ignore: null,
|
|
67
|
+
onMatch: null,
|
|
68
|
+
onResult: null
|
|
69
|
+
};
|
|
70
|
+
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
100
71
|
}
|
|
101
|
-
|
|
102
|
-
|
|
72
|
+
const matcher = (input, returnObject = false) => {
|
|
73
|
+
const {
|
|
74
|
+
isMatch,
|
|
75
|
+
match,
|
|
76
|
+
output
|
|
77
|
+
} = picomatch.test(input, regex, options, {
|
|
78
|
+
glob,
|
|
79
|
+
posix
|
|
80
|
+
});
|
|
81
|
+
const result = {
|
|
82
|
+
glob,
|
|
83
|
+
state,
|
|
84
|
+
regex,
|
|
85
|
+
posix,
|
|
86
|
+
input,
|
|
87
|
+
output,
|
|
88
|
+
match,
|
|
89
|
+
isMatch
|
|
90
|
+
};
|
|
91
|
+
if (typeof opts.onResult === 'function') {
|
|
92
|
+
opts.onResult(result);
|
|
93
|
+
}
|
|
94
|
+
if (isMatch === false) {
|
|
95
|
+
result.isMatch = false;
|
|
96
|
+
return returnObject ? result : false;
|
|
97
|
+
}
|
|
98
|
+
if (isIgnored(input)) {
|
|
99
|
+
if (typeof opts.onIgnore === 'function') {
|
|
100
|
+
opts.onIgnore(result);
|
|
101
|
+
}
|
|
102
|
+
result.isMatch = false;
|
|
103
|
+
return returnObject ? result : false;
|
|
104
|
+
}
|
|
105
|
+
if (typeof opts.onMatch === 'function') {
|
|
106
|
+
opts.onMatch(result);
|
|
107
|
+
}
|
|
108
|
+
return returnObject ? result : true;
|
|
109
|
+
};
|
|
110
|
+
if (returnState) {
|
|
111
|
+
matcher.state = state;
|
|
103
112
|
}
|
|
104
|
-
return
|
|
113
|
+
return matcher;
|
|
105
114
|
};
|
|
106
|
-
if (returnState) {
|
|
107
|
-
matcher.state = state;
|
|
108
|
-
}
|
|
109
|
-
return matcher;
|
|
110
|
-
};
|
|
111
115
|
|
|
112
|
-
/**
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
116
|
+
/**
|
|
117
|
+
* Test `input` with the given `regex`. This is used by the main
|
|
118
|
+
* `picomatch()` function to test the input string.
|
|
119
|
+
*
|
|
120
|
+
* ```js
|
|
121
|
+
* const picomatch = require('picomatch');
|
|
122
|
+
* // picomatch.test(input, regex[, options]);
|
|
123
|
+
*
|
|
124
|
+
* console.log(picomatch.test('foo/bar', /^(?:([^/]*?)\/([^/]*?))$/));
|
|
125
|
+
* // { isMatch: true, match: [ 'foo/', 'foo', 'bar' ], output: 'foo/bar' }
|
|
126
|
+
* ```
|
|
127
|
+
* @param {String} `input` String to test.
|
|
128
|
+
* @param {RegExp} `regex`
|
|
129
|
+
* @return {Object} Returns an object with matching info.
|
|
130
|
+
* @api public
|
|
131
|
+
*/
|
|
128
132
|
|
|
129
|
-
picomatch.test = (input, regex, options, {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
} = {}) => {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
133
|
+
picomatch.test = (input, regex, options, {
|
|
134
|
+
glob,
|
|
135
|
+
posix
|
|
136
|
+
} = {}) => {
|
|
137
|
+
if (typeof input !== 'string') {
|
|
138
|
+
throw new TypeError('Expected input to be a string');
|
|
139
|
+
}
|
|
140
|
+
if (input === '') {
|
|
141
|
+
return {
|
|
142
|
+
isMatch: false,
|
|
143
|
+
output: ''
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
const opts = options || {};
|
|
147
|
+
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
148
|
+
let match = input === glob;
|
|
149
|
+
let output = match && format ? format(input) : input;
|
|
150
|
+
if (match === false) {
|
|
151
|
+
output = format ? format(input) : input;
|
|
152
|
+
match = output === glob;
|
|
153
|
+
}
|
|
154
|
+
if (match === false || opts.capture === true) {
|
|
155
|
+
if (opts.matchBase === true || opts.basename === true) {
|
|
156
|
+
match = picomatch.matchBase(input, regex, options, posix);
|
|
157
|
+
} else {
|
|
158
|
+
match = regex.exec(output);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
137
161
|
return {
|
|
138
|
-
isMatch:
|
|
139
|
-
|
|
162
|
+
isMatch: Boolean(match),
|
|
163
|
+
match,
|
|
164
|
+
output
|
|
140
165
|
};
|
|
141
|
-
}
|
|
142
|
-
const opts = options || {};
|
|
143
|
-
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
144
|
-
let match = input === glob;
|
|
145
|
-
let output = match && format ? format(input) : input;
|
|
146
|
-
if (match === false) {
|
|
147
|
-
output = format ? format(input) : input;
|
|
148
|
-
match = output === glob;
|
|
149
|
-
}
|
|
150
|
-
if (match === false || opts.capture === true) {
|
|
151
|
-
if (opts.matchBase === true || opts.basename === true) {
|
|
152
|
-
match = picomatch.matchBase(input, regex, options, posix);
|
|
153
|
-
} else {
|
|
154
|
-
match = regex.exec(output);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
return {
|
|
158
|
-
isMatch: Boolean(match),
|
|
159
|
-
match,
|
|
160
|
-
output
|
|
161
166
|
};
|
|
162
|
-
};
|
|
163
167
|
|
|
164
|
-
/**
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
168
|
+
/**
|
|
169
|
+
* Match the basename of a filepath.
|
|
170
|
+
*
|
|
171
|
+
* ```js
|
|
172
|
+
* const picomatch = require('picomatch');
|
|
173
|
+
* // picomatch.matchBase(input, glob[, options]);
|
|
174
|
+
* console.log(picomatch.matchBase('foo/bar.js', '*.js'); // true
|
|
175
|
+
* ```
|
|
176
|
+
* @param {String} `input` String to test.
|
|
177
|
+
* @param {RegExp|String} `glob` Glob pattern or regex created by [.makeRe](#makeRe).
|
|
178
|
+
* @return {Boolean}
|
|
179
|
+
* @api public
|
|
180
|
+
*/
|
|
177
181
|
|
|
178
|
-
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
};
|
|
182
|
+
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
183
|
+
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
184
|
+
return regex.test(path.basename(input));
|
|
185
|
+
};
|
|
182
186
|
|
|
183
|
-
/**
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
187
|
+
/**
|
|
188
|
+
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
189
|
+
*
|
|
190
|
+
* ```js
|
|
191
|
+
* const picomatch = require('picomatch');
|
|
192
|
+
* // picomatch.isMatch(string, patterns[, options]);
|
|
193
|
+
*
|
|
194
|
+
* console.log(picomatch.isMatch('a.a', ['b.*', '*.a'])); //=> true
|
|
195
|
+
* console.log(picomatch.isMatch('a.a', 'b.*')); //=> false
|
|
196
|
+
* ```
|
|
197
|
+
* @param {String|Array} str The string to test.
|
|
198
|
+
* @param {String|Array} patterns One or more glob patterns to use for matching.
|
|
199
|
+
* @param {Object} [options] See available [options](#options).
|
|
200
|
+
* @return {Boolean} Returns true if any patterns match `str`
|
|
201
|
+
* @api public
|
|
202
|
+
*/
|
|
199
203
|
|
|
200
|
-
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
204
|
+
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
201
205
|
|
|
202
|
-
/**
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
206
|
+
/**
|
|
207
|
+
* Parse a glob pattern to create the source string for a regular
|
|
208
|
+
* expression.
|
|
209
|
+
*
|
|
210
|
+
* ```js
|
|
211
|
+
* const picomatch = require('picomatch');
|
|
212
|
+
* const result = picomatch.parse(pattern[, options]);
|
|
213
|
+
* ```
|
|
214
|
+
* @param {String} `pattern`
|
|
215
|
+
* @param {Object} `options`
|
|
216
|
+
* @return {Object} Returns an object with useful properties and output to be used as a regex source string.
|
|
217
|
+
* @api public
|
|
218
|
+
*/
|
|
215
219
|
|
|
216
|
-
picomatch.parse = (pattern, options) => {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
};
|
|
220
|
+
picomatch.parse = (pattern, options) => {
|
|
221
|
+
if (Array.isArray(pattern)) return pattern.map(p => picomatch.parse(p, options));
|
|
222
|
+
return parse(pattern, {
|
|
223
|
+
...options,
|
|
224
|
+
fastpaths: false
|
|
225
|
+
});
|
|
226
|
+
};
|
|
223
227
|
|
|
224
|
-
/**
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
228
|
+
/**
|
|
229
|
+
* Scan a glob pattern to separate the pattern into segments.
|
|
230
|
+
*
|
|
231
|
+
* ```js
|
|
232
|
+
* const picomatch = require('picomatch');
|
|
233
|
+
* // picomatch.scan(input[, options]);
|
|
234
|
+
*
|
|
235
|
+
* const result = picomatch.scan('!./foo/*.js');
|
|
236
|
+
* console.log(result);
|
|
237
|
+
* { prefix: '!./',
|
|
238
|
+
* input: '!./foo/*.js',
|
|
239
|
+
* start: 3,
|
|
240
|
+
* base: 'foo',
|
|
241
|
+
* glob: '*.js',
|
|
242
|
+
* isBrace: false,
|
|
243
|
+
* isBracket: false,
|
|
244
|
+
* isGlob: true,
|
|
245
|
+
* isExtglob: false,
|
|
246
|
+
* isGlobstar: false,
|
|
247
|
+
* negated: true }
|
|
248
|
+
* ```
|
|
249
|
+
* @param {String} `input` Glob pattern to scan.
|
|
250
|
+
* @param {Object} `options`
|
|
251
|
+
* @return {Object} Returns an object with
|
|
252
|
+
* @api public
|
|
253
|
+
*/
|
|
250
254
|
|
|
251
|
-
picomatch.scan = (input, options) => scan(input, options);
|
|
255
|
+
picomatch.scan = (input, options) => scan(input, options);
|
|
252
256
|
|
|
253
|
-
/**
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
257
|
+
/**
|
|
258
|
+
* Compile a regular expression from the `state` object returned by the
|
|
259
|
+
* [parse()](#parse) method.
|
|
260
|
+
*
|
|
261
|
+
* @param {Object} `state`
|
|
262
|
+
* @param {Object} `options`
|
|
263
|
+
* @param {Boolean} `returnOutput` Intended for implementors, this argument allows you to return the raw output from the parser.
|
|
264
|
+
* @param {Boolean} `returnState` Adds the state to a `state` property on the returned regex. Useful for implementors and debugging.
|
|
265
|
+
* @return {RegExp}
|
|
266
|
+
* @api public
|
|
267
|
+
*/
|
|
264
268
|
|
|
265
|
-
picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
};
|
|
269
|
+
picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
270
|
+
if (returnOutput === true) {
|
|
271
|
+
return state.output;
|
|
272
|
+
}
|
|
273
|
+
const opts = options || {};
|
|
274
|
+
const prepend = opts.contains ? '' : '^';
|
|
275
|
+
const append = opts.contains ? '' : '$';
|
|
276
|
+
let source = `${prepend}(?:${state.output})${append}`;
|
|
277
|
+
if (state && state.negated === true) {
|
|
278
|
+
source = `^(?!${source}).*$`;
|
|
279
|
+
}
|
|
280
|
+
const regex = picomatch.toRegex(source, options);
|
|
281
|
+
if (returnState === true) {
|
|
282
|
+
regex.state = state;
|
|
283
|
+
}
|
|
284
|
+
return regex;
|
|
285
|
+
};
|
|
282
286
|
|
|
283
|
-
/**
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
287
|
+
/**
|
|
288
|
+
* Create a regular expression from a parsed glob pattern.
|
|
289
|
+
*
|
|
290
|
+
* ```js
|
|
291
|
+
* const picomatch = require('picomatch');
|
|
292
|
+
* const state = picomatch.parse('*.js');
|
|
293
|
+
* // picomatch.compileRe(state[, options]);
|
|
294
|
+
*
|
|
295
|
+
* console.log(picomatch.compileRe(state));
|
|
296
|
+
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
297
|
+
* ```
|
|
298
|
+
* @param {String} `state` The object returned from the `.parse` method.
|
|
299
|
+
* @param {Object} `options`
|
|
300
|
+
* @param {Boolean} `returnOutput` Implementors may use this argument to return the compiled output, instead of a regular expression. This is not exposed on the options to prevent end-users from mutating the result.
|
|
301
|
+
* @param {Boolean} `returnState` Implementors may use this argument to return the state from the parsed glob with the returned regular expression.
|
|
302
|
+
* @return {RegExp} Returns a regex created from the given pattern.
|
|
303
|
+
* @api public
|
|
304
|
+
*/
|
|
301
305
|
|
|
302
|
-
picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
306
|
+
picomatch.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
|
|
307
|
+
if (!input || typeof input !== 'string') {
|
|
308
|
+
throw new TypeError('Expected a non-empty string');
|
|
309
|
+
}
|
|
310
|
+
let parsed = {
|
|
311
|
+
negated: false,
|
|
312
|
+
fastpaths: true
|
|
313
|
+
};
|
|
314
|
+
if (options.fastpaths !== false && (input[0] === '.' || input[0] === '*')) {
|
|
315
|
+
parsed.output = parse.fastpaths(input, options);
|
|
316
|
+
}
|
|
317
|
+
if (!parsed.output) {
|
|
318
|
+
parsed = parse(input, options);
|
|
319
|
+
}
|
|
320
|
+
return picomatch.compileRe(parsed, options, returnOutput, returnState);
|
|
309
321
|
};
|
|
310
|
-
if (options.fastpaths !== false && (input[0] === '.' || input[0] === '*')) {
|
|
311
|
-
parsed.output = parse.fastpaths(input, options);
|
|
312
|
-
}
|
|
313
|
-
if (!parsed.output) {
|
|
314
|
-
parsed = parse(input, options);
|
|
315
|
-
}
|
|
316
|
-
return picomatch.compileRe(parsed, options, returnOutput, returnState);
|
|
317
|
-
};
|
|
318
322
|
|
|
319
|
-
/**
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
323
|
+
/**
|
|
324
|
+
* Create a regular expression from the given regex source string.
|
|
325
|
+
*
|
|
326
|
+
* ```js
|
|
327
|
+
* const picomatch = require('picomatch');
|
|
328
|
+
* // picomatch.toRegex(source[, options]);
|
|
329
|
+
*
|
|
330
|
+
* const { output } = picomatch.parse('*.js');
|
|
331
|
+
* console.log(picomatch.toRegex(output));
|
|
332
|
+
* //=> /^(?:(?!\.)(?=.)[^/]*?\.js)$/
|
|
333
|
+
* ```
|
|
334
|
+
* @param {String} `source` Regular expression source string.
|
|
335
|
+
* @param {Object} `options`
|
|
336
|
+
* @return {RegExp}
|
|
337
|
+
* @api public
|
|
338
|
+
*/
|
|
335
339
|
|
|
336
|
-
picomatch.toRegex = (source, options) => {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
};
|
|
340
|
+
picomatch.toRegex = (source, options) => {
|
|
341
|
+
try {
|
|
342
|
+
const opts = options || {};
|
|
343
|
+
return new RegExp(source, opts.flags || (opts.nocase ? 'i' : ''));
|
|
344
|
+
} catch (err) {
|
|
345
|
+
if (options && options.debug === true) throw err;
|
|
346
|
+
return /$^/;
|
|
347
|
+
}
|
|
348
|
+
};
|
|
345
349
|
|
|
346
|
-
/**
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
+
/**
|
|
351
|
+
* Picomatch constants.
|
|
352
|
+
* @return {Object}
|
|
353
|
+
*/
|
|
350
354
|
|
|
351
|
-
picomatch.constants = constants;
|
|
355
|
+
picomatch.constants = constants;
|
|
352
356
|
|
|
353
|
-
/**
|
|
354
|
-
|
|
355
|
-
|
|
357
|
+
/**
|
|
358
|
+
* Expose "picomatch"
|
|
359
|
+
*/
|
|
356
360
|
|
|
357
|
-
|
|
361
|
+
picomatch_1 = picomatch;
|
|
362
|
+
return picomatch_1;
|
|
363
|
+
}
|
|
358
364
|
|
|
359
|
-
export {
|
|
365
|
+
export { requirePicomatch as __require };
|