@quilted/create 0.2.42 → 0.2.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/build/esm/_virtual/index.mjs +6 -2
- package/build/esm/_virtual/index10.mjs +3 -0
- package/build/esm/_virtual/index11.mjs +3 -0
- package/build/esm/_virtual/index12.mjs +3 -0
- package/build/esm/_virtual/index13.mjs +3 -0
- package/build/esm/_virtual/index2.mjs +2 -2
- package/build/esm/_virtual/index3.mjs +6 -2
- package/build/esm/_virtual/index4.mjs +6 -2
- package/build/esm/_virtual/index5.mjs +6 -2
- package/build/esm/_virtual/index6.mjs +6 -2
- package/build/esm/_virtual/index8.mjs +3 -0
- package/build/esm/_virtual/index9.mjs +3 -0
- package/build/esm/_virtual/minimatch.mjs +12 -0
- package/build/esm/app.mjs +2 -2
- package/build/esm/cli.mjs +1 -1
- package/build/esm/module.mjs +2 -2
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.mjs +29 -21
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.mjs +24 -18
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs +35 -32
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.mjs +103 -101
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.mjs +19 -13
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.mjs +63 -61
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.mjs +33 -27
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.mjs +25 -19
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.mjs +15 -10
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.mjs +27 -19
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.mjs +35 -32
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.mjs +39 -33
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.mjs +26 -20
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.mjs +24 -17
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.mjs +44 -42
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.mjs +37 -30
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.mjs +41 -34
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.mjs +22 -15
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.mjs +103 -98
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.mjs +35 -29
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.mjs +19 -12
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.mjs +64 -59
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.mjs +34 -27
- package/build/esm/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.mjs +116 -112
- package/build/esm/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.mjs +54 -47
- package/build/esm/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.mjs +144 -137
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.mjs +173 -166
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.mjs +57 -51
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.mjs +102 -94
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.mjs +89 -83
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.mjs +312 -305
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.mjs +30 -24
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.mjs +116 -108
- package/build/esm/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.mjs +1 -3
- package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +63 -61
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.mjs +75 -77
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +28 -22
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.mjs +83 -78
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.mjs +31 -25
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.mjs +66 -60
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +66 -59
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.mjs +23 -16
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.mjs +55 -48
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.mjs +40 -33
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.mjs +59 -55
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.mjs +38 -32
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.mjs +31 -25
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.mjs +33 -26
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.mjs +43 -38
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.mjs +41 -35
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.mjs +60 -55
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.mjs +48 -43
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.mjs +65 -57
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.mjs +26 -20
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.mjs +14 -8
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.mjs +25 -19
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.mjs +33 -34
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +39 -33
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.mjs +170 -164
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.mjs +24 -18
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.mjs +18 -12
- package/build/esm/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.mjs +227 -221
- package/build/esm/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.mjs +207 -200
- package/build/esm/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.mjs +1 -6
- package/build/esm/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.mjs +51 -44
- package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.mjs +2 -2
- package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.mjs +3 -3
- package/build/esm/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.mjs +443 -439
- package/build/esm/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.mjs +18 -11
- package/build/esm/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.mjs +116 -109
- package/build/esm/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.mjs +17 -10
- package/build/esm/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.mjs +117 -110
- package/build/esm/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.mjs +457 -451
- package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.mjs +14 -7
- package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.mjs +770 -770
- package/build/esm/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.mjs +40 -34
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.mjs +10 -3
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.mjs +227 -220
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.mjs +941 -935
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.mjs +331 -325
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.mjs +303 -297
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.mjs +65 -57
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.mjs +605 -605
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +378 -394
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +15 -15
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.mjs +281 -294
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +155 -155
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.mjs +17 -12
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.mjs +14 -7
- package/build/esm/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.mjs +29 -22
- package/build/esm/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.mjs +49 -42
- package/build/esm/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.mjs +231 -224
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.mjs +3 -3
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +2 -2
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +2 -2
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +1 -1
- package/build/esm/package.mjs +2 -2
- package/build/esm/packages/cli-kit/build/esnext/prompt.esnext.mjs +1 -1
- package/build/esm/server.mjs +5 -9
- package/build/esm/shared/package-manager.mjs +1 -1
- package/build/esm/shared/prompts.mjs +1 -1
- package/build/esnext/_virtual/index.esnext +6 -2
- package/build/esnext/_virtual/index10.esnext +3 -0
- package/build/esnext/_virtual/index11.esnext +3 -0
- package/build/esnext/_virtual/index12.esnext +3 -0
- package/build/esnext/_virtual/index13.esnext +3 -0
- package/build/esnext/_virtual/index2.esnext +2 -2
- package/build/esnext/_virtual/index3.esnext +6 -2
- package/build/esnext/_virtual/index4.esnext +6 -2
- package/build/esnext/_virtual/index5.esnext +6 -2
- package/build/esnext/_virtual/index6.esnext +6 -2
- package/build/esnext/_virtual/index8.esnext +3 -0
- package/build/esnext/_virtual/index9.esnext +3 -0
- package/build/esnext/_virtual/minimatch.esnext +12 -0
- package/build/esnext/app.esnext +2 -2
- package/build/esnext/module.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.esnext +27 -19
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.esnext +19 -13
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.esnext +33 -30
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.esnext +99 -97
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.esnext +14 -8
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.esnext +59 -57
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.esnext +31 -25
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.esnext +13 -8
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.esnext +25 -17
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.esnext +33 -30
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +38 -32
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +25 -19
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +23 -16
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.esnext +42 -40
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +36 -29
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.esnext +40 -33
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +21 -14
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.esnext +98 -93
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.esnext +30 -24
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.esnext +17 -10
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.esnext +59 -54
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +33 -26
- package/build/esnext/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.esnext +132 -128
- package/build/esnext/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.esnext +54 -47
- package/build/esnext/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.esnext +137 -130
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.esnext +66 -59
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.esnext +53 -47
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.esnext +102 -95
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.esnext +89 -83
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.esnext +217 -210
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.esnext +30 -24
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.esnext +75 -67
- package/build/esnext/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.esnext +1 -3
- package/build/esnext/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.esnext +63 -61
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.esnext +68 -70
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +17 -11
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.esnext +81 -76
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.esnext +29 -23
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.esnext +61 -55
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +61 -54
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.esnext +21 -14
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.esnext +49 -42
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.esnext +31 -24
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.esnext +57 -53
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.esnext +34 -28
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.esnext +29 -23
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.esnext +29 -22
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.esnext +40 -35
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.esnext +39 -33
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.esnext +56 -51
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.esnext +46 -41
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.esnext +59 -51
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.esnext +24 -18
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.esnext +12 -6
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.esnext +31 -32
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +32 -26
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.esnext +135 -129
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.esnext +16 -10
- package/build/esnext/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.esnext +220 -215
- package/build/esnext/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.esnext +193 -186
- package/build/esnext/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.esnext +1 -6
- package/build/esnext/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.esnext +31 -24
- package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.esnext +3 -3
- package/build/esnext/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.esnext +357 -353
- package/build/esnext/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.esnext +18 -11
- package/build/esnext/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.esnext +111 -104
- package/build/esnext/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.esnext +17 -10
- package/build/esnext/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.esnext +103 -96
- package/build/esnext/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.esnext +147 -141
- package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.esnext +10 -3
- package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.esnext +495 -491
- package/build/esnext/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.esnext +38 -32
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.esnext +10 -3
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.esnext +198 -191
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.esnext +683 -677
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.esnext +137 -131
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.esnext +279 -273
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.esnext +65 -57
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +9 -9
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +20 -20
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +15 -15
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +64 -64
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +19 -19
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.esnext +16 -11
- package/build/esnext/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.esnext +12 -5
- package/build/esnext/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.esnext +29 -22
- package/build/esnext/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.esnext +47 -40
- package/build/esnext/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.esnext +196 -189
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-props.esnext +1 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/lexer.esnext +5 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/parser.esnext +4 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.esnext +3 -3
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +1 -1
- package/build/esnext/package.esnext +2 -2
- package/build/esnext/packages/cli-kit/build/esnext/prompt.esnext.esnext +1 -1
- package/build/esnext/server.esnext +5 -9
- package/build/esnext/shared/package-manager.esnext +1 -1
- package/build/esnext/shared/prompts.esnext +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/source/shared/prompts.ts +1 -1
- package/templates/app-basic/App.tsx +3 -4
- package/templates/app-basic/browser.tsx +5 -1
- package/templates/app-basic/foundation/html/Head.test.tsx +42 -0
- package/templates/app-basic/foundation/html/Head.tsx +34 -0
- package/templates/app-basic/foundation/html.ts +1 -1
- package/templates/app-basic/package.json +4 -4
- package/templates/app-basic/server.tsx +89 -3
- package/templates/app-empty/package.json +3 -3
- package/templates/app-empty/server.tsx +4 -3
- package/templates/app-graphql/App.tsx +3 -4
- package/templates/app-graphql/browser.tsx +5 -1
- package/templates/app-graphql/foundation/html/Head.test.tsx +42 -0
- package/templates/app-graphql/foundation/html/Head.tsx +34 -0
- package/templates/app-graphql/foundation/html.ts +1 -1
- package/templates/app-graphql/package.json +4 -4
- package/templates/app-graphql/server.tsx +93 -9
- package/templates/app-trpc/App.tsx +3 -4
- package/templates/app-trpc/browser.tsx +5 -1
- package/templates/app-trpc/foundation/html/Head.test.tsx +42 -0
- package/templates/app-trpc/foundation/html/Head.tsx +34 -0
- package/templates/app-trpc/foundation/html.ts +1 -1
- package/templates/app-trpc/package.json +4 -4
- package/templates/app-trpc/server.tsx +93 -8
- package/templates/package/package.json +3 -3
- package/templates/workspace/package.json +4 -4
- package/templates/app-basic/foundation/html/HTML.test.tsx +0 -46
- package/templates/app-basic/foundation/html/HTML.tsx +0 -159
- package/templates/app-graphql/foundation/html/HTML.test.tsx +0 -46
- package/templates/app-graphql/foundation/html/HTML.tsx +0 -159
- package/templates/app-trpc/foundation/html/HTML.test.tsx +0 -46
- package/templates/app-trpc/foundation/html/HTML.tsx +0 -159
|
@@ -1,29 +1,35 @@
|
|
|
1
|
-
import './utils.mjs';
|
|
2
|
-
import { __exports as utils$1 } from '../../../../../../_virtual/utils2.mjs';
|
|
1
|
+
import { __require as requireUtils } from './utils.mjs';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
var stringify;
|
|
4
|
+
var hasRequiredStringify;
|
|
5
|
+
function requireStringify() {
|
|
6
|
+
if (hasRequiredStringify) return stringify;
|
|
7
|
+
hasRequiredStringify = 1;
|
|
8
|
+
const utils = requireUtils();
|
|
9
|
+
stringify = (ast, options = {}) => {
|
|
10
|
+
let stringify = (node, parent = {}) => {
|
|
11
|
+
let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
|
|
12
|
+
let invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
13
|
+
let output = '';
|
|
14
|
+
if (node.value) {
|
|
15
|
+
if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) {
|
|
16
|
+
return '\\' + node.value;
|
|
17
|
+
}
|
|
18
|
+
return node.value;
|
|
13
19
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
if (node.value) {
|
|
17
|
-
return node.value;
|
|
18
|
-
}
|
|
19
|
-
if (node.nodes) {
|
|
20
|
-
for (let child of node.nodes) {
|
|
21
|
-
output += stringify(child);
|
|
20
|
+
if (node.value) {
|
|
21
|
+
return node.value;
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
if (node.nodes) {
|
|
24
|
+
for (let child of node.nodes) {
|
|
25
|
+
output += stringify(child);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return output;
|
|
29
|
+
};
|
|
30
|
+
return stringify(ast);
|
|
25
31
|
};
|
|
26
|
-
return stringify
|
|
27
|
-
}
|
|
32
|
+
return stringify;
|
|
33
|
+
}
|
|
28
34
|
|
|
29
|
-
export {
|
|
35
|
+
export { requireStringify as __require };
|
|
@@ -1,114 +1,122 @@
|
|
|
1
1
|
import { __exports as utils } from '../../../../../../_virtual/utils2.mjs';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return false;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Find a node of the given type
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
exports.find = (node, type) => node.nodes.find(node => node.type === type);
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Find a node of the given type
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
exports.exceedsLimit = (min, max, step = 1, limit) => {
|
|
26
|
-
if (limit === false) return false;
|
|
27
|
-
if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
|
|
28
|
-
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Escape the given node with '\\' before node.value
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
exports.escapeNode = (block, n = 0, type) => {
|
|
36
|
-
let node = block.nodes[n];
|
|
37
|
-
if (!node) return;
|
|
38
|
-
if (type && node.type === type || node.type === 'open' || node.type === 'close') {
|
|
39
|
-
if (node.escaped !== true) {
|
|
40
|
-
node.value = '\\' + node.value;
|
|
41
|
-
node.escaped = true;
|
|
3
|
+
var hasRequiredUtils;
|
|
4
|
+
function requireUtils() {
|
|
5
|
+
if (hasRequiredUtils) return utils;
|
|
6
|
+
hasRequiredUtils = 1;
|
|
7
|
+
(function (exports) {
|
|
8
|
+
|
|
9
|
+
exports.isInteger = num => {
|
|
10
|
+
if (typeof num === 'number') {
|
|
11
|
+
return Number.isInteger(num);
|
|
42
12
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Returns true if the given brace node should be enclosed in literal braces
|
|
48
|
-
*/
|
|
49
|
-
|
|
50
|
-
exports.encloseBrace = node => {
|
|
51
|
-
if (node.type !== 'brace') return false;
|
|
52
|
-
if (node.commas >> 0 + node.ranges >> 0 === 0) {
|
|
53
|
-
node.invalid = true;
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
return false;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Returns true if a brace node is invalid.
|
|
61
|
-
*/
|
|
62
|
-
|
|
63
|
-
exports.isInvalidBrace = block => {
|
|
64
|
-
if (block.type !== 'brace') return false;
|
|
65
|
-
if (block.invalid === true || block.dollar) return true;
|
|
66
|
-
if (block.commas >> 0 + block.ranges >> 0 === 0) {
|
|
67
|
-
block.invalid = true;
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
|
-
if (block.open !== true || block.close !== true) {
|
|
71
|
-
block.invalid = true;
|
|
72
|
-
return true;
|
|
73
|
-
}
|
|
74
|
-
return false;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Returns true if a node is an open or close node
|
|
79
|
-
*/
|
|
80
|
-
|
|
81
|
-
exports.isOpenOrClose = node => {
|
|
82
|
-
if (node.type === 'open' || node.type === 'close') {
|
|
83
|
-
return true;
|
|
84
|
-
}
|
|
85
|
-
return node.open === true || node.close === true;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Reduce an array of text nodes.
|
|
90
|
-
*/
|
|
91
|
-
|
|
92
|
-
exports.reduce = nodes => nodes.reduce((acc, node) => {
|
|
93
|
-
if (node.type === 'text') acc.push(node.value);
|
|
94
|
-
if (node.type === 'range') node.type = 'text';
|
|
95
|
-
return acc;
|
|
96
|
-
}, []);
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Flatten an array
|
|
100
|
-
*/
|
|
101
|
-
|
|
102
|
-
exports.flatten = (...args) => {
|
|
103
|
-
const result = [];
|
|
104
|
-
const flat = arr => {
|
|
105
|
-
for (let i = 0; i < arr.length; i++) {
|
|
106
|
-
let ele = arr[i];
|
|
107
|
-
Array.isArray(ele) ? flat(ele) : ele !== void 0 && result.push(ele);
|
|
13
|
+
if (typeof num === 'string' && num.trim() !== '') {
|
|
14
|
+
return Number.isInteger(Number(num));
|
|
108
15
|
}
|
|
16
|
+
return false;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Find a node of the given type
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
exports.find = (node, type) => node.nodes.find(node => node.type === type);
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Find a node of the given type
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
exports.exceedsLimit = (min, max, step = 1, limit) => {
|
|
30
|
+
if (limit === false) return false;
|
|
31
|
+
if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
|
|
32
|
+
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Escape the given node with '\\' before node.value
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
exports.escapeNode = (block, n = 0, type) => {
|
|
40
|
+
let node = block.nodes[n];
|
|
41
|
+
if (!node) return;
|
|
42
|
+
if (type && node.type === type || node.type === 'open' || node.type === 'close') {
|
|
43
|
+
if (node.escaped !== true) {
|
|
44
|
+
node.value = '\\' + node.value;
|
|
45
|
+
node.escaped = true;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Returns true if the given brace node should be enclosed in literal braces
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
exports.encloseBrace = node => {
|
|
55
|
+
if (node.type !== 'brace') return false;
|
|
56
|
+
if (node.commas >> 0 + node.ranges >> 0 === 0) {
|
|
57
|
+
node.invalid = true;
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
return false;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Returns true if a brace node is invalid.
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
exports.isInvalidBrace = block => {
|
|
68
|
+
if (block.type !== 'brace') return false;
|
|
69
|
+
if (block.invalid === true || block.dollar) return true;
|
|
70
|
+
if (block.commas >> 0 + block.ranges >> 0 === 0) {
|
|
71
|
+
block.invalid = true;
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
if (block.open !== true || block.close !== true) {
|
|
75
|
+
block.invalid = true;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
return false;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Returns true if a node is an open or close node
|
|
83
|
+
*/
|
|
84
|
+
|
|
85
|
+
exports.isOpenOrClose = node => {
|
|
86
|
+
if (node.type === 'open' || node.type === 'close') {
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
return node.open === true || node.close === true;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Reduce an array of text nodes.
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
exports.reduce = nodes => nodes.reduce((acc, node) => {
|
|
97
|
+
if (node.type === 'text') acc.push(node.value);
|
|
98
|
+
if (node.type === 'range') node.type = 'text';
|
|
99
|
+
return acc;
|
|
100
|
+
}, []);
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Flatten an array
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
exports.flatten = (...args) => {
|
|
107
|
+
const result = [];
|
|
108
|
+
const flat = arr => {
|
|
109
|
+
for (let i = 0; i < arr.length; i++) {
|
|
110
|
+
let ele = arr[i];
|
|
111
|
+
Array.isArray(ele) ? flat(ele) : ele !== void 0 && result.push(ele);
|
|
112
|
+
}
|
|
113
|
+
return result;
|
|
114
|
+
};
|
|
115
|
+
flat(args);
|
|
109
116
|
return result;
|
|
110
117
|
};
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
118
|
+
})(utils);
|
|
119
|
+
return utils;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export { requireUtils as __require };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
var splitStringTransformer = function splitStringTransformer(splitBy) {
|
|
2
2
|
return {
|
|
3
3
|
onSubstitution: function onSubstitution(substitution, resultSoFar) {
|
|
4
|
-
|
|
4
|
+
{
|
|
5
5
|
if (typeof substitution === 'string' && substitution.includes(splitBy)) {
|
|
6
6
|
substitution = substitution.split(splitBy);
|
|
7
7
|
}
|
|
8
|
-
} else {
|
|
9
|
-
throw new Error('You need to specify a string character to split by.');
|
|
10
8
|
}
|
|
11
9
|
return substitution;
|
|
12
10
|
}
|
|
@@ -1,68 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { __module as dirGlob$1 } from '../../../../../_virtual/index2.mjs';
|
|
1
|
+
import { __module as dirGlob } from '../../../../../_virtual/index8.mjs';
|
|
3
2
|
import path__default from 'node:path';
|
|
4
|
-
import '../../../path-type@4.0.0/node_modules/path-type/index.mjs';
|
|
5
|
-
import { __exports as pathType$1 } from '../../../../../_virtual/index3.mjs';
|
|
3
|
+
import { __require as requirePathType } from '../../../path-type@4.0.0/node_modules/path-type/index.mjs';
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
};
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
return
|
|
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
|
-
|
|
5
|
+
var hasRequiredDirGlob;
|
|
6
|
+
function requireDirGlob() {
|
|
7
|
+
if (hasRequiredDirGlob) return dirGlob.exports;
|
|
8
|
+
hasRequiredDirGlob = 1;
|
|
9
|
+
const path = path__default;
|
|
10
|
+
const pathType = requirePathType();
|
|
11
|
+
const getExtensions = extensions => extensions.length > 1 ? `{${extensions.join(',')}}` : extensions[0];
|
|
12
|
+
const getPath = (filepath, cwd) => {
|
|
13
|
+
const pth = filepath[0] === '!' ? filepath.slice(1) : filepath;
|
|
14
|
+
return path.isAbsolute(pth) ? pth : path.join(cwd, pth);
|
|
15
|
+
};
|
|
16
|
+
const addExtensions = (file, extensions) => {
|
|
17
|
+
if (path.extname(file)) {
|
|
18
|
+
return `**/${file}`;
|
|
19
|
+
}
|
|
20
|
+
return `**/${file}.${getExtensions(extensions)}`;
|
|
21
|
+
};
|
|
22
|
+
const getGlob = (directory, options) => {
|
|
23
|
+
if (options.files && !Array.isArray(options.files)) {
|
|
24
|
+
throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof options.files}\``);
|
|
25
|
+
}
|
|
26
|
+
if (options.extensions && !Array.isArray(options.extensions)) {
|
|
27
|
+
throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof options.extensions}\``);
|
|
28
|
+
}
|
|
29
|
+
if (options.files && options.extensions) {
|
|
30
|
+
return options.files.map(x => path.posix.join(directory, addExtensions(x, options.extensions)));
|
|
31
|
+
}
|
|
32
|
+
if (options.files) {
|
|
33
|
+
return options.files.map(x => path.posix.join(directory, `**/${x}`));
|
|
34
|
+
}
|
|
35
|
+
if (options.extensions) {
|
|
36
|
+
return [path.posix.join(directory, `**/*.${getExtensions(options.extensions)}`)];
|
|
37
|
+
}
|
|
38
|
+
return [path.posix.join(directory, '**')];
|
|
39
|
+
};
|
|
40
|
+
dirGlob.exports = async (input, options) => {
|
|
41
|
+
options = {
|
|
42
|
+
cwd: process.cwd(),
|
|
43
|
+
...options
|
|
44
|
+
};
|
|
45
|
+
if (typeof options.cwd !== 'string') {
|
|
46
|
+
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof options.cwd}\``);
|
|
47
|
+
}
|
|
48
|
+
const globs = await Promise.all([].concat(input).map(async x => {
|
|
49
|
+
const isDirectory = await pathType.isDirectory(getPath(x, options.cwd));
|
|
50
|
+
return isDirectory ? getGlob(x, options) : x;
|
|
51
|
+
}));
|
|
52
|
+
return [].concat.apply([], globs); // eslint-disable-line prefer-spread
|
|
42
53
|
};
|
|
43
|
-
if (typeof options.cwd !== 'string') {
|
|
44
|
-
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof options.cwd}\``);
|
|
45
|
-
}
|
|
46
|
-
const globs = await Promise.all([].concat(input).map(async x => {
|
|
47
|
-
const isDirectory = await pathType.isDirectory(getPath(x, options.cwd));
|
|
48
|
-
return isDirectory ? getGlob(x, options) : x;
|
|
49
|
-
}));
|
|
50
|
-
return [].concat.apply([], globs); // eslint-disable-line prefer-spread
|
|
51
|
-
};
|
|
52
54
|
|
|
53
|
-
dirGlob
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
dirGlob.exports.sync = (input, options) => {
|
|
56
|
+
options = {
|
|
57
|
+
cwd: process.cwd(),
|
|
58
|
+
...options
|
|
59
|
+
};
|
|
60
|
+
if (typeof options.cwd !== 'string') {
|
|
61
|
+
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof options.cwd}\``);
|
|
62
|
+
}
|
|
63
|
+
const globs = [].concat(input).map(x => pathType.isDirectorySync(getPath(x, options.cwd)) ? getGlob(x, options) : x);
|
|
64
|
+
return [].concat.apply([], globs); // eslint-disable-line prefer-spread
|
|
57
65
|
};
|
|
58
|
-
if (typeof options.cwd !== 'string') {
|
|
59
|
-
throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof options.cwd}\``);
|
|
60
|
-
}
|
|
61
|
-
const globs = [].concat(input).map(x => pathType.isDirectorySync(getPath(x, options.cwd)) ? getGlob(x, options) : x);
|
|
62
|
-
return [].concat.apply([], globs); // eslint-disable-line prefer-spread
|
|
63
|
-
};
|
|
64
66
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
return dirGlob.exports;
|
|
68
|
+
}
|
|
67
69
|
|
|
68
|
-
export {
|
|
70
|
+
export { requireDirGlob as __require };
|
|
@@ -1,86 +1,84 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './managers/
|
|
3
|
-
import './
|
|
4
|
-
import './providers/
|
|
5
|
-
import './providers/
|
|
6
|
-
import './
|
|
7
|
-
import './
|
|
8
|
-
import './utils/index.mjs';
|
|
9
|
-
import { __exports as tasks } from '../../../../../../_virtual/tasks.mjs';
|
|
10
|
-
import { __exports as patterns } from '../../../../../../_virtual/patterns.mjs';
|
|
11
|
-
import { __exports as async } from '../../../../../../_virtual/async.mjs';
|
|
12
|
-
import { __exports as stream } from '../../../../../../_virtual/stream.mjs';
|
|
13
|
-
import { __exports as sync } from '../../../../../../_virtual/sync.mjs';
|
|
14
|
-
import { __exports as settings } from '../../../../../../_virtual/settings.mjs';
|
|
15
|
-
import { __exports as utils$1 } from '../../../../../../_virtual/index.mjs';
|
|
1
|
+
import { __require as requireTasks } from './managers/tasks.mjs';
|
|
2
|
+
import { __require as requirePatterns } from './managers/patterns.mjs';
|
|
3
|
+
import { __require as requireAsync } from './providers/async.mjs';
|
|
4
|
+
import { __require as requireStream } from './providers/stream.mjs';
|
|
5
|
+
import { __require as requireSync } from './providers/sync.mjs';
|
|
6
|
+
import { __require as requireSettings } from './settings.mjs';
|
|
7
|
+
import { __require as requireUtils } from './utils/index.mjs';
|
|
16
8
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
// https://github.com/typescript-eslint/typescript-eslint/issues/60
|
|
31
|
-
// eslint-disable-next-line no-redeclare
|
|
32
|
-
(function (FastGlob) {
|
|
33
|
-
function sync(source, options) {
|
|
34
|
-
assertPatternsInput(source);
|
|
35
|
-
const works = getWorks(source, sync_1.default, options);
|
|
36
|
-
return utils.array.flatten(works);
|
|
37
|
-
}
|
|
38
|
-
FastGlob.sync = sync;
|
|
39
|
-
function stream(source, options) {
|
|
9
|
+
var out;
|
|
10
|
+
var hasRequiredOut;
|
|
11
|
+
function requireOut() {
|
|
12
|
+
if (hasRequiredOut) return out;
|
|
13
|
+
hasRequiredOut = 1;
|
|
14
|
+
const taskManager = requireTasks();
|
|
15
|
+
const patternManager = requirePatterns();
|
|
16
|
+
const async_1 = requireAsync();
|
|
17
|
+
const stream_1 = requireStream();
|
|
18
|
+
const sync_1 = requireSync();
|
|
19
|
+
const settings_1 = requireSettings();
|
|
20
|
+
const utils = requireUtils();
|
|
21
|
+
async function FastGlob(source, options) {
|
|
40
22
|
assertPatternsInput(source);
|
|
41
|
-
const works = getWorks(source,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
* To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams.
|
|
45
|
-
* This affects performance (+25%). I don't see best solution right now.
|
|
46
|
-
*/
|
|
47
|
-
return utils.stream.merge(works);
|
|
23
|
+
const works = getWorks(source, async_1.default, options);
|
|
24
|
+
const result = await Promise.all(works);
|
|
25
|
+
return utils.array.flatten(result);
|
|
48
26
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
27
|
+
// https://github.com/typescript-eslint/typescript-eslint/issues/60
|
|
28
|
+
// eslint-disable-next-line no-redeclare
|
|
29
|
+
(function (FastGlob) {
|
|
30
|
+
function sync(source, options) {
|
|
31
|
+
assertPatternsInput(source);
|
|
32
|
+
const works = getWorks(source, sync_1.default, options);
|
|
33
|
+
return utils.array.flatten(works);
|
|
34
|
+
}
|
|
35
|
+
FastGlob.sync = sync;
|
|
36
|
+
function stream(source, options) {
|
|
37
|
+
assertPatternsInput(source);
|
|
38
|
+
const works = getWorks(source, stream_1.default, options);
|
|
39
|
+
/**
|
|
40
|
+
* The stream returned by the provider cannot work with an asynchronous iterator.
|
|
41
|
+
* To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams.
|
|
42
|
+
* This affects performance (+25%). I don't see best solution right now.
|
|
43
|
+
*/
|
|
44
|
+
return utils.stream.merge(works);
|
|
45
|
+
}
|
|
46
|
+
FastGlob.stream = stream;
|
|
47
|
+
function generateTasks(source, options) {
|
|
48
|
+
assertPatternsInput(source);
|
|
49
|
+
const patterns = patternManager.transform([].concat(source));
|
|
50
|
+
const settings = new settings_1.default(options);
|
|
51
|
+
return taskManager.generate(patterns, settings);
|
|
52
|
+
}
|
|
53
|
+
FastGlob.generateTasks = generateTasks;
|
|
54
|
+
function isDynamicPattern(source, options) {
|
|
55
|
+
assertPatternsInput(source);
|
|
56
|
+
const settings = new settings_1.default(options);
|
|
57
|
+
return utils.pattern.isDynamicPattern(source, settings);
|
|
58
|
+
}
|
|
59
|
+
FastGlob.isDynamicPattern = isDynamicPattern;
|
|
60
|
+
function escapePath(source) {
|
|
61
|
+
assertPatternsInput(source);
|
|
62
|
+
return utils.path.escape(source);
|
|
63
|
+
}
|
|
64
|
+
FastGlob.escapePath = escapePath;
|
|
65
|
+
})(FastGlob || (FastGlob = {}));
|
|
66
|
+
function getWorks(source, _Provider, options) {
|
|
52
67
|
const patterns = patternManager.transform([].concat(source));
|
|
53
68
|
const settings = new settings_1.default(options);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
function isDynamicPattern(source, options) {
|
|
58
|
-
assertPatternsInput(source);
|
|
59
|
-
const settings = new settings_1.default(options);
|
|
60
|
-
return utils.pattern.isDynamicPattern(source, settings);
|
|
69
|
+
const tasks = taskManager.generate(patterns, settings);
|
|
70
|
+
const provider = new _Provider(settings);
|
|
71
|
+
return tasks.map(provider.read, provider);
|
|
61
72
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
})(FastGlob || (FastGlob = {}));
|
|
69
|
-
function getWorks(source, _Provider, options) {
|
|
70
|
-
const patterns = patternManager.transform([].concat(source));
|
|
71
|
-
const settings = new settings_1.default(options);
|
|
72
|
-
const tasks = taskManager.generate(patterns, settings);
|
|
73
|
-
const provider = new _Provider(settings);
|
|
74
|
-
return tasks.map(provider.read, provider);
|
|
75
|
-
}
|
|
76
|
-
function assertPatternsInput(input) {
|
|
77
|
-
const source = [].concat(input);
|
|
78
|
-
const isValidSource = source.every(item => utils.string.isString(item) && !utils.string.isEmpty(item));
|
|
79
|
-
if (!isValidSource) {
|
|
80
|
-
throw new TypeError('Patterns must be a string (non empty) or an array of strings');
|
|
73
|
+
function assertPatternsInput(input) {
|
|
74
|
+
const source = [].concat(input);
|
|
75
|
+
const isValidSource = source.every(item => utils.string.isString(item) && !utils.string.isEmpty(item));
|
|
76
|
+
if (!isValidSource) {
|
|
77
|
+
throw new TypeError('Patterns must be a string (non empty) or an array of strings');
|
|
78
|
+
}
|
|
81
79
|
}
|
|
80
|
+
out = FastGlob;
|
|
81
|
+
return out;
|
|
82
82
|
}
|
|
83
|
-
var out = FastGlob;
|
|
84
|
-
const fastGlob = /*@__PURE__*/getDefaultExportFromCjs(out);
|
|
85
83
|
|
|
86
|
-
export {
|
|
84
|
+
export { requireOut as __require };
|
|
@@ -1,26 +1,32 @@
|
|
|
1
1
|
import { __exports as patterns } from '../../../../../../../_virtual/patterns.mjs';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
var hasRequiredPatterns;
|
|
4
|
+
function requirePatterns() {
|
|
5
|
+
if (hasRequiredPatterns) return patterns;
|
|
6
|
+
hasRequiredPatterns = 1;
|
|
7
|
+
Object.defineProperty(patterns, "__esModule", {
|
|
8
|
+
value: true
|
|
9
|
+
});
|
|
10
|
+
patterns.removeDuplicateSlashes = patterns.transform = void 0;
|
|
11
|
+
/**
|
|
12
|
+
* Matches a sequence of two or more consecutive slashes, excluding the first two slashes at the beginning of the string.
|
|
13
|
+
* The latter is due to the presence of the device path at the beginning of the UNC path.
|
|
14
|
+
* @todo rewrite to negative lookbehind with the next major release.
|
|
15
|
+
*/
|
|
16
|
+
const DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
|
|
17
|
+
function transform(patterns) {
|
|
18
|
+
return patterns.map(pattern => removeDuplicateSlashes(pattern));
|
|
19
|
+
}
|
|
20
|
+
patterns.transform = transform;
|
|
21
|
+
/**
|
|
22
|
+
* This package only works with forward slashes as a path separator.
|
|
23
|
+
* Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes.
|
|
24
|
+
*/
|
|
25
|
+
function removeDuplicateSlashes(pattern) {
|
|
26
|
+
return pattern.replace(DOUBLE_SLASH_RE, '/');
|
|
27
|
+
}
|
|
28
|
+
patterns.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
29
|
+
return patterns;
|
|
15
30
|
}
|
|
16
|
-
patterns.transform = transform;
|
|
17
|
-
/**
|
|
18
|
-
* This package only works with forward slashes as a path separator.
|
|
19
|
-
* Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes.
|
|
20
|
-
*/
|
|
21
|
-
function removeDuplicateSlashes(pattern) {
|
|
22
|
-
return pattern.replace(DOUBLE_SLASH_RE, '/');
|
|
23
|
-
}
|
|
24
|
-
patterns.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
25
31
|
|
|
26
|
-
export {
|
|
32
|
+
export { requirePatterns as __require };
|