@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,70 +1,75 @@
|
|
|
1
1
|
import { __exports as sync } from '../../../../../../../../_virtual/sync5.mjs';
|
|
2
|
-
import '../../../../../../@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs';
|
|
3
|
-
import './common.mjs';
|
|
4
|
-
import './reader.mjs';
|
|
5
|
-
import { __exports as out } from '../../../../../../../../_virtual/index6.mjs';
|
|
6
|
-
import { __exports as common$1 } from '../../../../../../../../_virtual/common.mjs';
|
|
7
|
-
import { __exports as reader } from '../../../../../../../../_virtual/reader2.mjs';
|
|
2
|
+
import { __require as requireOut } from '../../../../../../@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs';
|
|
3
|
+
import { __require as requireCommon } from './common.mjs';
|
|
4
|
+
import { __require as requireReader } from './reader.mjs';
|
|
8
5
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return this._storage;
|
|
26
|
-
}
|
|
27
|
-
_pushToQueue(directory, base) {
|
|
28
|
-
this._queue.add({
|
|
29
|
-
directory,
|
|
30
|
-
base
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
_handleQueue() {
|
|
34
|
-
for (const item of this._queue.values()) {
|
|
35
|
-
this._handleDirectory(item.directory, item.base);
|
|
6
|
+
var hasRequiredSync;
|
|
7
|
+
function requireSync() {
|
|
8
|
+
if (hasRequiredSync) return sync;
|
|
9
|
+
hasRequiredSync = 1;
|
|
10
|
+
Object.defineProperty(sync, "__esModule", {
|
|
11
|
+
value: true
|
|
12
|
+
});
|
|
13
|
+
const fsScandir = requireOut();
|
|
14
|
+
const common = requireCommon();
|
|
15
|
+
const reader_1 = requireReader();
|
|
16
|
+
class SyncReader extends reader_1.default {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this._scandir = fsScandir.scandirSync;
|
|
20
|
+
this._storage = [];
|
|
21
|
+
this._queue = new Set();
|
|
36
22
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
23
|
+
read() {
|
|
24
|
+
this._pushToQueue(this._root, this._settings.basePath);
|
|
25
|
+
this._handleQueue();
|
|
26
|
+
return this._storage;
|
|
27
|
+
}
|
|
28
|
+
_pushToQueue(directory, base) {
|
|
29
|
+
this._queue.add({
|
|
30
|
+
directory,
|
|
31
|
+
base
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
_handleQueue() {
|
|
35
|
+
for (const item of this._queue.values()) {
|
|
36
|
+
this._handleDirectory(item.directory, item.base);
|
|
43
37
|
}
|
|
44
|
-
} catch (error) {
|
|
45
|
-
this._handleError(error);
|
|
46
38
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
39
|
+
_handleDirectory(directory, base) {
|
|
40
|
+
try {
|
|
41
|
+
const entries = this._scandir(directory, this._settings.fsScandirSettings);
|
|
42
|
+
for (const entry of entries) {
|
|
43
|
+
this._handleEntry(entry, base);
|
|
44
|
+
}
|
|
45
|
+
} catch (error) {
|
|
46
|
+
this._handleError(error);
|
|
47
|
+
}
|
|
51
48
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
|
|
49
|
+
_handleError(error) {
|
|
50
|
+
if (!common.isFatalError(this._settings, error)) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
throw error;
|
|
58
54
|
}
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
_handleEntry(entry, base) {
|
|
56
|
+
const fullpath = entry.path;
|
|
57
|
+
if (base !== undefined) {
|
|
58
|
+
entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
|
|
59
|
+
}
|
|
60
|
+
if (common.isAppliedFilter(this._settings.entryFilter, entry)) {
|
|
61
|
+
this._pushToStorage(entry);
|
|
62
|
+
}
|
|
63
|
+
if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) {
|
|
64
|
+
this._pushToQueue(fullpath, base === undefined ? undefined : entry.path);
|
|
65
|
+
}
|
|
61
66
|
}
|
|
62
|
-
|
|
63
|
-
this.
|
|
67
|
+
_pushToStorage(entry) {
|
|
68
|
+
this._storage.push(entry);
|
|
64
69
|
}
|
|
65
70
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
71
|
+
sync.default = SyncReader;
|
|
72
|
+
return sync;
|
|
69
73
|
}
|
|
70
|
-
|
|
74
|
+
|
|
75
|
+
export { requireSync as __require };
|
|
@@ -1,32 +1,39 @@
|
|
|
1
1
|
import { __exports as settings } from '../../../../../../../_virtual/settings2.mjs';
|
|
2
2
|
import path__default from 'node:path';
|
|
3
|
-
import '../../../../../@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs';
|
|
4
|
-
import { __exports as out } from '../../../../../../../_virtual/index6.mjs';
|
|
3
|
+
import { __require as requireOut } from '../../../../../@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs';
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
pathSegmentSeparator
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
5
|
+
var hasRequiredSettings;
|
|
6
|
+
function requireSettings() {
|
|
7
|
+
if (hasRequiredSettings) return settings;
|
|
8
|
+
hasRequiredSettings = 1;
|
|
9
|
+
Object.defineProperty(settings, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
const path = path__default;
|
|
13
|
+
const fsScandir = requireOut();
|
|
14
|
+
class Settings {
|
|
15
|
+
constructor(_options = {}) {
|
|
16
|
+
this._options = _options;
|
|
17
|
+
this.basePath = this._getValue(this._options.basePath, undefined);
|
|
18
|
+
this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY);
|
|
19
|
+
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
20
|
+
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
21
|
+
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
22
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep);
|
|
23
|
+
this.fsScandirSettings = new fsScandir.Settings({
|
|
24
|
+
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
25
|
+
fs: this._options.fs,
|
|
26
|
+
pathSegmentSeparator: this._options.pathSegmentSeparator,
|
|
27
|
+
stats: this._options.stats,
|
|
28
|
+
throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
_getValue(option, value) {
|
|
32
|
+
return option !== null && option !== void 0 ? option : value;
|
|
33
|
+
}
|
|
30
34
|
}
|
|
35
|
+
settings.default = Settings;
|
|
36
|
+
return settings;
|
|
31
37
|
}
|
|
32
|
-
|
|
38
|
+
|
|
39
|
+
export { requireSettings as __require };
|
|
@@ -1,126 +1,130 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
argv = process.argv.slice(2),
|
|
14
|
-
permissive = false,
|
|
15
|
-
stopAtPositional = false
|
|
16
|
-
} = {}) {
|
|
17
|
-
if (!opts) {
|
|
18
|
-
throw new ArgError('argument specification object is required', 'ARG_CONFIG_NO_SPEC');
|
|
19
|
-
}
|
|
20
|
-
const result = {
|
|
21
|
-
_: []
|
|
22
|
-
};
|
|
23
|
-
const aliases = {};
|
|
24
|
-
const handlers = {};
|
|
25
|
-
for (const key of Object.keys(opts)) {
|
|
26
|
-
if (!key) {
|
|
27
|
-
throw new ArgError('argument key cannot be an empty string', 'ARG_CONFIG_EMPTY_KEY');
|
|
28
|
-
}
|
|
29
|
-
if (key[0] !== '-') {
|
|
30
|
-
throw new ArgError(`argument key must start with '-' but found: '${key}'`, 'ARG_CONFIG_NONOPT_KEY');
|
|
31
|
-
}
|
|
32
|
-
if (key.length === 1) {
|
|
33
|
-
throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${key}`, 'ARG_CONFIG_NONAME_KEY');
|
|
1
|
+
var arg_1;
|
|
2
|
+
var hasRequiredArg;
|
|
3
|
+
function requireArg() {
|
|
4
|
+
if (hasRequiredArg) return arg_1;
|
|
5
|
+
hasRequiredArg = 1;
|
|
6
|
+
const flagSymbol = Symbol('arg flag');
|
|
7
|
+
class ArgError extends Error {
|
|
8
|
+
constructor(msg, code) {
|
|
9
|
+
super(msg);
|
|
10
|
+
this.name = 'ArgError';
|
|
11
|
+
this.code = code;
|
|
12
|
+
Object.setPrototypeOf(this, ArgError.prototype);
|
|
34
13
|
}
|
|
35
|
-
if (typeof opts[key] === 'string') {
|
|
36
|
-
aliases[key] = opts[key];
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
let type = opts[key];
|
|
40
|
-
let isFlag = false;
|
|
41
|
-
if (Array.isArray(type) && type.length === 1 && typeof type[0] === 'function') {
|
|
42
|
-
const [fn] = type;
|
|
43
|
-
type = (value, name, prev = []) => {
|
|
44
|
-
prev.push(fn(value, name, prev[prev.length - 1]));
|
|
45
|
-
return prev;
|
|
46
|
-
};
|
|
47
|
-
isFlag = fn === Boolean || fn[flagSymbol] === true;
|
|
48
|
-
} else if (typeof type === 'function') {
|
|
49
|
-
isFlag = type === Boolean || type[flagSymbol] === true;
|
|
50
|
-
} else {
|
|
51
|
-
throw new ArgError(`type missing or not a function or valid array type: ${key}`, 'ARG_CONFIG_VAD_TYPE');
|
|
52
|
-
}
|
|
53
|
-
if (key[1] !== '-' && key.length > 2) {
|
|
54
|
-
throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${key}`, 'ARG_CONFIG_SHORTOPT_TOOLONG');
|
|
55
|
-
}
|
|
56
|
-
handlers[key] = [type, isFlag];
|
|
57
14
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
15
|
+
function arg(opts, {
|
|
16
|
+
argv = process.argv.slice(2),
|
|
17
|
+
permissive = false,
|
|
18
|
+
stopAtPositional = false
|
|
19
|
+
} = {}) {
|
|
20
|
+
if (!opts) {
|
|
21
|
+
throw new ArgError('argument specification object is required', 'ARG_CONFIG_NO_SPEC');
|
|
63
22
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
23
|
+
const result = {
|
|
24
|
+
_: []
|
|
25
|
+
};
|
|
26
|
+
const aliases = {};
|
|
27
|
+
const handlers = {};
|
|
28
|
+
for (const key of Object.keys(opts)) {
|
|
29
|
+
if (!key) {
|
|
30
|
+
throw new ArgError('argument key cannot be an empty string', 'ARG_CONFIG_EMPTY_KEY');
|
|
31
|
+
}
|
|
32
|
+
if (key[0] !== '-') {
|
|
33
|
+
throw new ArgError(`argument key must start with '-' but found: '${key}'`, 'ARG_CONFIG_NONOPT_KEY');
|
|
34
|
+
}
|
|
35
|
+
if (key.length === 1) {
|
|
36
|
+
throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${key}`, 'ARG_CONFIG_NONAME_KEY');
|
|
37
|
+
}
|
|
38
|
+
if (typeof opts[key] === 'string') {
|
|
39
|
+
aliases[key] = opts[key];
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
let type = opts[key];
|
|
43
|
+
let isFlag = false;
|
|
44
|
+
if (Array.isArray(type) && type.length === 1 && typeof type[0] === 'function') {
|
|
45
|
+
const [fn] = type;
|
|
46
|
+
type = (value, name, prev = []) => {
|
|
47
|
+
prev.push(fn(value, name, prev[prev.length - 1]));
|
|
48
|
+
return prev;
|
|
49
|
+
};
|
|
50
|
+
isFlag = fn === Boolean || fn[flagSymbol] === true;
|
|
51
|
+
} else if (typeof type === 'function') {
|
|
52
|
+
isFlag = type === Boolean || type[flagSymbol] === true;
|
|
53
|
+
} else {
|
|
54
|
+
throw new ArgError(`type missing or not a function or valid array type: ${key}`, 'ARG_CONFIG_VAD_TYPE');
|
|
55
|
+
}
|
|
56
|
+
if (key[1] !== '-' && key.length > 2) {
|
|
57
|
+
throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${key}`, 'ARG_CONFIG_SHORTOPT_TOOLONG');
|
|
58
|
+
}
|
|
59
|
+
handlers[key] = [type, isFlag];
|
|
67
60
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
for (let i = 0, len = argv.length; i < len; i++) {
|
|
62
|
+
const wholeArg = argv[i];
|
|
63
|
+
if (stopAtPositional && result._.length > 0) {
|
|
64
|
+
result._ = result._.concat(argv.slice(i));
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
if (wholeArg === '--') {
|
|
68
|
+
result._ = result._.concat(argv.slice(i + 1));
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
if (wholeArg.length > 1 && wholeArg[0] === '-') {
|
|
72
|
+
/* eslint-disable operator-linebreak */
|
|
73
|
+
const separatedArguments = wholeArg[1] === '-' || wholeArg.length === 2 ? [wholeArg] : wholeArg.slice(1).split('').map(a => `-${a}`);
|
|
74
|
+
/* eslint-enable operator-linebreak */
|
|
72
75
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
if (!(argName in handlers)) {
|
|
81
|
-
if (permissive) {
|
|
82
|
-
result._.push(arg);
|
|
83
|
-
continue;
|
|
84
|
-
} else {
|
|
85
|
-
throw new ArgError(`unknown or unexpected option: ${originalArgName}`, 'ARG_UNKNOWN_OPTION');
|
|
76
|
+
for (let j = 0; j < separatedArguments.length; j++) {
|
|
77
|
+
const arg = separatedArguments[j];
|
|
78
|
+
const [originalArgName, argStr] = arg[1] === '-' ? arg.split(/=(.*)/, 2) : [arg, undefined];
|
|
79
|
+
let argName = originalArgName;
|
|
80
|
+
while (argName in aliases) {
|
|
81
|
+
argName = aliases[argName];
|
|
86
82
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
83
|
+
if (!(argName in handlers)) {
|
|
84
|
+
if (permissive) {
|
|
85
|
+
result._.push(arg);
|
|
86
|
+
continue;
|
|
87
|
+
} else {
|
|
88
|
+
throw new ArgError(`unknown or unexpected option: ${originalArgName}`, 'ARG_UNKNOWN_OPTION');
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
const [type, isFlag] = handlers[argName];
|
|
92
|
+
if (!isFlag && j + 1 < separatedArguments.length) {
|
|
93
|
+
throw new ArgError(`option requires argument (but was followed by another short argument): ${originalArgName}`, 'ARG_MISSING_REQUIRED_SHORTARG');
|
|
94
|
+
}
|
|
95
|
+
if (isFlag) {
|
|
96
|
+
result[argName] = type(true, argName, result[argName]);
|
|
97
|
+
} else if (argStr === undefined) {
|
|
98
|
+
if (argv.length < i + 2 || argv[i + 1].length > 1 && argv[i + 1][0] === '-' && !(argv[i + 1].match(/^-?\d*(\.(?=\d))?\d*$/) && (type === Number ||
|
|
99
|
+
// eslint-disable-next-line no-undef
|
|
100
|
+
typeof BigInt !== 'undefined' && type === BigInt))) {
|
|
101
|
+
const extended = originalArgName === argName ? '' : ` (alias for ${argName})`;
|
|
102
|
+
throw new ArgError(`option requires argument: ${originalArgName}${extended}`, 'ARG_MISSING_REQUIRED_LONGARG');
|
|
103
|
+
}
|
|
104
|
+
result[argName] = type(argv[i + 1], argName, result[argName]);
|
|
105
|
+
++i;
|
|
106
|
+
} else {
|
|
107
|
+
result[argName] = type(argStr, argName, result[argName]);
|
|
100
108
|
}
|
|
101
|
-
result[argName] = type(argv[i + 1], argName, result[argName]);
|
|
102
|
-
++i;
|
|
103
|
-
} else {
|
|
104
|
-
result[argName] = type(argStr, argName, result[argName]);
|
|
105
109
|
}
|
|
110
|
+
} else {
|
|
111
|
+
result._.push(wholeArg);
|
|
106
112
|
}
|
|
107
|
-
} else {
|
|
108
|
-
result._.push(wholeArg);
|
|
109
113
|
}
|
|
114
|
+
return result;
|
|
110
115
|
}
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
return fn;
|
|
116
|
-
};
|
|
116
|
+
arg.flag = fn => {
|
|
117
|
+
fn[flagSymbol] = true;
|
|
118
|
+
return fn;
|
|
119
|
+
};
|
|
117
120
|
|
|
118
|
-
// Utility types
|
|
119
|
-
arg.COUNT = arg.flag((v, name, existingCount) => (existingCount || 0) + 1);
|
|
121
|
+
// Utility types
|
|
122
|
+
arg.COUNT = arg.flag((v, name, existingCount) => (existingCount || 0) + 1);
|
|
120
123
|
|
|
121
|
-
// Expose error class
|
|
122
|
-
arg.ArgError = ArgError;
|
|
123
|
-
|
|
124
|
-
|
|
124
|
+
// Expose error class
|
|
125
|
+
arg.ArgError = ArgError;
|
|
126
|
+
arg_1 = arg;
|
|
127
|
+
return arg_1;
|
|
128
|
+
}
|
|
125
129
|
|
|
126
|
-
export {
|
|
130
|
+
export { requireArg as __require };
|
package/build/esm/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.mjs
CHANGED
|
@@ -1,53 +1,60 @@
|
|
|
1
|
-
var balancedMatch
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
if (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
1
|
+
var balancedMatch;
|
|
2
|
+
var hasRequiredBalancedMatch;
|
|
3
|
+
function requireBalancedMatch() {
|
|
4
|
+
if (hasRequiredBalancedMatch) return balancedMatch;
|
|
5
|
+
hasRequiredBalancedMatch = 1;
|
|
6
|
+
balancedMatch = balanced;
|
|
7
|
+
function balanced(a, b, str) {
|
|
8
|
+
if (a instanceof RegExp) a = maybeMatch(a, str);
|
|
9
|
+
if (b instanceof RegExp) b = maybeMatch(b, str);
|
|
10
|
+
var r = range(a, b, str);
|
|
11
|
+
return r && {
|
|
12
|
+
start: r[0],
|
|
13
|
+
end: r[1],
|
|
14
|
+
pre: str.slice(0, r[0]),
|
|
15
|
+
body: str.slice(r[0] + a.length, r[1]),
|
|
16
|
+
post: str.slice(r[1] + b.length)
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function maybeMatch(reg, str) {
|
|
20
|
+
var m = str.match(reg);
|
|
21
|
+
return m ? m[0] : null;
|
|
22
|
+
}
|
|
23
|
+
balanced.range = range;
|
|
24
|
+
function range(a, b, str) {
|
|
25
|
+
var begs, beg, left, right, result;
|
|
26
|
+
var ai = str.indexOf(a);
|
|
27
|
+
var bi = str.indexOf(b, ai + 1);
|
|
28
|
+
var i = ai;
|
|
29
|
+
if (ai >= 0 && bi > 0) {
|
|
30
|
+
if (a === b) {
|
|
31
|
+
return [ai, bi];
|
|
32
|
+
}
|
|
33
|
+
begs = [];
|
|
34
|
+
left = str.length;
|
|
35
|
+
while (i >= 0 && !result) {
|
|
36
|
+
if (i == ai) {
|
|
37
|
+
begs.push(i);
|
|
38
|
+
ai = str.indexOf(a, i + 1);
|
|
39
|
+
} else if (begs.length == 1) {
|
|
40
|
+
result = [begs.pop(), bi];
|
|
41
|
+
} else {
|
|
42
|
+
beg = begs.pop();
|
|
43
|
+
if (beg < left) {
|
|
44
|
+
left = beg;
|
|
45
|
+
right = bi;
|
|
46
|
+
}
|
|
47
|
+
bi = str.indexOf(b, i + 1);
|
|
41
48
|
}
|
|
42
|
-
|
|
49
|
+
i = ai < bi && ai >= 0 ? ai : bi;
|
|
50
|
+
}
|
|
51
|
+
if (begs.length) {
|
|
52
|
+
result = [left, right];
|
|
43
53
|
}
|
|
44
|
-
i = ai < bi && ai >= 0 ? ai : bi;
|
|
45
|
-
}
|
|
46
|
-
if (begs.length) {
|
|
47
|
-
result = [left, right];
|
|
48
54
|
}
|
|
55
|
+
return result;
|
|
49
56
|
}
|
|
50
|
-
return
|
|
57
|
+
return balancedMatch;
|
|
51
58
|
}
|
|
52
59
|
|
|
53
|
-
export {
|
|
60
|
+
export { requireBalancedMatch as __require };
|