@slicemachine/init 0.1.1-debug → 0.1.1-dev-plugins.3
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/LICENSE +202 -0
- package/bin/slicemachine-init.js +2 -0
- package/dist/SliceMachineInitProcess.cjs +682 -0
- package/dist/SliceMachineInitProcess.cjs.map +1 -0
- package/dist/SliceMachineInitProcess.d.ts +45 -0
- package/dist/SliceMachineInitProcess.js +664 -0
- package/dist/SliceMachineInitProcess.js.map +1 -0
- package/dist/__node_modules/@babel/code-frame/lib/index.cjs +144 -0
- package/dist/__node_modules/@babel/code-frame/lib/index.cjs.map +1 -0
- package/dist/__node_modules/@babel/code-frame/lib/index.js +143 -0
- package/dist/__node_modules/@babel/code-frame/lib/index.js.map +1 -0
- package/dist/__node_modules/@babel/helper-validator-identifier/lib/identifier.cjs +82 -0
- package/dist/__node_modules/@babel/helper-validator-identifier/lib/identifier.cjs.map +1 -0
- package/dist/__node_modules/@babel/helper-validator-identifier/lib/identifier.js +83 -0
- package/dist/__node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +1 -0
- package/dist/__node_modules/@babel/helper-validator-identifier/lib/index.cjs +62 -0
- package/dist/__node_modules/@babel/helper-validator-identifier/lib/index.cjs.map +1 -0
- package/dist/__node_modules/@babel/helper-validator-identifier/lib/index.js +61 -0
- package/dist/__node_modules/@babel/helper-validator-identifier/lib/index.js.map +1 -0
- package/dist/__node_modules/@babel/helper-validator-identifier/lib/keyword.cjs +35 -0
- package/dist/__node_modules/@babel/helper-validator-identifier/lib/keyword.cjs.map +1 -0
- package/dist/__node_modules/@babel/helper-validator-identifier/lib/keyword.js +36 -0
- package/dist/__node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +1 -0
- package/dist/__node_modules/@babel/highlight/lib/index.cjs +100 -0
- package/dist/__node_modules/@babel/highlight/lib/index.cjs.map +1 -0
- package/dist/__node_modules/@babel/highlight/lib/index.js +99 -0
- package/dist/__node_modules/@babel/highlight/lib/index.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/adapters/fs.cjs +24 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/adapters/fs.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/adapters/fs.js +23 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/adapters/fs.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/constants.cjs +17 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/constants.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/constants.js +18 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/constants.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/index.cjs +35 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/index.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/index.js +36 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/index.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/providers/async.cjs +116 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/providers/async.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/providers/async.js +117 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/providers/async.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/providers/common.cjs +13 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/providers/common.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/providers/common.js +14 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/providers/common.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/providers/sync.cjs +64 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/providers/sync.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/providers/sync.js +65 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/providers/sync.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/settings.cjs +31 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/settings.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/settings.js +30 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/settings.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/utils/fs.cjs +22 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/utils/fs.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/utils/fs.js +23 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/utils/fs.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/utils/index.cjs +10 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/utils/index.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/utils/index.js +11 -0
- package/dist/__node_modules/@nodelib/fs.scandir/out/utils/index.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/adapters/fs.cjs +22 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/adapters/fs.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/adapters/fs.js +21 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/adapters/fs.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/index.cjs +35 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/index.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/index.js +36 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/index.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/providers/async.cjs +39 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/providers/async.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/providers/async.js +40 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/providers/async.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/providers/sync.cjs +25 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/providers/sync.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/providers/sync.js +26 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/providers/sync.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/settings.cjs +20 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/settings.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/settings.js +19 -0
- package/dist/__node_modules/@nodelib/fs.stat/out/settings.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/index.cjs +45 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/index.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/index.js +46 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/index.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/providers/async.cjs +34 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/providers/async.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/providers/async.js +33 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/providers/async.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/providers/stream.cjs +40 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/providers/stream.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/providers/stream.js +39 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/providers/stream.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/providers/sync.cjs +18 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/providers/sync.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/providers/sync.js +17 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/providers/sync.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/async.cjs +108 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/async.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/async.js +107 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/async.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/common.cjs +31 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/common.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/common.js +32 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/common.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/reader.cjs +15 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/reader.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/reader.js +14 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/reader.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/sync.cjs +66 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/sync.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/sync.js +65 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/readers/sync.js.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/settings.cjs +31 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/settings.cjs.map +1 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/settings.js +30 -0
- package/dist/__node_modules/@nodelib/fs.walk/out/settings.js.map +1 -0
- package/dist/__node_modules/arrify/index.cjs +9 -0
- package/dist/__node_modules/arrify/index.cjs.map +1 -0
- package/dist/__node_modules/arrify/index.js +10 -0
- package/dist/__node_modules/arrify/index.js.map +1 -0
- package/dist/__node_modules/braces/index.cjs +63 -0
- package/dist/__node_modules/braces/index.cjs.map +1 -0
- package/dist/__node_modules/braces/index.js +64 -0
- package/dist/__node_modules/braces/index.js.map +1 -0
- package/dist/__node_modules/braces/lib/compile.cjs +50 -0
- package/dist/__node_modules/braces/lib/compile.cjs.map +1 -0
- package/dist/__node_modules/braces/lib/compile.js +51 -0
- package/dist/__node_modules/braces/lib/compile.js.map +1 -0
- package/dist/__node_modules/braces/lib/constants.cjs +97 -0
- package/dist/__node_modules/braces/lib/constants.cjs.map +1 -0
- package/dist/__node_modules/braces/lib/constants.js +98 -0
- package/dist/__node_modules/braces/lib/constants.js.map +1 -0
- package/dist/__node_modules/braces/lib/expand.cjs +97 -0
- package/dist/__node_modules/braces/lib/expand.cjs.map +1 -0
- package/dist/__node_modules/braces/lib/expand.js +98 -0
- package/dist/__node_modules/braces/lib/expand.js.map +1 -0
- package/dist/__node_modules/braces/lib/parse.cjs +240 -0
- package/dist/__node_modules/braces/lib/parse.cjs.map +1 -0
- package/dist/__node_modules/braces/lib/parse.js +241 -0
- package/dist/__node_modules/braces/lib/parse.js.map +1 -0
- package/dist/__node_modules/braces/lib/stringify.cjs +29 -0
- package/dist/__node_modules/braces/lib/stringify.cjs.map +1 -0
- package/dist/__node_modules/braces/lib/stringify.js +30 -0
- package/dist/__node_modules/braces/lib/stringify.js.map +1 -0
- package/dist/__node_modules/braces/lib/utils.cjs +83 -0
- package/dist/__node_modules/braces/lib/utils.cjs.map +1 -0
- package/dist/__node_modules/braces/lib/utils.js +84 -0
- package/dist/__node_modules/braces/lib/utils.js.map +1 -0
- package/dist/__node_modules/camelcase-keys/__node_modules/camelcase/index.cjs +83 -0
- package/dist/__node_modules/camelcase-keys/__node_modules/camelcase/index.cjs.map +1 -0
- package/dist/__node_modules/camelcase-keys/__node_modules/camelcase/index.js +84 -0
- package/dist/__node_modules/camelcase-keys/__node_modules/camelcase/index.js.map +1 -0
- package/dist/__node_modules/camelcase-keys/index.cjs +56 -0
- package/dist/__node_modules/camelcase-keys/index.cjs.map +1 -0
- package/dist/__node_modules/camelcase-keys/index.js +57 -0
- package/dist/__node_modules/camelcase-keys/index.js.map +1 -0
- package/dist/__node_modules/cross-spawn/index.cjs +27 -0
- package/dist/__node_modules/cross-spawn/index.cjs.map +1 -0
- package/dist/__node_modules/cross-spawn/index.js +28 -0
- package/dist/__node_modules/cross-spawn/index.js.map +1 -0
- package/dist/__node_modules/cross-spawn/lib/enoent.cjs +46 -0
- package/dist/__node_modules/cross-spawn/lib/enoent.cjs.map +1 -0
- package/dist/__node_modules/cross-spawn/lib/enoent.js +47 -0
- package/dist/__node_modules/cross-spawn/lib/enoent.js.map +1 -0
- package/dist/__node_modules/cross-spawn/lib/parse.cjs +63 -0
- package/dist/__node_modules/cross-spawn/lib/parse.cjs.map +1 -0
- package/dist/__node_modules/cross-spawn/lib/parse.js +64 -0
- package/dist/__node_modules/cross-spawn/lib/parse.js.map +1 -0
- package/dist/__node_modules/cross-spawn/lib/util/escape.cjs +22 -0
- package/dist/__node_modules/cross-spawn/lib/util/escape.cjs.map +1 -0
- package/dist/__node_modules/cross-spawn/lib/util/escape.js +23 -0
- package/dist/__node_modules/cross-spawn/lib/util/escape.js.map +1 -0
- package/dist/__node_modules/cross-spawn/lib/util/readShebang.cjs +20 -0
- package/dist/__node_modules/cross-spawn/lib/util/readShebang.cjs.map +1 -0
- package/dist/__node_modules/cross-spawn/lib/util/readShebang.js +21 -0
- package/dist/__node_modules/cross-spawn/lib/util/readShebang.js.map +1 -0
- package/dist/__node_modules/cross-spawn/lib/util/resolveCommand.cjs +42 -0
- package/dist/__node_modules/cross-spawn/lib/util/resolveCommand.cjs.map +1 -0
- package/dist/__node_modules/cross-spawn/lib/util/resolveCommand.js +43 -0
- package/dist/__node_modules/cross-spawn/lib/util/resolveCommand.js.map +1 -0
- package/dist/__node_modules/decamelize/index.cjs +38 -0
- package/dist/__node_modules/decamelize/index.cjs.map +1 -0
- package/dist/__node_modules/decamelize/index.js +39 -0
- package/dist/__node_modules/decamelize/index.js.map +1 -0
- package/dist/__node_modules/decamelize-keys/__node_modules/decamelize/index.cjs +10 -0
- package/dist/__node_modules/decamelize-keys/__node_modules/decamelize/index.cjs.map +1 -0
- package/dist/__node_modules/decamelize-keys/__node_modules/decamelize/index.js +11 -0
- package/dist/__node_modules/decamelize-keys/__node_modules/decamelize/index.js.map +1 -0
- package/dist/__node_modules/decamelize-keys/__node_modules/map-obj/index.cjs +13 -0
- package/dist/__node_modules/decamelize-keys/__node_modules/map-obj/index.cjs.map +1 -0
- package/dist/__node_modules/decamelize-keys/__node_modules/map-obj/index.js +14 -0
- package/dist/__node_modules/decamelize-keys/__node_modules/map-obj/index.js.map +1 -0
- package/dist/__node_modules/decamelize-keys/index.cjs +20 -0
- package/dist/__node_modules/decamelize-keys/index.cjs.map +1 -0
- package/dist/__node_modules/decamelize-keys/index.js +21 -0
- package/dist/__node_modules/decamelize-keys/index.js.map +1 -0
- package/dist/__node_modules/dir-glob/index.cjs +63 -0
- package/dist/__node_modules/dir-glob/index.cjs.map +1 -0
- package/dist/__node_modules/dir-glob/index.js +64 -0
- package/dist/__node_modules/dir-glob/index.js.map +1 -0
- package/dist/__node_modules/error-ex/index.cjs +108 -0
- package/dist/__node_modules/error-ex/index.cjs.map +1 -0
- package/dist/__node_modules/error-ex/index.js +109 -0
- package/dist/__node_modules/error-ex/index.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/index.cjs +77 -0
- package/dist/__node_modules/fast-glob/out/index.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/index.js +78 -0
- package/dist/__node_modules/fast-glob/out/index.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/managers/patterns.cjs +15 -0
- package/dist/__node_modules/fast-glob/out/managers/patterns.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/managers/patterns.js +16 -0
- package/dist/__node_modules/fast-glob/out/managers/patterns.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/managers/tasks.cjs +83 -0
- package/dist/__node_modules/fast-glob/out/managers/tasks.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/managers/tasks.js +84 -0
- package/dist/__node_modules/fast-glob/out/managers/tasks.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/async.cjs +29 -0
- package/dist/__node_modules/fast-glob/out/providers/async.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/async.js +28 -0
- package/dist/__node_modules/fast-glob/out/providers/async.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/filters/deep.cjs +65 -0
- package/dist/__node_modules/fast-glob/out/providers/filters/deep.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/filters/deep.js +64 -0
- package/dist/__node_modules/fast-glob/out/providers/filters/deep.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/filters/entry.cjs +65 -0
- package/dist/__node_modules/fast-glob/out/providers/filters/entry.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/filters/entry.js +64 -0
- package/dist/__node_modules/fast-glob/out/providers/filters/entry.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/filters/error.cjs +19 -0
- package/dist/__node_modules/fast-glob/out/providers/filters/error.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/filters/error.js +18 -0
- package/dist/__node_modules/fast-glob/out/providers/filters/error.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/matchers/matcher.cjs +50 -0
- package/dist/__node_modules/fast-glob/out/providers/matchers/matcher.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/matchers/matcher.js +49 -0
- package/dist/__node_modules/fast-glob/out/providers/matchers/matcher.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/matchers/partial.cjs +35 -0
- package/dist/__node_modules/fast-glob/out/providers/matchers/partial.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/matchers/partial.js +34 -0
- package/dist/__node_modules/fast-glob/out/providers/matchers/partial.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/provider.cjs +59 -0
- package/dist/__node_modules/fast-glob/out/providers/provider.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/provider.js +58 -0
- package/dist/__node_modules/fast-glob/out/providers/provider.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/stream.cjs +35 -0
- package/dist/__node_modules/fast-glob/out/providers/stream.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/stream.js +34 -0
- package/dist/__node_modules/fast-glob/out/providers/stream.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/sync.cjs +29 -0
- package/dist/__node_modules/fast-glob/out/providers/sync.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/sync.js +28 -0
- package/dist/__node_modules/fast-glob/out/providers/sync.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/transformers/entry.cjs +30 -0
- package/dist/__node_modules/fast-glob/out/providers/transformers/entry.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/providers/transformers/entry.js +29 -0
- package/dist/__node_modules/fast-glob/out/providers/transformers/entry.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/readers/async.cjs +41 -0
- package/dist/__node_modules/fast-glob/out/readers/async.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/readers/async.js +40 -0
- package/dist/__node_modules/fast-glob/out/readers/async.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/readers/reader.cjs +40 -0
- package/dist/__node_modules/fast-glob/out/readers/reader.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/readers/reader.js +39 -0
- package/dist/__node_modules/fast-glob/out/readers/reader.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/readers/stream.cjs +60 -0
- package/dist/__node_modules/fast-glob/out/readers/stream.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/readers/stream.js +59 -0
- package/dist/__node_modules/fast-glob/out/readers/stream.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/readers/sync.cjs +50 -0
- package/dist/__node_modules/fast-glob/out/readers/sync.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/readers/sync.js +49 -0
- package/dist/__node_modules/fast-glob/out/readers/sync.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/settings.cjs +59 -0
- package/dist/__node_modules/fast-glob/out/settings.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/settings.js +58 -0
- package/dist/__node_modules/fast-glob/out/settings.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/array.cjs +24 -0
- package/dist/__node_modules/fast-glob/out/utils/array.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/array.js +25 -0
- package/dist/__node_modules/fast-glob/out/utils/array.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/errno.cjs +10 -0
- package/dist/__node_modules/fast-glob/out/utils/errno.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/errno.js +11 -0
- package/dist/__node_modules/fast-glob/out/utils/errno.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/fs.cjs +22 -0
- package/dist/__node_modules/fast-glob/out/utils/fs.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/fs.js +23 -0
- package/dist/__node_modules/fast-glob/out/utils/fs.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/index.cjs +34 -0
- package/dist/__node_modules/fast-glob/out/utils/index.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/index.js +35 -0
- package/dist/__node_modules/fast-glob/out/utils/index.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/path.cjs +32 -0
- package/dist/__node_modules/fast-glob/out/utils/path.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/path.js +33 -0
- package/dist/__node_modules/fast-glob/out/utils/path.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/pattern.cjs +144 -0
- package/dist/__node_modules/fast-glob/out/utils/pattern.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/pattern.js +145 -0
- package/dist/__node_modules/fast-glob/out/utils/pattern.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/stream.cjs +21 -0
- package/dist/__node_modules/fast-glob/out/utils/stream.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/stream.js +22 -0
- package/dist/__node_modules/fast-glob/out/utils/stream.js.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/string.cjs +14 -0
- package/dist/__node_modules/fast-glob/out/utils/string.cjs.map +1 -0
- package/dist/__node_modules/fast-glob/out/utils/string.js +15 -0
- package/dist/__node_modules/fast-glob/out/utils/string.js.map +1 -0
- package/dist/__node_modules/fastq/queue.cjs +239 -0
- package/dist/__node_modules/fastq/queue.cjs.map +1 -0
- package/dist/__node_modules/fastq/queue.js +240 -0
- package/dist/__node_modules/fastq/queue.js.map +1 -0
- package/dist/__node_modules/fill-range/index.cjs +210 -0
- package/dist/__node_modules/fill-range/index.cjs.map +1 -0
- package/dist/__node_modules/fill-range/index.js +211 -0
- package/dist/__node_modules/fill-range/index.js.map +1 -0
- package/dist/__node_modules/function-bind/implementation.cjs +46 -0
- package/dist/__node_modules/function-bind/implementation.cjs.map +1 -0
- package/dist/__node_modules/function-bind/implementation.js +47 -0
- package/dist/__node_modules/function-bind/implementation.js.map +1 -0
- package/dist/__node_modules/function-bind/index.cjs +6 -0
- package/dist/__node_modules/function-bind/index.cjs.map +1 -0
- package/dist/__node_modules/function-bind/index.js +7 -0
- package/dist/__node_modules/function-bind/index.js.map +1 -0
- package/dist/__node_modules/glob-parent/index.cjs +28 -0
- package/dist/__node_modules/glob-parent/index.cjs.map +1 -0
- package/dist/__node_modules/glob-parent/index.js +29 -0
- package/dist/__node_modules/glob-parent/index.js.map +1 -0
- package/dist/__node_modules/globby/ignore.cjs +61 -0
- package/dist/__node_modules/globby/ignore.cjs.map +1 -0
- package/dist/__node_modules/globby/ignore.js +61 -0
- package/dist/__node_modules/globby/ignore.js.map +1 -0
- package/dist/__node_modules/globby/index.cjs +137 -0
- package/dist/__node_modules/globby/index.cjs.map +1 -0
- package/dist/__node_modules/globby/index.js +137 -0
- package/dist/__node_modules/globby/index.js.map +1 -0
- package/dist/__node_modules/globby/utilities.cjs +9 -0
- package/dist/__node_modules/globby/utilities.cjs.map +1 -0
- package/dist/__node_modules/globby/utilities.js +9 -0
- package/dist/__node_modules/globby/utilities.js.map +1 -0
- package/dist/__node_modules/hard-rejection/index.cjs +22 -0
- package/dist/__node_modules/hard-rejection/index.cjs.map +1 -0
- package/dist/__node_modules/hard-rejection/index.js +23 -0
- package/dist/__node_modules/hard-rejection/index.js.map +1 -0
- package/dist/__node_modules/has/src/index.cjs +6 -0
- package/dist/__node_modules/has/src/index.cjs.map +1 -0
- package/dist/__node_modules/has/src/index.js +7 -0
- package/dist/__node_modules/has/src/index.js.map +1 -0
- package/dist/__node_modules/ignore/index.cjs +368 -0
- package/dist/__node_modules/ignore/index.cjs.map +1 -0
- package/dist/__node_modules/ignore/index.js +369 -0
- package/dist/__node_modules/ignore/index.js.map +1 -0
- package/dist/__node_modules/is-arrayish/index.cjs +9 -0
- package/dist/__node_modules/is-arrayish/index.cjs.map +1 -0
- package/dist/__node_modules/is-arrayish/index.js +10 -0
- package/dist/__node_modules/is-arrayish/index.js.map +1 -0
- package/dist/__node_modules/is-core-module/core.json.cjs +487 -0
- package/dist/__node_modules/is-core-module/core.json.cjs.map +1 -0
- package/dist/__node_modules/is-core-module/core.json.js +487 -0
- package/dist/__node_modules/is-core-module/core.json.js.map +1 -0
- package/dist/__node_modules/is-core-module/index.cjs +61 -0
- package/dist/__node_modules/is-core-module/index.cjs.map +1 -0
- package/dist/__node_modules/is-core-module/index.js +62 -0
- package/dist/__node_modules/is-core-module/index.js.map +1 -0
- package/dist/__node_modules/is-extglob/index.cjs +21 -0
- package/dist/__node_modules/is-extglob/index.cjs.map +1 -0
- package/dist/__node_modules/is-extglob/index.js +22 -0
- package/dist/__node_modules/is-extglob/index.js.map +1 -0
- package/dist/__node_modules/is-glob/index.cjs +135 -0
- package/dist/__node_modules/is-glob/index.cjs.map +1 -0
- package/dist/__node_modules/is-glob/index.js +136 -0
- package/dist/__node_modules/is-glob/index.js.map +1 -0
- package/dist/__node_modules/is-number/index.cjs +18 -0
- package/dist/__node_modules/is-number/index.cjs.map +1 -0
- package/dist/__node_modules/is-number/index.js +19 -0
- package/dist/__node_modules/is-number/index.js.map +1 -0
- package/dist/__node_modules/is-plain-obj/index.cjs +8 -0
- package/dist/__node_modules/is-plain-obj/index.cjs.map +1 -0
- package/dist/__node_modules/is-plain-obj/index.js +9 -0
- package/dist/__node_modules/is-plain-obj/index.js.map +1 -0
- package/dist/__node_modules/isexe/index.cjs +55 -0
- package/dist/__node_modules/isexe/index.cjs.map +1 -0
- package/dist/__node_modules/isexe/index.js +56 -0
- package/dist/__node_modules/isexe/index.js.map +1 -0
- package/dist/__node_modules/isexe/mode.cjs +40 -0
- package/dist/__node_modules/isexe/mode.cjs.map +1 -0
- package/dist/__node_modules/isexe/mode.js +40 -0
- package/dist/__node_modules/isexe/mode.js.map +1 -0
- package/dist/__node_modules/isexe/windows.cjs +47 -0
- package/dist/__node_modules/isexe/windows.cjs.map +1 -0
- package/dist/__node_modules/isexe/windows.js +47 -0
- package/dist/__node_modules/isexe/windows.js.map +1 -0
- package/dist/__node_modules/js-tokens/index.cjs +27 -0
- package/dist/__node_modules/js-tokens/index.cjs.map +1 -0
- package/dist/__node_modules/js-tokens/index.js +26 -0
- package/dist/__node_modules/js-tokens/index.js.map +1 -0
- package/dist/__node_modules/json-parse-even-better-errors/index.cjs +89 -0
- package/dist/__node_modules/json-parse-even-better-errors/index.cjs.map +1 -0
- package/dist/__node_modules/json-parse-even-better-errors/index.js +90 -0
- package/dist/__node_modules/json-parse-even-better-errors/index.js.map +1 -0
- package/dist/__node_modules/kind-of/index.cjs +128 -0
- package/dist/__node_modules/kind-of/index.cjs.map +1 -0
- package/dist/__node_modules/kind-of/index.js +129 -0
- package/dist/__node_modules/kind-of/index.js.map +1 -0
- package/dist/__node_modules/lines-and-columns/build/index.cjs +64 -0
- package/dist/__node_modules/lines-and-columns/build/index.cjs.map +1 -0
- package/dist/__node_modules/lines-and-columns/build/index.js +63 -0
- package/dist/__node_modules/lines-and-columns/build/index.js.map +1 -0
- package/dist/__node_modules/map-obj/index.cjs +46 -0
- package/dist/__node_modules/map-obj/index.cjs.map +1 -0
- package/dist/__node_modules/map-obj/index.js +47 -0
- package/dist/__node_modules/map-obj/index.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/find-up/index.cjs +48 -0
- package/dist/__node_modules/meow/__node_modules/find-up/index.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/find-up/index.js +48 -0
- package/dist/__node_modules/meow/__node_modules/find-up/index.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/git-host-info.cjs +165 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/git-host-info.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/git-host-info.js +166 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/git-host-info.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/git-host.cjs +90 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/git-host.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/git-host.js +91 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/git-host.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/index.cjs +124 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/index.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/index.js +123 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/index.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/parse-url.cjs +50 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/parse-url.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/parse-url.js +51 -0
- package/dist/__node_modules/meow/__node_modules/hosted-git-info/lib/parse-url.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/indent-string/index.cjs +34 -0
- package/dist/__node_modules/meow/__node_modules/indent-string/index.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/indent-string/index.js +35 -0
- package/dist/__node_modules/meow/__node_modules/indent-string/index.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/locate-path/index.cjs +38 -0
- package/dist/__node_modules/meow/__node_modules/locate-path/index.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/locate-path/index.js +38 -0
- package/dist/__node_modules/meow/__node_modules/locate-path/index.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/lru-cache/index.cjs +834 -0
- package/dist/__node_modules/meow/__node_modules/lru-cache/index.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/lru-cache/index.js +835 -0
- package/dist/__node_modules/meow/__node_modules/lru-cache/index.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/extract_description.cjs +23 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/extract_description.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/extract_description.js +24 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/extract_description.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/fixer.cjs +438 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/fixer.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/fixer.js +439 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/fixer.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/make_warning.cjs +25 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/make_warning.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/make_warning.js +26 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/make_warning.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/normalize.cjs +56 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/normalize.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/normalize.js +57 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/normalize.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/typos.json.cjs +41 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/typos.json.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/typos.json.js +41 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/typos.json.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/warning_messages.json.cjs +90 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/warning_messages.json.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/warning_messages.json.js +90 -0
- package/dist/__node_modules/meow/__node_modules/normalize-package-data/lib/warning_messages.json.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/hosted-git-info/git-host-info.cjs +158 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/hosted-git-info/git-host-info.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/hosted-git-info/git-host-info.js +159 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/hosted-git-info/git-host-info.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/hosted-git-info/git-host.cjs +87 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/hosted-git-info/git-host.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/hosted-git-info/git-host.js +88 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/hosted-git-info/git-host.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/hosted-git-info/index.cjs +179 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/hosted-git-info/index.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/hosted-git-info/index.js +178 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/hosted-git-info/index.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/lru-cache/index.cjs +267 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/lru-cache/index.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/lru-cache/index.js +268 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/lru-cache/index.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/extract_description.cjs +19 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/extract_description.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/extract_description.js +20 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/extract_description.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/fixer.cjs +438 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/fixer.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/fixer.js +439 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/fixer.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/make_warning.cjs +25 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/make_warning.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/make_warning.js +26 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/make_warning.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/normalize.cjs +56 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/normalize.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/normalize.js +57 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/normalize.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/typos.json.cjs +41 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/typos.json.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/typos.json.js +41 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/typos.json.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/warning_messages.json.cjs +90 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/warning_messages.json.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/warning_messages.json.js +90 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/__node_modules/normalize-package-data/lib/warning_messages.json.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/index.cjs +20 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/index.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/index.js +20 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg/index.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg-up/index.cjs +17 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg-up/index.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg-up/index.js +17 -0
- package/dist/__node_modules/meow/__node_modules/read-pkg-up/index.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/redent/index.cjs +8 -0
- package/dist/__node_modules/meow/__node_modules/redent/index.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/redent/index.js +9 -0
- package/dist/__node_modules/meow/__node_modules/redent/index.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/strip-indent/index.cjs +12 -0
- package/dist/__node_modules/meow/__node_modules/strip-indent/index.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/strip-indent/index.js +13 -0
- package/dist/__node_modules/meow/__node_modules/strip-indent/index.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yallist/iterator.cjs +19 -0
- package/dist/__node_modules/meow/__node_modules/yallist/iterator.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yallist/iterator.js +19 -0
- package/dist/__node_modules/meow/__node_modules/yallist/iterator.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yallist/yallist.cjs +366 -0
- package/dist/__node_modules/meow/__node_modules/yallist/yallist.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yallist/yallist.js +367 -0
- package/dist/__node_modules/meow/__node_modules/yallist/yallist.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/index.cjs +56 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/index.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/index.js +57 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/index.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/string-utils.cjs +63 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/string-utils.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/string-utils.js +63 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/string-utils.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs +39 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/tokenize-arg-string.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/tokenize-arg-string.js +39 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/tokenize-arg-string.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/yargs-parser-types.cjs +15 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/yargs-parser-types.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/yargs-parser-types.js +16 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/yargs-parser-types.js.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/yargs-parser.cjs +847 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/yargs-parser.cjs.map +1 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/yargs-parser.js +847 -0
- package/dist/__node_modules/meow/__node_modules/yargs-parser/build/lib/yargs-parser.js.map +1 -0
- package/dist/__node_modules/meow/index.cjs +202 -0
- package/dist/__node_modules/meow/index.cjs.map +1 -0
- package/dist/__node_modules/meow/index.js +203 -0
- package/dist/__node_modules/meow/index.js.map +1 -0
- package/dist/__node_modules/merge-stream/index.cjs +37 -0
- package/dist/__node_modules/merge-stream/index.cjs.map +1 -0
- package/dist/__node_modules/merge-stream/index.js +38 -0
- package/dist/__node_modules/merge-stream/index.js.map +1 -0
- package/dist/__node_modules/merge2/index.cjs +116 -0
- package/dist/__node_modules/merge2/index.cjs.map +1 -0
- package/dist/__node_modules/merge2/index.js +117 -0
- package/dist/__node_modules/merge2/index.js.map +1 -0
- package/dist/__node_modules/micromatch/index.cjs +164 -0
- package/dist/__node_modules/micromatch/index.cjs.map +1 -0
- package/dist/__node_modules/micromatch/index.js +165 -0
- package/dist/__node_modules/micromatch/index.js.map +1 -0
- package/dist/__node_modules/min-indent/index.cjs +10 -0
- package/dist/__node_modules/min-indent/index.cjs.map +1 -0
- package/dist/__node_modules/min-indent/index.js +11 -0
- package/dist/__node_modules/min-indent/index.js.map +1 -0
- package/dist/__node_modules/minimist-options/index.cjs +91 -0
- package/dist/__node_modules/minimist-options/index.cjs.map +1 -0
- package/dist/__node_modules/minimist-options/index.js +92 -0
- package/dist/__node_modules/minimist-options/index.js.map +1 -0
- package/dist/__node_modules/parse-json/index.cjs +52 -0
- package/dist/__node_modules/parse-json/index.cjs.map +1 -0
- package/dist/__node_modules/parse-json/index.js +53 -0
- package/dist/__node_modules/parse-json/index.js.map +1 -0
- package/dist/__node_modules/path-key/index.cjs +14 -0
- package/dist/__node_modules/path-key/index.cjs.map +1 -0
- package/dist/__node_modules/path-key/index.js +15 -0
- package/dist/__node_modules/path-key/index.js.map +1 -0
- package/dist/__node_modules/path-type/index.cjs +41 -0
- package/dist/__node_modules/path-type/index.cjs.map +1 -0
- package/dist/__node_modules/path-type/index.js +42 -0
- package/dist/__node_modules/path-type/index.js.map +1 -0
- package/dist/__node_modules/picomatch/index.cjs +7 -0
- package/dist/__node_modules/picomatch/index.cjs.map +1 -0
- package/dist/__node_modules/picomatch/index.js +6 -0
- package/dist/__node_modules/picomatch/index.js.map +1 -0
- package/dist/__node_modules/picomatch/lib/constants.cjs +194 -0
- package/dist/__node_modules/picomatch/lib/constants.cjs.map +1 -0
- package/dist/__node_modules/picomatch/lib/constants.js +195 -0
- package/dist/__node_modules/picomatch/lib/constants.js.map +1 -0
- package/dist/__node_modules/picomatch/lib/parse.cjs +780 -0
- package/dist/__node_modules/picomatch/lib/parse.cjs.map +1 -0
- package/dist/__node_modules/picomatch/lib/parse.js +781 -0
- package/dist/__node_modules/picomatch/lib/parse.js.map +1 -0
- package/dist/__node_modules/picomatch/lib/picomatch.cjs +146 -0
- package/dist/__node_modules/picomatch/lib/picomatch.cjs.map +1 -0
- package/dist/__node_modules/picomatch/lib/picomatch.js +147 -0
- package/dist/__node_modules/picomatch/lib/picomatch.js.map +1 -0
- package/dist/__node_modules/picomatch/lib/scan.cjs +332 -0
- package/dist/__node_modules/picomatch/lib/scan.cjs.map +1 -0
- package/dist/__node_modules/picomatch/lib/scan.js +333 -0
- package/dist/__node_modules/picomatch/lib/scan.js.map +1 -0
- package/dist/__node_modules/picomatch/lib/utils.cjs +64 -0
- package/dist/__node_modules/picomatch/lib/utils.cjs.map +1 -0
- package/dist/__node_modules/picomatch/lib/utils.js +65 -0
- package/dist/__node_modules/picomatch/lib/utils.js.map +1 -0
- package/dist/__node_modules/queue-microtask/index.cjs +9 -0
- package/dist/__node_modules/queue-microtask/index.cjs.map +1 -0
- package/dist/__node_modules/queue-microtask/index.js +10 -0
- package/dist/__node_modules/queue-microtask/index.js.map +1 -0
- package/dist/__node_modules/quick-lru/index.cjs +234 -0
- package/dist/__node_modules/quick-lru/index.cjs.map +1 -0
- package/dist/__node_modules/quick-lru/index.js +235 -0
- package/dist/__node_modules/quick-lru/index.js.map +1 -0
- package/dist/__node_modules/reusify/reusify.cjs +27 -0
- package/dist/__node_modules/reusify/reusify.cjs.map +1 -0
- package/dist/__node_modules/reusify/reusify.js +28 -0
- package/dist/__node_modules/reusify/reusify.js.map +1 -0
- package/dist/__node_modules/run-parallel/index.cjs +52 -0
- package/dist/__node_modules/run-parallel/index.cjs.map +1 -0
- package/dist/__node_modules/run-parallel/index.js +53 -0
- package/dist/__node_modules/run-parallel/index.js.map +1 -0
- package/dist/__node_modules/shebang-command/index.cjs +17 -0
- package/dist/__node_modules/shebang-command/index.cjs.map +1 -0
- package/dist/__node_modules/shebang-command/index.js +18 -0
- package/dist/__node_modules/shebang-command/index.js.map +1 -0
- package/dist/__node_modules/shebang-regex/index.cjs +4 -0
- package/dist/__node_modules/shebang-regex/index.cjs.map +1 -0
- package/dist/__node_modules/shebang-regex/index.js +5 -0
- package/dist/__node_modules/shebang-regex/index.js.map +1 -0
- package/dist/__node_modules/signal-exit/index.cjs +148 -0
- package/dist/__node_modules/signal-exit/index.cjs.map +1 -0
- package/dist/__node_modules/signal-exit/index.js +149 -0
- package/dist/__node_modules/signal-exit/index.js.map +1 -0
- package/dist/__node_modules/signal-exit/signals.cjs +45 -0
- package/dist/__node_modules/signal-exit/signals.cjs.map +1 -0
- package/dist/__node_modules/signal-exit/signals.js +45 -0
- package/dist/__node_modules/signal-exit/signals.js.map +1 -0
- package/dist/__node_modules/slash/index.cjs +11 -0
- package/dist/__node_modules/slash/index.cjs.map +1 -0
- package/dist/__node_modules/slash/index.js +12 -0
- package/dist/__node_modules/slash/index.js.map +1 -0
- package/dist/__node_modules/spdx-correct/index.cjs +317 -0
- package/dist/__node_modules/spdx-correct/index.cjs.map +1 -0
- package/dist/__node_modules/spdx-correct/index.js +318 -0
- package/dist/__node_modules/spdx-correct/index.js.map +1 -0
- package/dist/__node_modules/spdx-exceptions/index.json.cjs +43 -0
- package/dist/__node_modules/spdx-exceptions/index.json.cjs.map +1 -0
- package/dist/__node_modules/spdx-exceptions/index.json.js +44 -0
- package/dist/__node_modules/spdx-exceptions/index.json.js.map +1 -0
- package/dist/__node_modules/spdx-expression-parse/index.cjs +10 -0
- package/dist/__node_modules/spdx-expression-parse/index.cjs.map +1 -0
- package/dist/__node_modules/spdx-expression-parse/index.js +11 -0
- package/dist/__node_modules/spdx-expression-parse/index.js.map +1 -0
- package/dist/__node_modules/spdx-expression-parse/parse.cjs +110 -0
- package/dist/__node_modules/spdx-expression-parse/parse.cjs.map +1 -0
- package/dist/__node_modules/spdx-expression-parse/parse.js +111 -0
- package/dist/__node_modules/spdx-expression-parse/parse.js.map +1 -0
- package/dist/__node_modules/spdx-expression-parse/scan.cjs +103 -0
- package/dist/__node_modules/spdx-expression-parse/scan.cjs.map +1 -0
- package/dist/__node_modules/spdx-expression-parse/scan.js +104 -0
- package/dist/__node_modules/spdx-expression-parse/scan.js.map +1 -0
- package/dist/__node_modules/spdx-license-ids/deprecated.json.cjs +30 -0
- package/dist/__node_modules/spdx-license-ids/deprecated.json.cjs.map +1 -0
- package/dist/__node_modules/spdx-license-ids/deprecated.json.js +31 -0
- package/dist/__node_modules/spdx-license-ids/deprecated.json.js.map +1 -0
- package/dist/__node_modules/spdx-license-ids/index.json.cjs +470 -0
- package/dist/__node_modules/spdx-license-ids/index.json.cjs.map +1 -0
- package/dist/__node_modules/spdx-license-ids/index.json.js +471 -0
- package/dist/__node_modules/spdx-license-ids/index.json.js.map +1 -0
- package/dist/__node_modules/to-regex-range/index.cjs +215 -0
- package/dist/__node_modules/to-regex-range/index.cjs.map +1 -0
- package/dist/__node_modules/to-regex-range/index.js +216 -0
- package/dist/__node_modules/to-regex-range/index.js.map +1 -0
- package/dist/__node_modules/trim-newlines/index.cjs +29 -0
- package/dist/__node_modules/trim-newlines/index.cjs.map +1 -0
- package/dist/__node_modules/trim-newlines/index.js +30 -0
- package/dist/__node_modules/trim-newlines/index.js.map +1 -0
- package/dist/__node_modules/validate-npm-package-license/index.cjs +70 -0
- package/dist/__node_modules/validate-npm-package-license/index.cjs.map +1 -0
- package/dist/__node_modules/validate-npm-package-license/index.js +71 -0
- package/dist/__node_modules/validate-npm-package-license/index.js.map +1 -0
- package/dist/__node_modules/which/which.cjs +95 -0
- package/dist/__node_modules/which/which.cjs.map +1 -0
- package/dist/__node_modules/which/which.js +96 -0
- package/dist/__node_modules/which/which.js.map +1 -0
- package/dist/_virtual/_commonjsHelpers.cjs +5 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -0
- package/dist/_virtual/_commonjsHelpers.js +5 -0
- package/dist/_virtual/_commonjsHelpers.js.map +1 -0
- package/dist/_virtual/array.cjs +5 -0
- package/dist/_virtual/array.cjs.map +1 -0
- package/dist/_virtual/array.js +5 -0
- package/dist/_virtual/array.js.map +1 -0
- package/dist/_virtual/async.cjs +5 -0
- package/dist/_virtual/async.cjs.map +1 -0
- package/dist/_virtual/async.js +5 -0
- package/dist/_virtual/async.js.map +1 -0
- package/dist/_virtual/async2.cjs +5 -0
- package/dist/_virtual/async2.cjs.map +1 -0
- package/dist/_virtual/async2.js +5 -0
- package/dist/_virtual/async2.js.map +1 -0
- package/dist/_virtual/async3.cjs +5 -0
- package/dist/_virtual/async3.cjs.map +1 -0
- package/dist/_virtual/async3.js +5 -0
- package/dist/_virtual/async3.js.map +1 -0
- package/dist/_virtual/async4.cjs +5 -0
- package/dist/_virtual/async4.cjs.map +1 -0
- package/dist/_virtual/async4.js +5 -0
- package/dist/_virtual/async4.js.map +1 -0
- package/dist/_virtual/async5.cjs +5 -0
- package/dist/_virtual/async5.cjs.map +1 -0
- package/dist/_virtual/async5.js +5 -0
- package/dist/_virtual/async5.js.map +1 -0
- package/dist/_virtual/async6.cjs +5 -0
- package/dist/_virtual/async6.cjs.map +1 -0
- package/dist/_virtual/async6.js +5 -0
- package/dist/_virtual/async6.js.map +1 -0
- package/dist/_virtual/common.cjs +5 -0
- package/dist/_virtual/common.cjs.map +1 -0
- package/dist/_virtual/common.js +5 -0
- package/dist/_virtual/common.js.map +1 -0
- package/dist/_virtual/common2.cjs +5 -0
- package/dist/_virtual/common2.cjs.map +1 -0
- package/dist/_virtual/common2.js +5 -0
- package/dist/_virtual/common2.js.map +1 -0
- package/dist/_virtual/constants.cjs +5 -0
- package/dist/_virtual/constants.cjs.map +1 -0
- package/dist/_virtual/constants.js +5 -0
- package/dist/_virtual/constants.js.map +1 -0
- package/dist/_virtual/deep.cjs +5 -0
- package/dist/_virtual/deep.cjs.map +1 -0
- package/dist/_virtual/deep.js +5 -0
- package/dist/_virtual/deep.js.map +1 -0
- package/dist/_virtual/entry.cjs +5 -0
- package/dist/_virtual/entry.cjs.map +1 -0
- package/dist/_virtual/entry.js +5 -0
- package/dist/_virtual/entry.js.map +1 -0
- package/dist/_virtual/entry2.cjs +5 -0
- package/dist/_virtual/entry2.cjs.map +1 -0
- package/dist/_virtual/entry2.js +5 -0
- package/dist/_virtual/entry2.js.map +1 -0
- package/dist/_virtual/errno.cjs +5 -0
- package/dist/_virtual/errno.cjs.map +1 -0
- package/dist/_virtual/errno.js +5 -0
- package/dist/_virtual/errno.js.map +1 -0
- package/dist/_virtual/error.cjs +5 -0
- package/dist/_virtual/error.cjs.map +1 -0
- package/dist/_virtual/error.js +5 -0
- package/dist/_virtual/error.js.map +1 -0
- package/dist/_virtual/escape.cjs +5 -0
- package/dist/_virtual/escape.cjs.map +1 -0
- package/dist/_virtual/escape.js +5 -0
- package/dist/_virtual/escape.js.map +1 -0
- package/dist/_virtual/fs.cjs +5 -0
- package/dist/_virtual/fs.cjs.map +1 -0
- package/dist/_virtual/fs.js +5 -0
- package/dist/_virtual/fs.js.map +1 -0
- package/dist/_virtual/fs2.cjs +5 -0
- package/dist/_virtual/fs2.cjs.map +1 -0
- package/dist/_virtual/fs2.js +5 -0
- package/dist/_virtual/fs2.js.map +1 -0
- package/dist/_virtual/fs3.cjs +5 -0
- package/dist/_virtual/fs3.cjs.map +1 -0
- package/dist/_virtual/fs3.js +5 -0
- package/dist/_virtual/fs3.js.map +1 -0
- package/dist/_virtual/fs4.cjs +5 -0
- package/dist/_virtual/fs4.cjs.map +1 -0
- package/dist/_virtual/fs4.js +5 -0
- package/dist/_virtual/fs4.js.map +1 -0
- package/dist/_virtual/identifier.cjs +5 -0
- package/dist/_virtual/identifier.cjs.map +1 -0
- package/dist/_virtual/identifier.js +5 -0
- package/dist/_virtual/identifier.js.map +1 -0
- package/dist/_virtual/index.cjs +13 -0
- package/dist/_virtual/index.cjs.map +1 -0
- package/dist/_virtual/index.js +14 -0
- package/dist/_virtual/index.js.map +1 -0
- package/dist/_virtual/index10.cjs +13 -0
- package/dist/_virtual/index10.cjs.map +1 -0
- package/dist/_virtual/index10.js +14 -0
- package/dist/_virtual/index10.js.map +1 -0
- package/dist/_virtual/index11.cjs +5 -0
- package/dist/_virtual/index11.cjs.map +1 -0
- package/dist/_virtual/index11.js +5 -0
- package/dist/_virtual/index11.js.map +1 -0
- package/dist/_virtual/index12.cjs +5 -0
- package/dist/_virtual/index12.cjs.map +1 -0
- package/dist/_virtual/index12.js +5 -0
- package/dist/_virtual/index12.js.map +1 -0
- package/dist/_virtual/index13.cjs +5 -0
- package/dist/_virtual/index13.cjs.map +1 -0
- package/dist/_virtual/index13.js +5 -0
- package/dist/_virtual/index13.js.map +1 -0
- package/dist/_virtual/index14.cjs +5 -0
- package/dist/_virtual/index14.cjs.map +1 -0
- package/dist/_virtual/index14.js +5 -0
- package/dist/_virtual/index14.js.map +1 -0
- package/dist/_virtual/index15.cjs +5 -0
- package/dist/_virtual/index15.cjs.map +1 -0
- package/dist/_virtual/index15.js +5 -0
- package/dist/_virtual/index15.js.map +1 -0
- package/dist/_virtual/index16.cjs +13 -0
- package/dist/_virtual/index16.cjs.map +1 -0
- package/dist/_virtual/index16.js +14 -0
- package/dist/_virtual/index16.js.map +1 -0
- package/dist/_virtual/index17.cjs +13 -0
- package/dist/_virtual/index17.cjs.map +1 -0
- package/dist/_virtual/index17.js +14 -0
- package/dist/_virtual/index17.js.map +1 -0
- package/dist/_virtual/index18.cjs +13 -0
- package/dist/_virtual/index18.cjs.map +1 -0
- package/dist/_virtual/index18.js +14 -0
- package/dist/_virtual/index18.js.map +1 -0
- package/dist/_virtual/index19.cjs +5 -0
- package/dist/_virtual/index19.cjs.map +1 -0
- package/dist/_virtual/index19.js +5 -0
- package/dist/_virtual/index19.js.map +1 -0
- package/dist/_virtual/index2.cjs +13 -0
- package/dist/_virtual/index2.cjs.map +1 -0
- package/dist/_virtual/index2.js +14 -0
- package/dist/_virtual/index2.js.map +1 -0
- package/dist/_virtual/index20.cjs +5 -0
- package/dist/_virtual/index20.cjs.map +1 -0
- package/dist/_virtual/index20.js +5 -0
- package/dist/_virtual/index20.js.map +1 -0
- package/dist/_virtual/index21.cjs +5 -0
- package/dist/_virtual/index21.cjs.map +1 -0
- package/dist/_virtual/index21.js +5 -0
- package/dist/_virtual/index21.js.map +1 -0
- package/dist/_virtual/index22.cjs +5 -0
- package/dist/_virtual/index22.cjs.map +1 -0
- package/dist/_virtual/index22.js +5 -0
- package/dist/_virtual/index22.js.map +1 -0
- package/dist/_virtual/index3.cjs +13 -0
- package/dist/_virtual/index3.cjs.map +1 -0
- package/dist/_virtual/index3.js +14 -0
- package/dist/_virtual/index3.js.map +1 -0
- package/dist/_virtual/index4.cjs +13 -0
- package/dist/_virtual/index4.cjs.map +1 -0
- package/dist/_virtual/index4.js +14 -0
- package/dist/_virtual/index4.js.map +1 -0
- package/dist/_virtual/index5.cjs +5 -0
- package/dist/_virtual/index5.cjs.map +1 -0
- package/dist/_virtual/index5.js +5 -0
- package/dist/_virtual/index5.js.map +1 -0
- package/dist/_virtual/index6.cjs +5 -0
- package/dist/_virtual/index6.cjs.map +1 -0
- package/dist/_virtual/index6.js +5 -0
- package/dist/_virtual/index6.js.map +1 -0
- package/dist/_virtual/index7.cjs +13 -0
- package/dist/_virtual/index7.cjs.map +1 -0
- package/dist/_virtual/index7.js +14 -0
- package/dist/_virtual/index7.js.map +1 -0
- package/dist/_virtual/index8.cjs +13 -0
- package/dist/_virtual/index8.cjs.map +1 -0
- package/dist/_virtual/index8.js +14 -0
- package/dist/_virtual/index8.js.map +1 -0
- package/dist/_virtual/index9.cjs +13 -0
- package/dist/_virtual/index9.cjs.map +1 -0
- package/dist/_virtual/index9.js +14 -0
- package/dist/_virtual/index9.js.map +1 -0
- package/dist/_virtual/keyword.cjs +5 -0
- package/dist/_virtual/keyword.cjs.map +1 -0
- package/dist/_virtual/keyword.js +5 -0
- package/dist/_virtual/keyword.js.map +1 -0
- package/dist/_virtual/matcher.cjs +5 -0
- package/dist/_virtual/matcher.cjs.map +1 -0
- package/dist/_virtual/matcher.js +5 -0
- package/dist/_virtual/matcher.js.map +1 -0
- package/dist/_virtual/partial.cjs +5 -0
- package/dist/_virtual/partial.cjs.map +1 -0
- package/dist/_virtual/partial.js +5 -0
- package/dist/_virtual/partial.js.map +1 -0
- package/dist/_virtual/path.cjs +5 -0
- package/dist/_virtual/path.cjs.map +1 -0
- package/dist/_virtual/path.js +5 -0
- package/dist/_virtual/path.js.map +1 -0
- package/dist/_virtual/pattern.cjs +5 -0
- package/dist/_virtual/pattern.cjs.map +1 -0
- package/dist/_virtual/pattern.js +5 -0
- package/dist/_virtual/pattern.js.map +1 -0
- package/dist/_virtual/patterns.cjs +5 -0
- package/dist/_virtual/patterns.cjs.map +1 -0
- package/dist/_virtual/patterns.js +5 -0
- package/dist/_virtual/patterns.js.map +1 -0
- package/dist/_virtual/provider.cjs +5 -0
- package/dist/_virtual/provider.cjs.map +1 -0
- package/dist/_virtual/provider.js +5 -0
- package/dist/_virtual/provider.js.map +1 -0
- package/dist/_virtual/queue.cjs +13 -0
- package/dist/_virtual/queue.cjs.map +1 -0
- package/dist/_virtual/queue.js +14 -0
- package/dist/_virtual/queue.js.map +1 -0
- package/dist/_virtual/reader.cjs +5 -0
- package/dist/_virtual/reader.cjs.map +1 -0
- package/dist/_virtual/reader.js +5 -0
- package/dist/_virtual/reader.js.map +1 -0
- package/dist/_virtual/reader2.cjs +5 -0
- package/dist/_virtual/reader2.cjs.map +1 -0
- package/dist/_virtual/reader2.js +5 -0
- package/dist/_virtual/reader2.js.map +1 -0
- package/dist/_virtual/settings.cjs +5 -0
- package/dist/_virtual/settings.cjs.map +1 -0
- package/dist/_virtual/settings.js +5 -0
- package/dist/_virtual/settings.js.map +1 -0
- package/dist/_virtual/settings2.cjs +5 -0
- package/dist/_virtual/settings2.cjs.map +1 -0
- package/dist/_virtual/settings2.js +5 -0
- package/dist/_virtual/settings2.js.map +1 -0
- package/dist/_virtual/settings3.cjs +5 -0
- package/dist/_virtual/settings3.cjs.map +1 -0
- package/dist/_virtual/settings3.js +5 -0
- package/dist/_virtual/settings3.js.map +1 -0
- package/dist/_virtual/settings4.cjs +5 -0
- package/dist/_virtual/settings4.cjs.map +1 -0
- package/dist/_virtual/settings4.js +5 -0
- package/dist/_virtual/settings4.js.map +1 -0
- package/dist/_virtual/signals.cjs +13 -0
- package/dist/_virtual/signals.cjs.map +1 -0
- package/dist/_virtual/signals.js +14 -0
- package/dist/_virtual/signals.js.map +1 -0
- package/dist/_virtual/stream.cjs +5 -0
- package/dist/_virtual/stream.cjs.map +1 -0
- package/dist/_virtual/stream.js +5 -0
- package/dist/_virtual/stream.js.map +1 -0
- package/dist/_virtual/stream2.cjs +5 -0
- package/dist/_virtual/stream2.cjs.map +1 -0
- package/dist/_virtual/stream2.js +5 -0
- package/dist/_virtual/stream2.js.map +1 -0
- package/dist/_virtual/stream3.cjs +5 -0
- package/dist/_virtual/stream3.cjs.map +1 -0
- package/dist/_virtual/stream3.js +5 -0
- package/dist/_virtual/stream3.js.map +1 -0
- package/dist/_virtual/stream4.cjs +5 -0
- package/dist/_virtual/stream4.cjs.map +1 -0
- package/dist/_virtual/stream4.js +5 -0
- package/dist/_virtual/stream4.js.map +1 -0
- package/dist/_virtual/string.cjs +5 -0
- package/dist/_virtual/string.cjs.map +1 -0
- package/dist/_virtual/string.js +5 -0
- package/dist/_virtual/string.js.map +1 -0
- package/dist/_virtual/sync.cjs +5 -0
- package/dist/_virtual/sync.cjs.map +1 -0
- package/dist/_virtual/sync.js +5 -0
- package/dist/_virtual/sync.js.map +1 -0
- package/dist/_virtual/sync2.cjs +5 -0
- package/dist/_virtual/sync2.cjs.map +1 -0
- package/dist/_virtual/sync2.js +5 -0
- package/dist/_virtual/sync2.js.map +1 -0
- package/dist/_virtual/sync3.cjs +5 -0
- package/dist/_virtual/sync3.cjs.map +1 -0
- package/dist/_virtual/sync3.js +5 -0
- package/dist/_virtual/sync3.js.map +1 -0
- package/dist/_virtual/sync4.cjs +5 -0
- package/dist/_virtual/sync4.cjs.map +1 -0
- package/dist/_virtual/sync4.js +5 -0
- package/dist/_virtual/sync4.js.map +1 -0
- package/dist/_virtual/sync5.cjs +5 -0
- package/dist/_virtual/sync5.cjs.map +1 -0
- package/dist/_virtual/sync5.js +5 -0
- package/dist/_virtual/sync5.js.map +1 -0
- package/dist/_virtual/sync6.cjs +5 -0
- package/dist/_virtual/sync6.cjs.map +1 -0
- package/dist/_virtual/sync6.js +5 -0
- package/dist/_virtual/sync6.js.map +1 -0
- package/dist/_virtual/tasks.cjs +5 -0
- package/dist/_virtual/tasks.cjs.map +1 -0
- package/dist/_virtual/tasks.js +5 -0
- package/dist/_virtual/tasks.js.map +1 -0
- package/dist/_virtual/utils.cjs +5 -0
- package/dist/_virtual/utils.cjs.map +1 -0
- package/dist/_virtual/utils.js +5 -0
- package/dist/_virtual/utils.js.map +1 -0
- package/dist/_virtual/utils2.cjs +5 -0
- package/dist/_virtual/utils2.cjs.map +1 -0
- package/dist/_virtual/utils2.js +5 -0
- package/dist/_virtual/utils2.js.map +1 -0
- package/dist/cli.cjs +78 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +77 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/assertExists.cjs +9 -0
- package/dist/lib/assertExists.cjs.map +1 -0
- package/dist/lib/assertExists.d.ts +1 -0
- package/dist/lib/assertExists.js +9 -0
- package/dist/lib/assertExists.js.map +1 -0
- package/dist/lib/framework.cjs +73 -0
- package/dist/lib/framework.cjs.map +1 -0
- package/dist/lib/framework.d.ts +37 -0
- package/dist/lib/framework.js +73 -0
- package/dist/lib/framework.js.map +1 -0
- package/dist/lib/listr.cjs +13 -0
- package/dist/lib/listr.cjs.map +1 -0
- package/dist/lib/listr.d.ts +3 -0
- package/dist/lib/listr.js +13 -0
- package/dist/lib/listr.js.map +1 -0
- package/dist/lib/packageManager.cjs +39 -0
- package/dist/lib/packageManager.cjs.map +1 -0
- package/dist/lib/packageManager.d.ts +14 -0
- package/dist/lib/packageManager.js +39 -0
- package/dist/lib/packageManager.js.map +1 -0
- package/dist/lib/prompt.cjs +14 -0
- package/dist/lib/prompt.cjs.map +1 -0
- package/dist/lib/prompt.d.ts +10 -0
- package/dist/lib/prompt.js +14 -0
- package/dist/lib/prompt.js.map +1 -0
- package/dist/lib/repositoryDomain.cjs +130 -0
- package/dist/lib/repositoryDomain.cjs.map +1 -0
- package/dist/lib/repositoryDomain.d.ts +25 -0
- package/dist/lib/repositoryDomain.js +130 -0
- package/dist/lib/repositoryDomain.js.map +1 -0
- package/dist/packages/init/__node_modules/execa/index.cjs +141 -0
- package/dist/packages/init/__node_modules/execa/index.cjs.map +1 -0
- package/dist/packages/init/__node_modules/execa/index.js +141 -0
- package/dist/packages/init/__node_modules/execa/index.js.map +1 -0
- package/dist/packages/init/__node_modules/execa/lib/command.cjs +35 -0
- package/dist/packages/init/__node_modules/execa/lib/command.cjs.map +1 -0
- package/dist/packages/init/__node_modules/execa/lib/command.js +35 -0
- package/dist/packages/init/__node_modules/execa/lib/command.js.map +1 -0
- package/dist/packages/init/__node_modules/execa/lib/error.cjs +73 -0
- package/dist/packages/init/__node_modules/execa/lib/error.cjs.map +1 -0
- package/dist/packages/init/__node_modules/execa/lib/error.js +73 -0
- package/dist/packages/init/__node_modules/execa/lib/error.js.map +1 -0
- package/dist/packages/init/__node_modules/execa/lib/kill.cjs +81 -0
- package/dist/packages/init/__node_modules/execa/lib/kill.cjs.map +1 -0
- package/dist/packages/init/__node_modules/execa/lib/kill.js +81 -0
- package/dist/packages/init/__node_modules/execa/lib/kill.js.map +1 -0
- package/dist/packages/init/__node_modules/execa/lib/promise.cjs +31 -0
- package/dist/packages/init/__node_modules/execa/lib/promise.cjs.map +1 -0
- package/dist/packages/init/__node_modules/execa/lib/promise.js +31 -0
- package/dist/packages/init/__node_modules/execa/lib/promise.js.map +1 -0
- package/dist/packages/init/__node_modules/execa/lib/stdio.cjs +26 -0
- package/dist/packages/init/__node_modules/execa/lib/stdio.cjs.map +1 -0
- package/dist/packages/init/__node_modules/execa/lib/stdio.js +26 -0
- package/dist/packages/init/__node_modules/execa/lib/stdio.js.map +1 -0
- package/dist/packages/init/__node_modules/execa/lib/stream.cjs +68 -0
- package/dist/packages/init/__node_modules/execa/lib/stream.cjs.map +1 -0
- package/dist/packages/init/__node_modules/execa/lib/stream.js +68 -0
- package/dist/packages/init/__node_modules/execa/lib/stream.js.map +1 -0
- package/dist/packages/init/__node_modules/get-stream/buffer-stream.cjs +42 -0
- package/dist/packages/init/__node_modules/get-stream/buffer-stream.cjs.map +1 -0
- package/dist/packages/init/__node_modules/get-stream/buffer-stream.js +43 -0
- package/dist/packages/init/__node_modules/get-stream/buffer-stream.js.map +1 -0
- package/dist/packages/init/__node_modules/get-stream/index.cjs +56 -0
- package/dist/packages/init/__node_modules/get-stream/index.cjs.map +1 -0
- package/dist/packages/init/__node_modules/get-stream/index.js +57 -0
- package/dist/packages/init/__node_modules/get-stream/index.js.map +1 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/core.cjs +275 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/core.cjs.map +1 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/core.js +275 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/core.js.map +1 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/main.cjs +50 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/main.cjs.map +1 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/main.js +50 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/main.js.map +1 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/realtime.cjs +20 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/realtime.cjs.map +1 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/realtime.js +20 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/realtime.js.map +1 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/signals.cjs +27 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/signals.cjs.map +1 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/signals.js +27 -0
- package/dist/packages/init/__node_modules/human-signals/build/src/signals.js.map +1 -0
- package/dist/packages/init/__node_modules/is-stream/index.cjs +7 -0
- package/dist/packages/init/__node_modules/is-stream/index.cjs.map +1 -0
- package/dist/packages/init/__node_modules/is-stream/index.js +7 -0
- package/dist/packages/init/__node_modules/is-stream/index.js.map +1 -0
- package/dist/packages/init/__node_modules/mimic-fn/index.cjs +46 -0
- package/dist/packages/init/__node_modules/mimic-fn/index.cjs.map +1 -0
- package/dist/packages/init/__node_modules/mimic-fn/index.js +47 -0
- package/dist/packages/init/__node_modules/mimic-fn/index.js.map +1 -0
- package/dist/packages/init/__node_modules/npm-run-path/index.cjs +34 -0
- package/dist/packages/init/__node_modules/npm-run-path/index.cjs.map +1 -0
- package/dist/packages/init/__node_modules/npm-run-path/index.js +34 -0
- package/dist/packages/init/__node_modules/npm-run-path/index.js.map +1 -0
- package/dist/packages/init/__node_modules/onetime/index.cjs +32 -0
- package/dist/packages/init/__node_modules/onetime/index.cjs.map +1 -0
- package/dist/packages/init/__node_modules/onetime/index.js +33 -0
- package/dist/packages/init/__node_modules/onetime/index.js.map +1 -0
- package/dist/packages/init/__node_modules/path-key/index.cjs +13 -0
- package/dist/packages/init/__node_modules/path-key/index.cjs.map +1 -0
- package/dist/packages/init/__node_modules/path-key/index.js +14 -0
- package/dist/packages/init/__node_modules/path-key/index.js.map +1 -0
- package/dist/packages/init/__node_modules/strip-final-newline/index.cjs +14 -0
- package/dist/packages/init/__node_modules/strip-final-newline/index.cjs.map +1 -0
- package/dist/packages/init/__node_modules/strip-final-newline/index.js +15 -0
- package/dist/packages/init/__node_modules/strip-final-newline/index.js.map +1 -0
- package/dist/packages/init/package.json.cjs +7 -0
- package/dist/packages/init/package.json.cjs.map +1 -0
- package/dist/packages/init/package.json.js +7 -0
- package/dist/packages/init/package.json.js.map +1 -0
- package/package.json +85 -48
- package/src/SliceMachineInitProcess.ts +999 -0
- package/src/cli.ts +84 -0
- package/src/index.ts +5 -65
- package/src/lib/assertExists.ts +9 -0
- package/src/lib/framework.ts +124 -0
- package/src/lib/listr.ts +15 -0
- package/src/lib/packageManager.ts +67 -0
- package/src/lib/prompt.ts +27 -0
- package/src/lib/repositoryDomain.ts +218 -0
- package/.eslintignore +0 -3
- package/.eslintrc.json +0 -21
- package/.prettierignore +0 -4
- package/README.md +0 -51
- package/babel.config.js +0 -7
- package/build/index.js +0 -33
- package/build/steps/add-script-to-pkg.js +0 -13
- package/build/steps/configure-project.js +0 -29
- package/build/steps/create-repo.js +0 -26
- package/build/steps/detect-framework.js +0 -86
- package/build/steps/display-final-message.js +0 -11
- package/build/steps/index.js +0 -20
- package/build/steps/install-sm.js +0 -26
- package/build/steps/loginOrBypass.js +0 -13
- package/build/steps/maybe-existing-repo.js +0 -145
- package/build/steps/validate-pkg.js +0 -17
- package/build/utils/index.js +0 -22
- package/jest.config.js +0 -16
- package/src/steps/configure-project.ts +0 -37
- package/src/steps/create-repo.ts +0 -34
- package/src/steps/detect-framework.ts +0 -83
- package/src/steps/display-final-message.ts +0 -14
- package/src/steps/index.ts +0 -8
- package/src/steps/install-sm.ts +0 -31
- package/src/steps/loginOrBypass.ts +0 -7
- package/src/steps/maybe-existing-repo.ts +0 -159
- package/src/steps/validate-pkg.ts +0 -13
- package/src/utils/index.ts +0 -18
- package/test.sh +0 -16
- package/tsconfig.json +0 -26
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import prompts from "prompts";
|
|
2
|
+
type promptArgs<TValue = unknown, TProperty extends string = string> = prompts.PromptObject<TProperty> & {
|
|
3
|
+
onRender?: (this: {
|
|
4
|
+
msg: string;
|
|
5
|
+
value?: TValue;
|
|
6
|
+
initial?: TValue;
|
|
7
|
+
}) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare const prompt: <TReturn, TProperty extends string = string>(question: promptArgs<TReturn, TProperty>) => Promise<Record<TProperty, TReturn>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import prompts from "prompts";
|
|
2
|
+
const prompt = async (question) => {
|
|
3
|
+
const answers = await prompts(question);
|
|
4
|
+
if (!Object.keys(answers).length) {
|
|
5
|
+
process.exit(130);
|
|
6
|
+
}
|
|
7
|
+
process.stdout.moveCursor(0, -1);
|
|
8
|
+
process.stdout.clearLine(1);
|
|
9
|
+
return answers;
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
prompt
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=prompt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.js","sources":["../../../src/lib/prompt.ts"],"sourcesContent":["import prompts from \"prompts\";\n\ntype promptArgs<\n\tTValue = unknown,\n\tTProperty extends string = string,\n> = prompts.PromptObject<TProperty> & {\n\t// Method is available, cf. docs\n\tonRender?: (this: { msg: string; value?: TValue; initial?: TValue }) => void;\n};\n\nexport const prompt = async <TReturn, TProperty extends string = string>(\n\tquestion: promptArgs<TReturn, TProperty>,\n): Promise<Record<TProperty, TReturn>> => {\n\tconst answers: Record<TProperty, TReturn> = await prompts<TProperty>(\n\t\tquestion,\n\t);\n\n\tif (!Object.keys(answers).length) {\n\t\tprocess.exit(130);\n\t}\n\n\t// Clear prompt line, clean recap are done manually\n\tprocess.stdout.moveCursor(0, -1);\n\tprocess.stdout.clearLine(1);\n\n\treturn answers;\n};\n"],"names":[],"mappings":";AAUa,MAAA,SAAS,OACrB,aACwC;AAClC,QAAA,UAAsC,MAAM,QACjD,QAAQ;AAGT,MAAI,CAAC,OAAO,KAAK,OAAO,EAAE,QAAQ;AACjC,YAAQ,KAAK,GAAG;AAAA,EAChB;AAGO,UAAA,OAAO,WAAW,GAAG,EAAE;AACvB,UAAA,OAAO,UAAU,CAAC;AAEnB,SAAA;AACR;"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const abc123 = `abcdefghijklmnopqrstuvwxyz0123456789`;
|
|
4
|
+
const ADJECTIVES = [
|
|
5
|
+
"adorable",
|
|
6
|
+
"beautiful",
|
|
7
|
+
"charming",
|
|
8
|
+
"cloudy",
|
|
9
|
+
"delightful",
|
|
10
|
+
"focused",
|
|
11
|
+
"honest",
|
|
12
|
+
"inspiring",
|
|
13
|
+
"lovable",
|
|
14
|
+
"melodious",
|
|
15
|
+
"pleasant",
|
|
16
|
+
"pretty",
|
|
17
|
+
"shiny",
|
|
18
|
+
"sugary",
|
|
19
|
+
"tall",
|
|
20
|
+
"valliant"
|
|
21
|
+
].filter((adjective) => adjective.length <= 11);
|
|
22
|
+
const BAKERIES = [
|
|
23
|
+
"baguette",
|
|
24
|
+
"briouat",
|
|
25
|
+
"crepe",
|
|
26
|
+
"croissant",
|
|
27
|
+
"donut",
|
|
28
|
+
"eclair",
|
|
29
|
+
"flaons",
|
|
30
|
+
"kolompeh",
|
|
31
|
+
"macaron",
|
|
32
|
+
"paste",
|
|
33
|
+
"pretzel",
|
|
34
|
+
"rustico",
|
|
35
|
+
"semla",
|
|
36
|
+
"strudel",
|
|
37
|
+
"taiyaki",
|
|
38
|
+
"toast"
|
|
39
|
+
].filter((bakery) => bakery.length <= 11);
|
|
40
|
+
const pickRandom = (arrOrString) => {
|
|
41
|
+
return arrOrString[Math.floor(Math.random() * arrOrString.length)];
|
|
42
|
+
};
|
|
43
|
+
const randomString = (length) => {
|
|
44
|
+
let result = "";
|
|
45
|
+
for (let i = 0; i < length; i++) {
|
|
46
|
+
result += pickRandom(abc123);
|
|
47
|
+
}
|
|
48
|
+
return result;
|
|
49
|
+
};
|
|
50
|
+
const getRandomRepositoryDomain = () => {
|
|
51
|
+
return formatRepositoryDomain(`${pickRandom(ADJECTIVES)}-${pickRandom(BAKERIES)}-${randomString(6)}`);
|
|
52
|
+
};
|
|
53
|
+
const formatRepositoryDomain = (rawDomain) => {
|
|
54
|
+
let domain = rawDomain.toLowerCase();
|
|
55
|
+
domain = domain.replaceAll(" ", "-").replaceAll("_", "-");
|
|
56
|
+
domain = domain.replace(/[^a-z0-9-]/g, "");
|
|
57
|
+
domain = domain.replace(/(^-+)|(-+$)/g, "");
|
|
58
|
+
domain = domain.replace(/-{2,}/g, "-");
|
|
59
|
+
return domain;
|
|
60
|
+
};
|
|
61
|
+
const isFormattedRepositoryDomain = (maybeFormattedRepositoryDomain) => {
|
|
62
|
+
return maybeFormattedRepositoryDomain === formatRepositoryDomain(maybeFormattedRepositoryDomain);
|
|
63
|
+
};
|
|
64
|
+
const assertFormattedRepositoryDomain = (maybeFormattedRepositoryDomain, caller) => {
|
|
65
|
+
if (!isFormattedRepositoryDomain(maybeFormattedRepositoryDomain)) {
|
|
66
|
+
throw new TypeError(`\`${caller}()\` can only validate formatted repository domains, use the \`formatRepositoryDomain()\` first.`);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const ValidationErrors = {
|
|
70
|
+
LessThan4: "LessThan4",
|
|
71
|
+
MoreThan30: "MoreThan30",
|
|
72
|
+
AlreadyExists: "AlreadyExists"
|
|
73
|
+
};
|
|
74
|
+
const validateRepositoryDomain = (args) => {
|
|
75
|
+
assertFormattedRepositoryDomain(args.domain, "validateRepositoryDomain");
|
|
76
|
+
const errors = {
|
|
77
|
+
/**
|
|
78
|
+
* Checks non [a-z] first character
|
|
79
|
+
*
|
|
80
|
+
* @see https://regex101.com/r/OBZ6UH/1
|
|
81
|
+
*/
|
|
82
|
+
[ValidationErrors.LessThan4]: args.domain.length < 4,
|
|
83
|
+
[ValidationErrors.MoreThan30]: args.domain.length > 30
|
|
84
|
+
};
|
|
85
|
+
return {
|
|
86
|
+
...errors,
|
|
87
|
+
hasErrors: Object.values(errors).some(Boolean)
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
const validateRepositoryDomainAndAvailability = async (args) => {
|
|
91
|
+
assertFormattedRepositoryDomain(args.domain, "validateRepositoryDomainAndAvailability");
|
|
92
|
+
const errors = validateRepositoryDomain(args);
|
|
93
|
+
if (!errors.hasErrors && await args.existsFn(args.domain)) {
|
|
94
|
+
return {
|
|
95
|
+
...errors,
|
|
96
|
+
[ValidationErrors.AlreadyExists]: true,
|
|
97
|
+
hasErrors: true
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
return {
|
|
101
|
+
...errors,
|
|
102
|
+
[ValidationErrors.AlreadyExists]: false
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
const getErrorMessageForRepositoryDomainValidation = (args) => {
|
|
106
|
+
if (args.validation.hasErrors) {
|
|
107
|
+
const formattedErrors = [];
|
|
108
|
+
if (args.validation.LessThan4) {
|
|
109
|
+
formattedErrors.push("must be 4 characters long or more");
|
|
110
|
+
}
|
|
111
|
+
if (args.validation.MoreThan30) {
|
|
112
|
+
formattedErrors.push("must be 30 characters long or less");
|
|
113
|
+
}
|
|
114
|
+
if (ValidationErrors.AlreadyExists in args.validation && args.validation.AlreadyExists) {
|
|
115
|
+
formattedErrors.push("is already taken");
|
|
116
|
+
}
|
|
117
|
+
if (!formattedErrors.length) {
|
|
118
|
+
formattedErrors.push(`has unhandled errors ${JSON.stringify(args.validation)}`);
|
|
119
|
+
}
|
|
120
|
+
return `Repository name${args.displayDomain ? ` ${args.displayDomain}` : ""} ${formattedErrors.join(" and ")}`;
|
|
121
|
+
}
|
|
122
|
+
return null;
|
|
123
|
+
};
|
|
124
|
+
exports.ValidationErrors = ValidationErrors;
|
|
125
|
+
exports.formatRepositoryDomain = formatRepositoryDomain;
|
|
126
|
+
exports.getErrorMessageForRepositoryDomainValidation = getErrorMessageForRepositoryDomainValidation;
|
|
127
|
+
exports.getRandomRepositoryDomain = getRandomRepositoryDomain;
|
|
128
|
+
exports.validateRepositoryDomain = validateRepositoryDomain;
|
|
129
|
+
exports.validateRepositoryDomainAndAvailability = validateRepositoryDomainAndAvailability;
|
|
130
|
+
//# sourceMappingURL=repositoryDomain.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repositoryDomain.cjs","sources":["../../../src/lib/repositoryDomain.ts"],"sourcesContent":["const abc123 = `abcdefghijklmnopqrstuvwxyz0123456789`;\n\n// 11 characters long or less adjectives\nconst ADJECTIVES = [\n\t\"adorable\",\n\t\"beautiful\",\n\t\"charming\",\n\t\"cloudy\",\n\t\"delightful\",\n\t\"focused\",\n\t\"honest\",\n\t\"inspiring\",\n\t\"lovable\",\n\t\"melodious\",\n\t\"pleasant\",\n\t\"pretty\",\n\t\"shiny\",\n\t\"sugary\",\n\t\"tall\",\n\t\"valliant\",\n].filter((adjective) => adjective.length <= 11);\n\n// 11 characters long or less bakeries\nconst BAKERIES = [\n\t\"baguette\",\n\t\"briouat\",\n\t\"crepe\",\n\t\"croissant\",\n\t\"donut\",\n\t\"eclair\",\n\t\"flaons\",\n\t\"kolompeh\",\n\t\"macaron\",\n\t\"paste\",\n\t\"pretzel\",\n\t\"rustico\",\n\t\"semla\",\n\t\"strudel\",\n\t\"taiyaki\",\n\t\"toast\",\n].filter((bakery) => bakery.length <= 11);\n\nconst pickRandom = (arrOrString: string | string[]): string => {\n\treturn arrOrString[Math.floor(Math.random() * arrOrString.length)];\n};\n\nconst randomString = (length: number): string => {\n\tlet result = \"\";\n\n\tfor (let i = 0; i < length; i++) {\n\t\tresult += pickRandom(abc123);\n\t}\n\n\treturn result;\n};\n\nexport const getRandomRepositoryDomain = (): string => {\n\treturn formatRepositoryDomain(\n\t\t`${pickRandom(ADJECTIVES)}-${pickRandom(BAKERIES)}-${randomString(6)}`,\n\t);\n};\n\nexport const formatRepositoryDomain = (rawDomain: string): string => {\n\t// Lowercase anything\n\tlet domain = rawDomain.toLowerCase();\n\n\t/**\n\t * Replace whitespaces and underscores with hyphens\n\t */\n\tdomain = domain.replaceAll(\" \", \"-\").replaceAll(\"_\", \"-\");\n\n\t/**\n\t * Replace not allowed characters\n\t *\n\t * @see https://regex101.com/r/f2Hr0k/1\n\t */\n\tdomain = domain.replace(/[^a-z0-9-]/g, \"\");\n\n\t/**\n\t * Trim leading and trailing hyphens\n\t *\n\t * @see https://regex101.com/r/ivngfc/1\n\t */\n\tdomain = domain.replace(/(^-+)|(-+$)/g, \"\");\n\n\t/**\n\t * Replace multi hyphens\n\t *\n\t * @see https://regex101.com/r/t9qxh0/1\n\t */\n\tdomain = domain.replace(/-{2,}/g, \"-\");\n\n\treturn domain;\n};\n\nconst isFormattedRepositoryDomain = (\n\tmaybeFormattedRepositoryDomain: string,\n): boolean => {\n\treturn (\n\t\tmaybeFormattedRepositoryDomain ===\n\t\tformatRepositoryDomain(maybeFormattedRepositoryDomain)\n\t);\n};\n\nconst assertFormattedRepositoryDomain = (\n\tmaybeFormattedRepositoryDomain: string,\n\tcaller: string,\n): void => {\n\tif (!isFormattedRepositoryDomain(maybeFormattedRepositoryDomain)) {\n\t\tthrow new TypeError(\n\t\t\t`\\`${caller}()\\` can only validate formatted repository domains, use the \\`formatRepositoryDomain()\\` first.`,\n\t\t);\n\t}\n};\n\nexport const ValidationErrors = {\n\tLessThan4: \"LessThan4\",\n\tMoreThan30: \"MoreThan30\",\n\tAlreadyExists: \"AlreadyExists\",\n} as const;\ntype ValidationErrors = typeof ValidationErrors[keyof typeof ValidationErrors];\n\ntype ValidateRepositoryDomainArgs = { domain: string };\ntype ValidateRepositoryDomainReturnType = Record<\n\tExclude<ValidationErrors, \"AlreadyExists\"> | \"hasErrors\",\n\tboolean\n>;\nexport const validateRepositoryDomain = (\n\targs: ValidateRepositoryDomainArgs,\n): ValidateRepositoryDomainReturnType => {\n\tassertFormattedRepositoryDomain(args.domain, \"validateRepositoryDomain\");\n\n\tconst errors: Record<Exclude<ValidationErrors, \"AlreadyExists\">, boolean> = {\n\t\t/**\n\t\t * Checks non [a-z] first character\n\t\t *\n\t\t * @see https://regex101.com/r/OBZ6UH/1\n\t\t */\n\t\t[ValidationErrors.LessThan4]: args.domain.length < 4,\n\t\t[ValidationErrors.MoreThan30]: args.domain.length > 30,\n\t};\n\n\treturn {\n\t\t...errors,\n\t\thasErrors: Object.values(errors).some(Boolean),\n\t};\n};\n\ntype ValidateRepositoryDomainAndAvailabilityArgs = {\n\tdomain: string;\n\texistsFn: (domain: string) => boolean | Promise<boolean>;\n};\ntype ValidateRepositoryDomainAndAvailabilityReturnType = Record<\n\tValidationErrors | \"hasErrors\",\n\tboolean\n>;\nexport const validateRepositoryDomainAndAvailability = async (\n\targs: ValidateRepositoryDomainAndAvailabilityArgs,\n): Promise<ValidateRepositoryDomainAndAvailabilityReturnType> => {\n\tassertFormattedRepositoryDomain(\n\t\targs.domain,\n\t\t\"validateRepositoryDomainAndAvailability\",\n\t);\n\n\tconst errors = validateRepositoryDomain(args);\n\n\tif (!errors.hasErrors && (await args.existsFn(args.domain))) {\n\t\treturn {\n\t\t\t...errors,\n\t\t\t[ValidationErrors.AlreadyExists]: true,\n\t\t\thasErrors: true,\n\t\t};\n\t}\n\n\treturn {\n\t\t...errors,\n\t\t[ValidationErrors.AlreadyExists]: false,\n\t};\n};\n\ntype GetErrorMessageForRepositoryDomainValidationArgs = {\n\tvalidation:\n\t\t| ValidateRepositoryDomainReturnType\n\t\t| ValidateRepositoryDomainAndAvailabilityReturnType;\n\tdisplayDomain?: string;\n};\nexport const getErrorMessageForRepositoryDomainValidation = (\n\targs: GetErrorMessageForRepositoryDomainValidationArgs,\n): string | null => {\n\tif (args.validation.hasErrors) {\n\t\tconst formattedErrors: string[] = [];\n\n\t\tif (args.validation.LessThan4) {\n\t\t\tformattedErrors.push(\"must be 4 characters long or more\");\n\t\t}\n\t\tif (args.validation.MoreThan30) {\n\t\t\tformattedErrors.push(\"must be 30 characters long or less\");\n\t\t}\n\t\tif (\n\t\t\tValidationErrors.AlreadyExists in args.validation &&\n\t\t\targs.validation.AlreadyExists\n\t\t) {\n\t\t\tformattedErrors.push(\"is already taken\");\n\t\t}\n\n\t\tif (!formattedErrors.length) {\n\t\t\tformattedErrors.push(\n\t\t\t\t`has unhandled errors ${JSON.stringify(args.validation)}`,\n\t\t\t);\n\t\t}\n\n\t\treturn `Repository name${\n\t\t\targs.displayDomain ? ` ${args.displayDomain}` : \"\"\n\t\t} ${formattedErrors.join(\" and \")}`;\n\t}\n\n\treturn null;\n};\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare const getRandomRepositoryDomain: () => string;
|
|
2
|
+
export declare const formatRepositoryDomain: (rawDomain: string) => string;
|
|
3
|
+
export declare const ValidationErrors: {
|
|
4
|
+
readonly LessThan4: "LessThan4";
|
|
5
|
+
readonly MoreThan30: "MoreThan30";
|
|
6
|
+
readonly AlreadyExists: "AlreadyExists";
|
|
7
|
+
};
|
|
8
|
+
type ValidationErrors = typeof ValidationErrors[keyof typeof ValidationErrors];
|
|
9
|
+
type ValidateRepositoryDomainArgs = {
|
|
10
|
+
domain: string;
|
|
11
|
+
};
|
|
12
|
+
type ValidateRepositoryDomainReturnType = Record<Exclude<ValidationErrors, "AlreadyExists"> | "hasErrors", boolean>;
|
|
13
|
+
export declare const validateRepositoryDomain: (args: ValidateRepositoryDomainArgs) => ValidateRepositoryDomainReturnType;
|
|
14
|
+
type ValidateRepositoryDomainAndAvailabilityArgs = {
|
|
15
|
+
domain: string;
|
|
16
|
+
existsFn: (domain: string) => boolean | Promise<boolean>;
|
|
17
|
+
};
|
|
18
|
+
type ValidateRepositoryDomainAndAvailabilityReturnType = Record<ValidationErrors | "hasErrors", boolean>;
|
|
19
|
+
export declare const validateRepositoryDomainAndAvailability: (args: ValidateRepositoryDomainAndAvailabilityArgs) => Promise<ValidateRepositoryDomainAndAvailabilityReturnType>;
|
|
20
|
+
type GetErrorMessageForRepositoryDomainValidationArgs = {
|
|
21
|
+
validation: ValidateRepositoryDomainReturnType | ValidateRepositoryDomainAndAvailabilityReturnType;
|
|
22
|
+
displayDomain?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const getErrorMessageForRepositoryDomainValidation: (args: GetErrorMessageForRepositoryDomainValidationArgs) => string | null;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
const abc123 = `abcdefghijklmnopqrstuvwxyz0123456789`;
|
|
2
|
+
const ADJECTIVES = [
|
|
3
|
+
"adorable",
|
|
4
|
+
"beautiful",
|
|
5
|
+
"charming",
|
|
6
|
+
"cloudy",
|
|
7
|
+
"delightful",
|
|
8
|
+
"focused",
|
|
9
|
+
"honest",
|
|
10
|
+
"inspiring",
|
|
11
|
+
"lovable",
|
|
12
|
+
"melodious",
|
|
13
|
+
"pleasant",
|
|
14
|
+
"pretty",
|
|
15
|
+
"shiny",
|
|
16
|
+
"sugary",
|
|
17
|
+
"tall",
|
|
18
|
+
"valliant"
|
|
19
|
+
].filter((adjective) => adjective.length <= 11);
|
|
20
|
+
const BAKERIES = [
|
|
21
|
+
"baguette",
|
|
22
|
+
"briouat",
|
|
23
|
+
"crepe",
|
|
24
|
+
"croissant",
|
|
25
|
+
"donut",
|
|
26
|
+
"eclair",
|
|
27
|
+
"flaons",
|
|
28
|
+
"kolompeh",
|
|
29
|
+
"macaron",
|
|
30
|
+
"paste",
|
|
31
|
+
"pretzel",
|
|
32
|
+
"rustico",
|
|
33
|
+
"semla",
|
|
34
|
+
"strudel",
|
|
35
|
+
"taiyaki",
|
|
36
|
+
"toast"
|
|
37
|
+
].filter((bakery) => bakery.length <= 11);
|
|
38
|
+
const pickRandom = (arrOrString) => {
|
|
39
|
+
return arrOrString[Math.floor(Math.random() * arrOrString.length)];
|
|
40
|
+
};
|
|
41
|
+
const randomString = (length) => {
|
|
42
|
+
let result = "";
|
|
43
|
+
for (let i = 0; i < length; i++) {
|
|
44
|
+
result += pickRandom(abc123);
|
|
45
|
+
}
|
|
46
|
+
return result;
|
|
47
|
+
};
|
|
48
|
+
const getRandomRepositoryDomain = () => {
|
|
49
|
+
return formatRepositoryDomain(`${pickRandom(ADJECTIVES)}-${pickRandom(BAKERIES)}-${randomString(6)}`);
|
|
50
|
+
};
|
|
51
|
+
const formatRepositoryDomain = (rawDomain) => {
|
|
52
|
+
let domain = rawDomain.toLowerCase();
|
|
53
|
+
domain = domain.replaceAll(" ", "-").replaceAll("_", "-");
|
|
54
|
+
domain = domain.replace(/[^a-z0-9-]/g, "");
|
|
55
|
+
domain = domain.replace(/(^-+)|(-+$)/g, "");
|
|
56
|
+
domain = domain.replace(/-{2,}/g, "-");
|
|
57
|
+
return domain;
|
|
58
|
+
};
|
|
59
|
+
const isFormattedRepositoryDomain = (maybeFormattedRepositoryDomain) => {
|
|
60
|
+
return maybeFormattedRepositoryDomain === formatRepositoryDomain(maybeFormattedRepositoryDomain);
|
|
61
|
+
};
|
|
62
|
+
const assertFormattedRepositoryDomain = (maybeFormattedRepositoryDomain, caller) => {
|
|
63
|
+
if (!isFormattedRepositoryDomain(maybeFormattedRepositoryDomain)) {
|
|
64
|
+
throw new TypeError(`\`${caller}()\` can only validate formatted repository domains, use the \`formatRepositoryDomain()\` first.`);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const ValidationErrors = {
|
|
68
|
+
LessThan4: "LessThan4",
|
|
69
|
+
MoreThan30: "MoreThan30",
|
|
70
|
+
AlreadyExists: "AlreadyExists"
|
|
71
|
+
};
|
|
72
|
+
const validateRepositoryDomain = (args) => {
|
|
73
|
+
assertFormattedRepositoryDomain(args.domain, "validateRepositoryDomain");
|
|
74
|
+
const errors = {
|
|
75
|
+
/**
|
|
76
|
+
* Checks non [a-z] first character
|
|
77
|
+
*
|
|
78
|
+
* @see https://regex101.com/r/OBZ6UH/1
|
|
79
|
+
*/
|
|
80
|
+
[ValidationErrors.LessThan4]: args.domain.length < 4,
|
|
81
|
+
[ValidationErrors.MoreThan30]: args.domain.length > 30
|
|
82
|
+
};
|
|
83
|
+
return {
|
|
84
|
+
...errors,
|
|
85
|
+
hasErrors: Object.values(errors).some(Boolean)
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
const validateRepositoryDomainAndAvailability = async (args) => {
|
|
89
|
+
assertFormattedRepositoryDomain(args.domain, "validateRepositoryDomainAndAvailability");
|
|
90
|
+
const errors = validateRepositoryDomain(args);
|
|
91
|
+
if (!errors.hasErrors && await args.existsFn(args.domain)) {
|
|
92
|
+
return {
|
|
93
|
+
...errors,
|
|
94
|
+
[ValidationErrors.AlreadyExists]: true,
|
|
95
|
+
hasErrors: true
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
...errors,
|
|
100
|
+
[ValidationErrors.AlreadyExists]: false
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
const getErrorMessageForRepositoryDomainValidation = (args) => {
|
|
104
|
+
if (args.validation.hasErrors) {
|
|
105
|
+
const formattedErrors = [];
|
|
106
|
+
if (args.validation.LessThan4) {
|
|
107
|
+
formattedErrors.push("must be 4 characters long or more");
|
|
108
|
+
}
|
|
109
|
+
if (args.validation.MoreThan30) {
|
|
110
|
+
formattedErrors.push("must be 30 characters long or less");
|
|
111
|
+
}
|
|
112
|
+
if (ValidationErrors.AlreadyExists in args.validation && args.validation.AlreadyExists) {
|
|
113
|
+
formattedErrors.push("is already taken");
|
|
114
|
+
}
|
|
115
|
+
if (!formattedErrors.length) {
|
|
116
|
+
formattedErrors.push(`has unhandled errors ${JSON.stringify(args.validation)}`);
|
|
117
|
+
}
|
|
118
|
+
return `Repository name${args.displayDomain ? ` ${args.displayDomain}` : ""} ${formattedErrors.join(" and ")}`;
|
|
119
|
+
}
|
|
120
|
+
return null;
|
|
121
|
+
};
|
|
122
|
+
export {
|
|
123
|
+
ValidationErrors,
|
|
124
|
+
formatRepositoryDomain,
|
|
125
|
+
getErrorMessageForRepositoryDomainValidation,
|
|
126
|
+
getRandomRepositoryDomain,
|
|
127
|
+
validateRepositoryDomain,
|
|
128
|
+
validateRepositoryDomainAndAvailability
|
|
129
|
+
};
|
|
130
|
+
//# sourceMappingURL=repositoryDomain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repositoryDomain.js","sources":["../../../src/lib/repositoryDomain.ts"],"sourcesContent":["const abc123 = `abcdefghijklmnopqrstuvwxyz0123456789`;\n\n// 11 characters long or less adjectives\nconst ADJECTIVES = [\n\t\"adorable\",\n\t\"beautiful\",\n\t\"charming\",\n\t\"cloudy\",\n\t\"delightful\",\n\t\"focused\",\n\t\"honest\",\n\t\"inspiring\",\n\t\"lovable\",\n\t\"melodious\",\n\t\"pleasant\",\n\t\"pretty\",\n\t\"shiny\",\n\t\"sugary\",\n\t\"tall\",\n\t\"valliant\",\n].filter((adjective) => adjective.length <= 11);\n\n// 11 characters long or less bakeries\nconst BAKERIES = [\n\t\"baguette\",\n\t\"briouat\",\n\t\"crepe\",\n\t\"croissant\",\n\t\"donut\",\n\t\"eclair\",\n\t\"flaons\",\n\t\"kolompeh\",\n\t\"macaron\",\n\t\"paste\",\n\t\"pretzel\",\n\t\"rustico\",\n\t\"semla\",\n\t\"strudel\",\n\t\"taiyaki\",\n\t\"toast\",\n].filter((bakery) => bakery.length <= 11);\n\nconst pickRandom = (arrOrString: string | string[]): string => {\n\treturn arrOrString[Math.floor(Math.random() * arrOrString.length)];\n};\n\nconst randomString = (length: number): string => {\n\tlet result = \"\";\n\n\tfor (let i = 0; i < length; i++) {\n\t\tresult += pickRandom(abc123);\n\t}\n\n\treturn result;\n};\n\nexport const getRandomRepositoryDomain = (): string => {\n\treturn formatRepositoryDomain(\n\t\t`${pickRandom(ADJECTIVES)}-${pickRandom(BAKERIES)}-${randomString(6)}`,\n\t);\n};\n\nexport const formatRepositoryDomain = (rawDomain: string): string => {\n\t// Lowercase anything\n\tlet domain = rawDomain.toLowerCase();\n\n\t/**\n\t * Replace whitespaces and underscores with hyphens\n\t */\n\tdomain = domain.replaceAll(\" \", \"-\").replaceAll(\"_\", \"-\");\n\n\t/**\n\t * Replace not allowed characters\n\t *\n\t * @see https://regex101.com/r/f2Hr0k/1\n\t */\n\tdomain = domain.replace(/[^a-z0-9-]/g, \"\");\n\n\t/**\n\t * Trim leading and trailing hyphens\n\t *\n\t * @see https://regex101.com/r/ivngfc/1\n\t */\n\tdomain = domain.replace(/(^-+)|(-+$)/g, \"\");\n\n\t/**\n\t * Replace multi hyphens\n\t *\n\t * @see https://regex101.com/r/t9qxh0/1\n\t */\n\tdomain = domain.replace(/-{2,}/g, \"-\");\n\n\treturn domain;\n};\n\nconst isFormattedRepositoryDomain = (\n\tmaybeFormattedRepositoryDomain: string,\n): boolean => {\n\treturn (\n\t\tmaybeFormattedRepositoryDomain ===\n\t\tformatRepositoryDomain(maybeFormattedRepositoryDomain)\n\t);\n};\n\nconst assertFormattedRepositoryDomain = (\n\tmaybeFormattedRepositoryDomain: string,\n\tcaller: string,\n): void => {\n\tif (!isFormattedRepositoryDomain(maybeFormattedRepositoryDomain)) {\n\t\tthrow new TypeError(\n\t\t\t`\\`${caller}()\\` can only validate formatted repository domains, use the \\`formatRepositoryDomain()\\` first.`,\n\t\t);\n\t}\n};\n\nexport const ValidationErrors = {\n\tLessThan4: \"LessThan4\",\n\tMoreThan30: \"MoreThan30\",\n\tAlreadyExists: \"AlreadyExists\",\n} as const;\ntype ValidationErrors = typeof ValidationErrors[keyof typeof ValidationErrors];\n\ntype ValidateRepositoryDomainArgs = { domain: string };\ntype ValidateRepositoryDomainReturnType = Record<\n\tExclude<ValidationErrors, \"AlreadyExists\"> | \"hasErrors\",\n\tboolean\n>;\nexport const validateRepositoryDomain = (\n\targs: ValidateRepositoryDomainArgs,\n): ValidateRepositoryDomainReturnType => {\n\tassertFormattedRepositoryDomain(args.domain, \"validateRepositoryDomain\");\n\n\tconst errors: Record<Exclude<ValidationErrors, \"AlreadyExists\">, boolean> = {\n\t\t/**\n\t\t * Checks non [a-z] first character\n\t\t *\n\t\t * @see https://regex101.com/r/OBZ6UH/1\n\t\t */\n\t\t[ValidationErrors.LessThan4]: args.domain.length < 4,\n\t\t[ValidationErrors.MoreThan30]: args.domain.length > 30,\n\t};\n\n\treturn {\n\t\t...errors,\n\t\thasErrors: Object.values(errors).some(Boolean),\n\t};\n};\n\ntype ValidateRepositoryDomainAndAvailabilityArgs = {\n\tdomain: string;\n\texistsFn: (domain: string) => boolean | Promise<boolean>;\n};\ntype ValidateRepositoryDomainAndAvailabilityReturnType = Record<\n\tValidationErrors | \"hasErrors\",\n\tboolean\n>;\nexport const validateRepositoryDomainAndAvailability = async (\n\targs: ValidateRepositoryDomainAndAvailabilityArgs,\n): Promise<ValidateRepositoryDomainAndAvailabilityReturnType> => {\n\tassertFormattedRepositoryDomain(\n\t\targs.domain,\n\t\t\"validateRepositoryDomainAndAvailability\",\n\t);\n\n\tconst errors = validateRepositoryDomain(args);\n\n\tif (!errors.hasErrors && (await args.existsFn(args.domain))) {\n\t\treturn {\n\t\t\t...errors,\n\t\t\t[ValidationErrors.AlreadyExists]: true,\n\t\t\thasErrors: true,\n\t\t};\n\t}\n\n\treturn {\n\t\t...errors,\n\t\t[ValidationErrors.AlreadyExists]: false,\n\t};\n};\n\ntype GetErrorMessageForRepositoryDomainValidationArgs = {\n\tvalidation:\n\t\t| ValidateRepositoryDomainReturnType\n\t\t| ValidateRepositoryDomainAndAvailabilityReturnType;\n\tdisplayDomain?: string;\n};\nexport const getErrorMessageForRepositoryDomainValidation = (\n\targs: GetErrorMessageForRepositoryDomainValidationArgs,\n): string | null => {\n\tif (args.validation.hasErrors) {\n\t\tconst formattedErrors: string[] = [];\n\n\t\tif (args.validation.LessThan4) {\n\t\t\tformattedErrors.push(\"must be 4 characters long or more\");\n\t\t}\n\t\tif (args.validation.MoreThan30) {\n\t\t\tformattedErrors.push(\"must be 30 characters long or less\");\n\t\t}\n\t\tif (\n\t\t\tValidationErrors.AlreadyExists in args.validation &&\n\t\t\targs.validation.AlreadyExists\n\t\t) {\n\t\t\tformattedErrors.push(\"is already taken\");\n\t\t}\n\n\t\tif (!formattedErrors.length) {\n\t\t\tformattedErrors.push(\n\t\t\t\t`has unhandled errors ${JSON.stringify(args.validation)}`,\n\t\t\t);\n\t\t}\n\n\t\treturn `Repository name${\n\t\t\targs.displayDomain ? ` ${args.displayDomain}` : \"\"\n\t\t} ${formattedErrors.join(\" and \")}`;\n\t}\n\n\treturn null;\n};\n"],"names":[],"mappings":"AAAA,MAAM,SAAS;AAGf,MAAM,aAAa;AAAA,EAClB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACA,EAAC,OAAO,CAAC,cAAc,UAAU,UAAU,EAAE;AAG9C,MAAM,WAAW;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACA,EAAC,OAAO,CAAC,WAAW,OAAO,UAAU,EAAE;AAExC,MAAM,aAAa,CAAC,gBAA0C;AACtD,SAAA,YAAY,KAAK,MAAM,KAAK,WAAW,YAAY,MAAM,CAAC;AAClE;AAEA,MAAM,eAAe,CAAC,WAA0B;AAC/C,MAAI,SAAS;AAEb,WAAS,IAAI,GAAG,IAAI,QAAQ,KAAK;AAChC,cAAU,WAAW,MAAM;AAAA,EAC3B;AAEM,SAAA;AACR;AAEO,MAAM,4BAA4B,MAAa;AAC9C,SAAA,uBACN,GAAG,WAAW,UAAU,KAAK,WAAW,QAAQ,KAAK,aAAa,CAAC,GAAG;AAExE;AAEa,MAAA,yBAAyB,CAAC,cAA6B;AAE/D,MAAA,SAAS,UAAU;AAKvB,WAAS,OAAO,WAAW,KAAK,GAAG,EAAE,WAAW,KAAK,GAAG;AAO/C,WAAA,OAAO,QAAQ,eAAe,EAAE;AAOhC,WAAA,OAAO,QAAQ,gBAAgB,EAAE;AAOjC,WAAA,OAAO,QAAQ,UAAU,GAAG;AAE9B,SAAA;AACR;AAEA,MAAM,8BAA8B,CACnC,mCACY;AAEX,SAAA,mCACA,uBAAuB,8BAA8B;AAEvD;AAEA,MAAM,kCAAkC,CACvC,gCACA,WACS;AACL,MAAA,CAAC,4BAA4B,8BAA8B,GAAG;AAC3D,UAAA,IAAI,UACT,KAAK,wGAAwG;AAAA,EAE9G;AACF;AAEO,MAAM,mBAAmB;AAAA,EAC/B,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,eAAe;;AASH,MAAA,2BAA2B,CACvC,SACuC;AACP,kCAAA,KAAK,QAAQ,0BAA0B;AAEvE,QAAM,SAAsE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAM3E,CAAC,iBAAiB,SAAS,GAAG,KAAK,OAAO,SAAS;AAAA,IACnD,CAAC,iBAAiB,UAAU,GAAG,KAAK,OAAO,SAAS;AAAA,EAAA;AAG9C,SAAA;AAAA,IACN,GAAG;AAAA,IACH,WAAW,OAAO,OAAO,MAAM,EAAE,KAAK,OAAO;AAAA,EAAA;AAE/C;AAUa,MAAA,0CAA0C,OACtD,SAC+D;AAE9D,kCAAA,KAAK,QACL,yCAAyC;AAGpC,QAAA,SAAS,yBAAyB,IAAI;AAExC,MAAA,CAAC,OAAO,aAAc,MAAM,KAAK,SAAS,KAAK,MAAM,GAAI;AACrD,WAAA;AAAA,MACN,GAAG;AAAA,MACH,CAAC,iBAAiB,aAAa,GAAG;AAAA,MAClC,WAAW;AAAA,IAAA;AAAA,EAEZ;AAEM,SAAA;AAAA,IACN,GAAG;AAAA,IACH,CAAC,iBAAiB,aAAa,GAAG;AAAA,EAAA;AAEpC;AAQa,MAAA,+CAA+C,CAC3D,SACkB;AACd,MAAA,KAAK,WAAW,WAAW;AAC9B,UAAM,kBAA4B,CAAA;AAE9B,QAAA,KAAK,WAAW,WAAW;AAC9B,sBAAgB,KAAK,mCAAmC;AAAA,IACxD;AACG,QAAA,KAAK,WAAW,YAAY;AAC/B,sBAAgB,KAAK,oCAAoC;AAAA,IACzD;AACD,QACC,iBAAiB,iBAAiB,KAAK,cACvC,KAAK,WAAW,eACf;AACD,sBAAgB,KAAK,kBAAkB;AAAA,IACvC;AAEG,QAAA,CAAC,gBAAgB,QAAQ;AAC5B,sBAAgB,KACf,wBAAwB,KAAK,UAAU,KAAK,UAAU,GAAG;AAAA,IAE1D;AAEM,WAAA,kBACN,KAAK,gBAAgB,IAAI,KAAK,kBAAkB,MAC7C,gBAAgB,KAAK,OAAO;AAAA,EAChC;AAEM,SAAA;AACR;"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const node_buffer = require("node:buffer");
|
|
4
|
+
const path = require("node:path");
|
|
5
|
+
const childProcess = require("node:child_process");
|
|
6
|
+
const process = require("node:process");
|
|
7
|
+
require('./../../../../__node_modules/cross-spawn/index.cjs');
|
|
8
|
+
const index$3 = require("../strip-final-newline/index.cjs");
|
|
9
|
+
const index$2 = require("../npm-run-path/index.cjs");
|
|
10
|
+
const index = require("../onetime/index.cjs");
|
|
11
|
+
const error = require("./lib/error.cjs");
|
|
12
|
+
const stdio = require("./lib/stdio.cjs");
|
|
13
|
+
const kill = require("./lib/kill.cjs");
|
|
14
|
+
const stream = require("./lib/stream.cjs");
|
|
15
|
+
const promise = require("./lib/promise.cjs");
|
|
16
|
+
const command = require("./lib/command.cjs");
|
|
17
|
+
const index$1 = require("../../../../_virtual/index7.cjs");
|
|
18
|
+
const DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
19
|
+
const getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
20
|
+
const env = extendEnv ? { ...process.env, ...envOption } : envOption;
|
|
21
|
+
if (preferLocal) {
|
|
22
|
+
return index$2.npmRunPathEnv({ env, cwd: localDir, execPath });
|
|
23
|
+
}
|
|
24
|
+
return env;
|
|
25
|
+
};
|
|
26
|
+
const handleArguments = (file, args, options = {}) => {
|
|
27
|
+
const parsed = index$1.exports._parse(file, args, options);
|
|
28
|
+
file = parsed.command;
|
|
29
|
+
args = parsed.args;
|
|
30
|
+
options = parsed.options;
|
|
31
|
+
options = {
|
|
32
|
+
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
33
|
+
buffer: true,
|
|
34
|
+
stripFinalNewline: true,
|
|
35
|
+
extendEnv: true,
|
|
36
|
+
preferLocal: false,
|
|
37
|
+
localDir: options.cwd || process.cwd(),
|
|
38
|
+
execPath: process.execPath,
|
|
39
|
+
encoding: "utf8",
|
|
40
|
+
reject: true,
|
|
41
|
+
cleanup: true,
|
|
42
|
+
all: false,
|
|
43
|
+
windowsHide: true,
|
|
44
|
+
...options
|
|
45
|
+
};
|
|
46
|
+
options.env = getEnv(options);
|
|
47
|
+
options.stdio = stdio.normalizeStdio(options);
|
|
48
|
+
if (process.platform === "win32" && path.basename(file, ".exe") === "cmd") {
|
|
49
|
+
args.unshift("/q");
|
|
50
|
+
}
|
|
51
|
+
return { file, args, options, parsed };
|
|
52
|
+
};
|
|
53
|
+
const handleOutput = (options, value, error2) => {
|
|
54
|
+
if (typeof value !== "string" && !node_buffer.Buffer.isBuffer(value)) {
|
|
55
|
+
return error2 === void 0 ? void 0 : "";
|
|
56
|
+
}
|
|
57
|
+
if (options.stripFinalNewline) {
|
|
58
|
+
return index$3(value);
|
|
59
|
+
}
|
|
60
|
+
return value;
|
|
61
|
+
};
|
|
62
|
+
function execa(file, args, options) {
|
|
63
|
+
const parsed = handleArguments(file, args, options);
|
|
64
|
+
const command$1 = command.joinCommand(file, args);
|
|
65
|
+
const escapedCommand = command.getEscapedCommand(file, args);
|
|
66
|
+
kill.validateTimeout(parsed.options);
|
|
67
|
+
let spawned;
|
|
68
|
+
try {
|
|
69
|
+
spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);
|
|
70
|
+
} catch (error$1) {
|
|
71
|
+
const dummySpawned = new childProcess.ChildProcess();
|
|
72
|
+
const errorPromise = Promise.reject(error.makeError({
|
|
73
|
+
error: error$1,
|
|
74
|
+
stdout: "",
|
|
75
|
+
stderr: "",
|
|
76
|
+
all: "",
|
|
77
|
+
command: command$1,
|
|
78
|
+
escapedCommand,
|
|
79
|
+
parsed,
|
|
80
|
+
timedOut: false,
|
|
81
|
+
isCanceled: false,
|
|
82
|
+
killed: false
|
|
83
|
+
}));
|
|
84
|
+
return promise.mergePromise(dummySpawned, errorPromise);
|
|
85
|
+
}
|
|
86
|
+
const spawnedPromise = promise.getSpawnedPromise(spawned);
|
|
87
|
+
const timedPromise = kill.setupTimeout(spawned, parsed.options, spawnedPromise);
|
|
88
|
+
const processDone = kill.setExitHandler(spawned, parsed.options, timedPromise);
|
|
89
|
+
const context = { isCanceled: false };
|
|
90
|
+
spawned.kill = kill.spawnedKill.bind(null, spawned.kill.bind(spawned));
|
|
91
|
+
spawned.cancel = kill.spawnedCancel.bind(null, spawned, context);
|
|
92
|
+
const handlePromise = async () => {
|
|
93
|
+
const [{ error: error$1, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await stream.getSpawnedResult(spawned, parsed.options, processDone);
|
|
94
|
+
const stdout = handleOutput(parsed.options, stdoutResult);
|
|
95
|
+
const stderr = handleOutput(parsed.options, stderrResult);
|
|
96
|
+
const all = handleOutput(parsed.options, allResult);
|
|
97
|
+
if (error$1 || exitCode !== 0 || signal !== null) {
|
|
98
|
+
const returnedError = error.makeError({
|
|
99
|
+
error: error$1,
|
|
100
|
+
exitCode,
|
|
101
|
+
signal,
|
|
102
|
+
stdout,
|
|
103
|
+
stderr,
|
|
104
|
+
all,
|
|
105
|
+
command: command$1,
|
|
106
|
+
escapedCommand,
|
|
107
|
+
parsed,
|
|
108
|
+
timedOut,
|
|
109
|
+
isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),
|
|
110
|
+
killed: spawned.killed
|
|
111
|
+
});
|
|
112
|
+
if (!parsed.options.reject) {
|
|
113
|
+
return returnedError;
|
|
114
|
+
}
|
|
115
|
+
throw returnedError;
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
command: command$1,
|
|
119
|
+
escapedCommand,
|
|
120
|
+
exitCode: 0,
|
|
121
|
+
stdout,
|
|
122
|
+
stderr,
|
|
123
|
+
all,
|
|
124
|
+
failed: false,
|
|
125
|
+
timedOut: false,
|
|
126
|
+
isCanceled: false,
|
|
127
|
+
killed: false
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
const handlePromiseOnce = index(handlePromise);
|
|
131
|
+
stream.handleInput(spawned, parsed.options.input);
|
|
132
|
+
spawned.all = stream.makeAllStream(spawned, parsed.options);
|
|
133
|
+
return promise.mergePromise(spawned, handlePromiseOnce);
|
|
134
|
+
}
|
|
135
|
+
function execaCommand(command$1, options) {
|
|
136
|
+
const [file, ...args] = command.parseCommand(command$1);
|
|
137
|
+
return execa(file, args, options);
|
|
138
|
+
}
|
|
139
|
+
exports.execa = execa;
|
|
140
|
+
exports.execaCommand = execaCommand;
|
|
141
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/execa/index.js"],"sourcesContent":["import {Buffer} from 'node:buffer';\nimport path from 'node:path';\nimport childProcess from 'node:child_process';\nimport process from 'node:process';\nimport crossSpawn from 'cross-spawn';\nimport stripFinalNewline from 'strip-final-newline';\nimport {npmRunPathEnv} from 'npm-run-path';\nimport onetime from 'onetime';\nimport {makeError} from './lib/error.js';\nimport {normalizeStdio, normalizeStdioNode} from './lib/stdio.js';\nimport {spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler} from './lib/kill.js';\nimport {handleInput, getSpawnedResult, makeAllStream, validateInputSync} from './lib/stream.js';\nimport {mergePromise, getSpawnedPromise} from './lib/promise.js';\nimport {joinCommand, parseCommand, getEscapedCommand} from './lib/command.js';\n\nconst DEFAULT_MAX_BUFFER = 1000 * 1000 * 100;\n\nconst getEnv = ({env: envOption, extendEnv, preferLocal, localDir, execPath}) => {\n\tconst env = extendEnv ? {...process.env, ...envOption} : envOption;\n\n\tif (preferLocal) {\n\t\treturn npmRunPathEnv({env, cwd: localDir, execPath});\n\t}\n\n\treturn env;\n};\n\nconst handleArguments = (file, args, options = {}) => {\n\tconst parsed = crossSpawn._parse(file, args, options);\n\tfile = parsed.command;\n\targs = parsed.args;\n\toptions = parsed.options;\n\n\toptions = {\n\t\tmaxBuffer: DEFAULT_MAX_BUFFER,\n\t\tbuffer: true,\n\t\tstripFinalNewline: true,\n\t\textendEnv: true,\n\t\tpreferLocal: false,\n\t\tlocalDir: options.cwd || process.cwd(),\n\t\texecPath: process.execPath,\n\t\tencoding: 'utf8',\n\t\treject: true,\n\t\tcleanup: true,\n\t\tall: false,\n\t\twindowsHide: true,\n\t\t...options,\n\t};\n\n\toptions.env = getEnv(options);\n\n\toptions.stdio = normalizeStdio(options);\n\n\tif (process.platform === 'win32' && path.basename(file, '.exe') === 'cmd') {\n\t\t// #116\n\t\targs.unshift('/q');\n\t}\n\n\treturn {file, args, options, parsed};\n};\n\nconst handleOutput = (options, value, error) => {\n\tif (typeof value !== 'string' && !Buffer.isBuffer(value)) {\n\t\t// When `execaSync()` errors, we normalize it to '' to mimic `execa()`\n\t\treturn error === undefined ? undefined : '';\n\t}\n\n\tif (options.stripFinalNewline) {\n\t\treturn stripFinalNewline(value);\n\t}\n\n\treturn value;\n};\n\nexport function execa(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateTimeout(parsed.options);\n\n\tlet spawned;\n\ttry {\n\t\tspawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\t// Ensure the returned error is always both a promise and a child process\n\t\tconst dummySpawned = new childProcess.ChildProcess();\n\t\tconst errorPromise = Promise.reject(makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t}));\n\t\treturn mergePromise(dummySpawned, errorPromise);\n\t}\n\n\tconst spawnedPromise = getSpawnedPromise(spawned);\n\tconst timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);\n\tconst processDone = setExitHandler(spawned, parsed.options, timedPromise);\n\n\tconst context = {isCanceled: false};\n\n\tspawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));\n\tspawned.cancel = spawnedCancel.bind(null, spawned, context);\n\n\tconst handlePromise = async () => {\n\t\tconst [{error, exitCode, signal, timedOut}, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);\n\t\tconst stdout = handleOutput(parsed.options, stdoutResult);\n\t\tconst stderr = handleOutput(parsed.options, stderrResult);\n\t\tconst all = handleOutput(parsed.options, allResult);\n\n\t\tif (error || exitCode !== 0 || signal !== null) {\n\t\t\tconst returnedError = makeError({\n\t\t\t\terror,\n\t\t\t\texitCode,\n\t\t\t\tsignal,\n\t\t\t\tstdout,\n\t\t\t\tstderr,\n\t\t\t\tall,\n\t\t\t\tcommand,\n\t\t\t\tescapedCommand,\n\t\t\t\tparsed,\n\t\t\t\ttimedOut,\n\t\t\t\tisCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),\n\t\t\t\tkilled: spawned.killed,\n\t\t\t});\n\n\t\t\tif (!parsed.options.reject) {\n\t\t\t\treturn returnedError;\n\t\t\t}\n\n\t\t\tthrow returnedError;\n\t\t}\n\n\t\treturn {\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\texitCode: 0,\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\tall,\n\t\t\tfailed: false,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t};\n\t};\n\n\tconst handlePromiseOnce = onetime(handlePromise);\n\n\thandleInput(spawned, parsed.options.input);\n\n\tspawned.all = makeAllStream(spawned, parsed.options);\n\n\treturn mergePromise(spawned, handlePromiseOnce);\n}\n\nexport function execaSync(file, args, options) {\n\tconst parsed = handleArguments(file, args, options);\n\tconst command = joinCommand(file, args);\n\tconst escapedCommand = getEscapedCommand(file, args);\n\n\tvalidateInputSync(parsed.options);\n\n\tlet result;\n\ttry {\n\t\tresult = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);\n\t} catch (error) {\n\t\tthrow makeError({\n\t\t\terror,\n\t\t\tstdout: '',\n\t\t\tstderr: '',\n\t\t\tall: '',\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: false,\n\t\t\tisCanceled: false,\n\t\t\tkilled: false,\n\t\t});\n\t}\n\n\tconst stdout = handleOutput(parsed.options, result.stdout, result.error);\n\tconst stderr = handleOutput(parsed.options, result.stderr, result.error);\n\n\tif (result.error || result.status !== 0 || result.signal !== null) {\n\t\tconst error = makeError({\n\t\t\tstdout,\n\t\t\tstderr,\n\t\t\terror: result.error,\n\t\t\tsignal: result.signal,\n\t\t\texitCode: result.status,\n\t\t\tcommand,\n\t\t\tescapedCommand,\n\t\t\tparsed,\n\t\t\ttimedOut: result.error && result.error.code === 'ETIMEDOUT',\n\t\t\tisCanceled: false,\n\t\t\tkilled: result.signal !== null,\n\t\t});\n\n\t\tif (!parsed.options.reject) {\n\t\t\treturn error;\n\t\t}\n\n\t\tthrow error;\n\t}\n\n\treturn {\n\t\tcommand,\n\t\tescapedCommand,\n\t\texitCode: 0,\n\t\tstdout,\n\t\tstderr,\n\t\tfailed: false,\n\t\ttimedOut: false,\n\t\tisCanceled: false,\n\t\tkilled: false,\n\t};\n}\n\nexport function execaCommand(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execa(file, args, options);\n}\n\nexport function execaCommandSync(command, options) {\n\tconst [file, ...args] = parseCommand(command);\n\treturn execaSync(file, args, options);\n}\n\nexport function execaNode(scriptPath, args, options = {}) {\n\tif (args && !Array.isArray(args) && typeof args === 'object') {\n\t\toptions = args;\n\t\targs = [];\n\t}\n\n\tconst stdio = normalizeStdioNode(options);\n\tconst defaultExecArgv = process.execArgv.filter(arg => !arg.startsWith('--inspect'));\n\n\tconst {\n\t\tnodePath = process.execPath,\n\t\tnodeOptions = defaultExecArgv,\n\t} = options;\n\n\treturn execa(\n\t\tnodePath,\n\t\t[\n\t\t\t...nodeOptions,\n\t\t\tscriptPath,\n\t\t\t...(Array.isArray(args) ? args : []),\n\t\t],\n\t\t{\n\t\t\t...options,\n\t\t\tstdin: undefined,\n\t\t\tstdout: undefined,\n\t\t\tstderr: undefined,\n\t\t\tstdio,\n\t\t\tshell: false,\n\t\t},\n\t);\n}\n"],"names":["npmRunPathEnv","crossSpawn","normalizeStdio","error","Buffer","stripFinalNewline","command","joinCommand","getEscapedCommand","validateTimeout","makeError","mergePromise","getSpawnedPromise","setupTimeout","setExitHandler","spawnedKill","spawnedCancel","getSpawnedResult","onetime","handleInput","makeAllStream","parseCommand"],"mappings":"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"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { Buffer } from "node:buffer";
|
|
2
|
+
import path__default from "node:path";
|
|
3
|
+
import childProcess from "node:child_process";
|
|
4
|
+
import process from "node:process";
|
|
5
|
+
import './../../../../__node_modules/cross-spawn/index.js';
|
|
6
|
+
import stripFinalNewline from "../strip-final-newline/index.js";
|
|
7
|
+
import { npmRunPathEnv } from "../npm-run-path/index.js";
|
|
8
|
+
import onetime from "../onetime/index.js";
|
|
9
|
+
import { makeError } from "./lib/error.js";
|
|
10
|
+
import { normalizeStdio } from "./lib/stdio.js";
|
|
11
|
+
import { validateTimeout, setupTimeout, setExitHandler, spawnedKill, spawnedCancel } from "./lib/kill.js";
|
|
12
|
+
import { handleInput, makeAllStream, getSpawnedResult } from "./lib/stream.js";
|
|
13
|
+
import { mergePromise, getSpawnedPromise } from "./lib/promise.js";
|
|
14
|
+
import { parseCommand, joinCommand, getEscapedCommand } from "./lib/command.js";
|
|
15
|
+
import { exports as crossSpawnExports } from "../../../../_virtual/index7.js";
|
|
16
|
+
const DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
17
|
+
const getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
18
|
+
const env = extendEnv ? { ...process.env, ...envOption } : envOption;
|
|
19
|
+
if (preferLocal) {
|
|
20
|
+
return npmRunPathEnv({ env, cwd: localDir, execPath });
|
|
21
|
+
}
|
|
22
|
+
return env;
|
|
23
|
+
};
|
|
24
|
+
const handleArguments = (file, args, options = {}) => {
|
|
25
|
+
const parsed = crossSpawnExports._parse(file, args, options);
|
|
26
|
+
file = parsed.command;
|
|
27
|
+
args = parsed.args;
|
|
28
|
+
options = parsed.options;
|
|
29
|
+
options = {
|
|
30
|
+
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
31
|
+
buffer: true,
|
|
32
|
+
stripFinalNewline: true,
|
|
33
|
+
extendEnv: true,
|
|
34
|
+
preferLocal: false,
|
|
35
|
+
localDir: options.cwd || process.cwd(),
|
|
36
|
+
execPath: process.execPath,
|
|
37
|
+
encoding: "utf8",
|
|
38
|
+
reject: true,
|
|
39
|
+
cleanup: true,
|
|
40
|
+
all: false,
|
|
41
|
+
windowsHide: true,
|
|
42
|
+
...options
|
|
43
|
+
};
|
|
44
|
+
options.env = getEnv(options);
|
|
45
|
+
options.stdio = normalizeStdio(options);
|
|
46
|
+
if (process.platform === "win32" && path__default.basename(file, ".exe") === "cmd") {
|
|
47
|
+
args.unshift("/q");
|
|
48
|
+
}
|
|
49
|
+
return { file, args, options, parsed };
|
|
50
|
+
};
|
|
51
|
+
const handleOutput = (options, value, error) => {
|
|
52
|
+
if (typeof value !== "string" && !Buffer.isBuffer(value)) {
|
|
53
|
+
return error === void 0 ? void 0 : "";
|
|
54
|
+
}
|
|
55
|
+
if (options.stripFinalNewline) {
|
|
56
|
+
return stripFinalNewline(value);
|
|
57
|
+
}
|
|
58
|
+
return value;
|
|
59
|
+
};
|
|
60
|
+
function execa(file, args, options) {
|
|
61
|
+
const parsed = handleArguments(file, args, options);
|
|
62
|
+
const command = joinCommand(file, args);
|
|
63
|
+
const escapedCommand = getEscapedCommand(file, args);
|
|
64
|
+
validateTimeout(parsed.options);
|
|
65
|
+
let spawned;
|
|
66
|
+
try {
|
|
67
|
+
spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);
|
|
68
|
+
} catch (error) {
|
|
69
|
+
const dummySpawned = new childProcess.ChildProcess();
|
|
70
|
+
const errorPromise = Promise.reject(makeError({
|
|
71
|
+
error,
|
|
72
|
+
stdout: "",
|
|
73
|
+
stderr: "",
|
|
74
|
+
all: "",
|
|
75
|
+
command,
|
|
76
|
+
escapedCommand,
|
|
77
|
+
parsed,
|
|
78
|
+
timedOut: false,
|
|
79
|
+
isCanceled: false,
|
|
80
|
+
killed: false
|
|
81
|
+
}));
|
|
82
|
+
return mergePromise(dummySpawned, errorPromise);
|
|
83
|
+
}
|
|
84
|
+
const spawnedPromise = getSpawnedPromise(spawned);
|
|
85
|
+
const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
|
|
86
|
+
const processDone = setExitHandler(spawned, parsed.options, timedPromise);
|
|
87
|
+
const context = { isCanceled: false };
|
|
88
|
+
spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
|
|
89
|
+
spawned.cancel = spawnedCancel.bind(null, spawned, context);
|
|
90
|
+
const handlePromise = async () => {
|
|
91
|
+
const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
|
|
92
|
+
const stdout = handleOutput(parsed.options, stdoutResult);
|
|
93
|
+
const stderr = handleOutput(parsed.options, stderrResult);
|
|
94
|
+
const all = handleOutput(parsed.options, allResult);
|
|
95
|
+
if (error || exitCode !== 0 || signal !== null) {
|
|
96
|
+
const returnedError = makeError({
|
|
97
|
+
error,
|
|
98
|
+
exitCode,
|
|
99
|
+
signal,
|
|
100
|
+
stdout,
|
|
101
|
+
stderr,
|
|
102
|
+
all,
|
|
103
|
+
command,
|
|
104
|
+
escapedCommand,
|
|
105
|
+
parsed,
|
|
106
|
+
timedOut,
|
|
107
|
+
isCanceled: context.isCanceled || (parsed.options.signal ? parsed.options.signal.aborted : false),
|
|
108
|
+
killed: spawned.killed
|
|
109
|
+
});
|
|
110
|
+
if (!parsed.options.reject) {
|
|
111
|
+
return returnedError;
|
|
112
|
+
}
|
|
113
|
+
throw returnedError;
|
|
114
|
+
}
|
|
115
|
+
return {
|
|
116
|
+
command,
|
|
117
|
+
escapedCommand,
|
|
118
|
+
exitCode: 0,
|
|
119
|
+
stdout,
|
|
120
|
+
stderr,
|
|
121
|
+
all,
|
|
122
|
+
failed: false,
|
|
123
|
+
timedOut: false,
|
|
124
|
+
isCanceled: false,
|
|
125
|
+
killed: false
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
const handlePromiseOnce = onetime(handlePromise);
|
|
129
|
+
handleInput(spawned, parsed.options.input);
|
|
130
|
+
spawned.all = makeAllStream(spawned, parsed.options);
|
|
131
|
+
return mergePromise(spawned, handlePromiseOnce);
|
|
132
|
+
}
|
|
133
|
+
function execaCommand(command, options) {
|
|
134
|
+
const [file, ...args] = parseCommand(command);
|
|
135
|
+
return execa(file, args, options);
|
|
136
|
+
}
|
|
137
|
+
export {
|
|
138
|
+
execa,
|
|
139
|
+
execaCommand
|
|
140
|
+
};
|
|
141
|
+
//# sourceMappingURL=index.js.map
|