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