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