@bleedingdev/modern-js-utils 3.9.0-ultramodern.8 → 3.9.3-ultramodern.1
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/dist/cjs/cli/applyOptionsChain.js +1 -1
- package/dist/cjs/cli/get/config.js +1 -1
- package/dist/cjs/cli/is/config.js +1 -1
- package/dist/cjs/cli/require.js +3 -7
- package/dist/cjs/compiled.js +28 -34
- package/dist/cjs/fast-glob.js +50 -0
- package/dist/cjs/watch-options.js +18 -0
- package/dist/compiled/address/LICENSE.txt +22 -0
- package/dist/compiled/address/declaration-licenses/address/LICENSE.txt +22 -0
- package/dist/compiled/address/index.d.mts +50 -0
- package/dist/compiled/address/index.d.ts +50 -0
- package/dist/compiled/address/index.js +189 -136
- package/dist/compiled/address/index.mjs +187 -0
- package/dist/compiled/address/licenses-cjs.txt +24 -0
- package/dist/compiled/address/licenses-esm.txt +24 -0
- package/dist/compiled/address/package.json +1 -1
- package/dist/compiled/address/provenance.json +22 -0
- package/dist/compiled/browserslist/LICENSE +20 -0
- package/dist/compiled/browserslist/declaration-licenses/browserslist/LICENSE +20 -0
- package/dist/compiled/browserslist/index.d.ts +51 -5
- package/dist/compiled/browserslist/index.js +1763 -820
- package/dist/compiled/browserslist/licenses-cjs.txt +286 -0
- package/dist/compiled/browserslist/package.json +1 -1
- package/dist/compiled/browserslist/provenance.json +19 -0
- package/dist/compiled/chalk/declaration-licenses/chalk/license +9 -0
- package/dist/compiled/chalk/index.d.mts +677 -0
- package/dist/compiled/chalk/index.d.ts +619 -357
- package/dist/compiled/chalk/index.js +734 -2343
- package/dist/compiled/chalk/index.mjs +761 -0
- package/dist/compiled/chalk/license +1 -1
- package/dist/compiled/chalk/licenses-cjs.txt +11 -0
- package/dist/compiled/chalk/licenses-esm.txt +11 -0
- package/dist/compiled/chalk/package.json +1 -1
- package/dist/compiled/chalk/provenance.json +19 -0
- package/dist/compiled/chokidar/LICENSE +21 -0
- package/dist/compiled/chokidar/declaration-licenses/chokidar/LICENSE +21 -0
- package/dist/compiled/chokidar/declaration-licenses/readdirp/LICENSE +21 -0
- package/dist/compiled/chokidar/index.d.mts +385 -0
- package/dist/compiled/chokidar/index.d.ts +385 -0
- package/dist/compiled/chokidar/index.js +1437 -4099
- package/dist/compiled/chokidar/index.js.LICENSE.txt +1 -41
- package/dist/compiled/chokidar/index.mjs +1492 -0
- package/dist/compiled/chokidar/index.mjs.LICENSE.txt +1 -0
- package/dist/compiled/chokidar/licenses-cjs.txt +48 -0
- package/dist/compiled/chokidar/licenses-esm.txt +48 -0
- package/dist/compiled/chokidar/package.json +1 -1
- package/dist/compiled/chokidar/provenance.json +27 -0
- package/dist/compiled/commander/declaration-licenses/commander/LICENSE +22 -0
- package/dist/compiled/commander/index.d.mts +1116 -0
- package/dist/compiled/commander/index.d.ts +1116 -0
- package/dist/compiled/commander/index.js +1738 -1499
- package/dist/compiled/commander/index.mjs +1778 -2
- package/dist/compiled/commander/licenses-cjs.txt +24 -0
- package/dist/compiled/commander/licenses-esm.txt +24 -0
- package/dist/compiled/commander/package.json +1 -1
- package/dist/compiled/commander/provenance.json +22 -0
- package/dist/compiled/debug/declaration-licenses/@types_ms/LICENSE +21 -0
- package/dist/compiled/debug/index.d.ts +79 -16
- package/dist/compiled/debug/index.js +172 -106
- package/dist/compiled/debug/licenses-cjs.txt +60 -0
- package/dist/compiled/debug/package.json +1 -1
- package/dist/compiled/debug/provenance.json +27 -0
- package/dist/compiled/dotenv-expand/declaration-licenses/dotenv-expand/LICENSE +24 -0
- package/dist/compiled/dotenv-expand/index.d.ts +48 -10
- package/dist/compiled/dotenv-expand/index.js +65 -41
- package/dist/compiled/dotenv-expand/licenses-cjs.txt +25 -0
- package/dist/compiled/dotenv-expand/package.json +1 -1
- package/dist/compiled/dotenv-expand/provenance.json +22 -0
- package/dist/compiled/execa/declaration-licenses/execa/license +9 -0
- package/dist/compiled/execa/index.d.mts +2451 -0
- package/dist/compiled/execa/index.d.ts +2301 -414
- package/dist/compiled/execa/index.js +6485 -1681
- package/dist/compiled/execa/index.mjs +6541 -0
- package/dist/compiled/execa/licenses-cjs.txt +443 -0
- package/dist/compiled/execa/licenses-esm.txt +443 -0
- package/dist/compiled/execa/package.json +1 -1
- package/dist/compiled/execa/provenance.json +19 -0
- package/dist/compiled/filesize/LICENSE +28 -0
- package/dist/compiled/filesize/declaration-licenses/filesize/LICENSE +28 -0
- package/dist/compiled/filesize/index.d.mts +98 -0
- package/dist/compiled/filesize/index.d.ts +98 -0
- package/dist/compiled/filesize/index.js +425 -185
- package/dist/compiled/filesize/index.js.LICENSE.txt +2 -2
- package/dist/compiled/filesize/index.mjs +450 -0
- package/dist/compiled/filesize/index.mjs.LICENSE.txt +7 -0
- package/dist/compiled/filesize/licenses-cjs.txt +29 -0
- package/dist/compiled/filesize/licenses-esm.txt +29 -0
- package/dist/compiled/filesize/package.json +1 -1
- package/dist/compiled/filesize/provenance.json +22 -0
- package/dist/compiled/fs-extra/LICENSE +15 -0
- package/dist/compiled/fs-extra/declaration-licenses/@types_fs-extra/LICENSE +21 -0
- package/dist/compiled/fs-extra/declaration-licenses/@types_jsonfile/LICENSE +21 -0
- package/dist/compiled/fs-extra/index.d.ts +997 -496
- package/dist/compiled/fs-extra/index.js +1142 -1355
- package/dist/compiled/fs-extra/licenses-cjs.txt +79 -0
- package/dist/compiled/fs-extra/package.json +1 -1
- package/dist/compiled/fs-extra/provenance.json +27 -0
- package/dist/compiled/glob/LICENSE.md +63 -0
- package/dist/compiled/glob/declaration-licenses/glob/LICENSE.md +63 -0
- package/dist/compiled/glob/declaration-licenses/lru-cache/LICENSE.md +55 -0
- package/dist/compiled/glob/declaration-licenses/minimatch/LICENSE.md +55 -0
- package/dist/compiled/glob/declaration-licenses/minipass/LICENSE.md +55 -0
- package/dist/compiled/glob/declaration-licenses/path-scurry/LICENSE.md +55 -0
- package/dist/compiled/glob/index.d.mts +3823 -0
- package/dist/compiled/glob/index.d.ts +3823 -91
- package/dist/compiled/glob/index.js +3612 -1937
- package/dist/compiled/glob/index.mjs +3467 -0
- package/dist/compiled/glob/licenses-cjs.txt +65 -0
- package/dist/compiled/glob/licenses-esm.txt +65 -0
- package/dist/compiled/glob/package.json +1 -1
- package/dist/compiled/glob/provenance.json +42 -0
- package/dist/compiled/globby/declaration-licenses/globby/license +9 -0
- package/dist/compiled/globby/index.d.mts +422 -0
- package/dist/compiled/globby/index.d.ts +364 -128
- package/dist/compiled/globby/index.js +4417 -521
- package/dist/compiled/globby/index.js.LICENSE.txt +20 -0
- package/dist/compiled/globby/index.mjs +4572 -0
- package/dist/compiled/globby/index.mjs.LICENSE.txt +20 -0
- package/dist/compiled/globby/license +1 -1
- package/dist/compiled/globby/licenses-cjs.txt +237 -0
- package/dist/compiled/globby/licenses-esm.txt +237 -0
- package/dist/compiled/globby/package.json +1 -1
- package/dist/compiled/globby/provenance.json +19 -0
- package/dist/compiled/gzip-size/declaration-licenses/gzip-size/license +9 -0
- package/dist/compiled/gzip-size/index.d.mts +106 -0
- package/dist/compiled/gzip-size/index.d.ts +91 -81
- package/dist/compiled/gzip-size/index.js +117 -94
- package/dist/compiled/gzip-size/index.mjs +170 -0
- package/dist/compiled/gzip-size/licenses-cjs.txt +33 -0
- package/dist/compiled/gzip-size/licenses-esm.txt +33 -0
- package/dist/compiled/gzip-size/package.json +1 -1
- package/dist/compiled/gzip-size/provenance.json +19 -0
- package/dist/compiled/import-lazy/declaration-licenses/import-lazy/license +9 -0
- package/dist/compiled/import-lazy/index.d.ts +2 -2
- package/dist/compiled/import-lazy/index.js +18 -19
- package/dist/compiled/import-lazy/licenses-cjs.txt +11 -0
- package/dist/compiled/import-lazy/package.json +1 -1
- package/dist/compiled/import-lazy/provenance.json +19 -0
- package/dist/compiled/inquirer/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_checkbox/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_confirm/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_core/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_editor/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_expand/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_external-editor/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_input/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_number/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_password/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_prompts/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_rawlist/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_search/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_select/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/@inquirer_type/LICENSE +22 -0
- package/dist/compiled/inquirer/declaration-licenses/inquirer/LICENSE +22 -0
- package/dist/compiled/inquirer/index.d.mts +790 -0
- package/dist/compiled/inquirer/index.d.ts +727 -934
- package/dist/compiled/inquirer/index.js +5975 -14467
- package/dist/compiled/inquirer/index.mjs +11624 -0
- package/dist/compiled/inquirer/licenses-cjs.txt +619 -0
- package/dist/compiled/inquirer/licenses-esm.txt +619 -0
- package/dist/compiled/inquirer/package.json +1 -1
- package/dist/compiled/inquirer/provenance.json +92 -0
- package/dist/compiled/js-yaml/declaration-licenses/js-yaml/LICENSE +21 -0
- package/dist/compiled/js-yaml/index.d.mts +1126 -0
- package/dist/compiled/js-yaml/index.d.ts +1114 -142
- package/dist/compiled/js-yaml/index.js +20 -21
- package/dist/compiled/js-yaml/index.js.LICENSE.txt +1 -1
- package/dist/compiled/js-yaml/index.mjs +5 -4
- package/dist/compiled/js-yaml/index.mjs.LICENSE.txt +1 -1
- package/dist/compiled/js-yaml/licenses-cjs.txt +23 -0
- package/dist/compiled/js-yaml/licenses-esm.txt +23 -0
- package/dist/compiled/js-yaml/package.json +1 -1
- package/dist/compiled/js-yaml/provenance.json +19 -0
- package/dist/compiled/json5/LICENSE.md +23 -0
- package/dist/compiled/json5/declaration-licenses/json5/LICENSE.md +23 -0
- package/dist/compiled/json5/index.d.ts +103 -0
- package/dist/compiled/json5/index.js +11 -11
- package/dist/compiled/json5/licenses-cjs.txt +25 -0
- package/dist/compiled/json5/package.json +1 -1
- package/dist/compiled/json5/provenance.json +22 -0
- package/dist/compiled/lodash/add.d.ts +2 -0
- package/dist/compiled/lodash/after.d.ts +2 -0
- package/dist/compiled/lodash/ary.d.ts +2 -0
- package/dist/compiled/lodash/assign.d.ts +2 -0
- package/dist/compiled/lodash/assignIn.d.ts +2 -0
- package/dist/compiled/lodash/assignInWith.d.ts +2 -0
- package/dist/compiled/lodash/assignWith.d.ts +2 -0
- package/dist/compiled/lodash/at.d.ts +2 -0
- package/dist/compiled/lodash/attempt.d.ts +2 -0
- package/dist/compiled/lodash/before.d.ts +2 -0
- package/dist/compiled/lodash/bind.d.ts +2 -0
- package/dist/compiled/lodash/bindAll.d.ts +2 -0
- package/dist/compiled/lodash/bindKey.d.ts +2 -0
- package/dist/compiled/lodash/camelCase.d.ts +2 -0
- package/dist/compiled/lodash/capitalize.d.ts +2 -0
- package/dist/compiled/lodash/castArray.d.ts +2 -0
- package/dist/compiled/lodash/ceil.d.ts +2 -0
- package/dist/compiled/lodash/chain.d.ts +2 -0
- package/dist/compiled/lodash/chunk.d.ts +2 -0
- package/dist/compiled/lodash/clamp.d.ts +2 -0
- package/dist/compiled/lodash/clone.d.ts +2 -0
- package/dist/compiled/lodash/cloneDeep.d.ts +2 -0
- package/dist/compiled/lodash/cloneDeepWith.d.ts +2 -0
- package/dist/compiled/lodash/cloneWith.d.ts +2 -0
- package/dist/compiled/lodash/common/array.d.ts +56 -22
- package/dist/compiled/lodash/common/collection.d.ts +9 -1
- package/dist/compiled/lodash/common/common.d.ts +17 -10
- package/dist/compiled/lodash/common/function.d.ts +10 -1
- package/dist/compiled/lodash/common/lang.d.ts +8 -5
- package/dist/compiled/lodash/common/math.d.ts +3 -1
- package/dist/compiled/lodash/common/object.d.ts +141 -17
- package/dist/compiled/lodash/common/seq.d.ts +2 -2
- package/dist/compiled/lodash/common/string.d.ts +17 -17
- package/dist/compiled/lodash/compact.d.ts +2 -0
- package/dist/compiled/lodash/concat.d.ts +2 -0
- package/dist/compiled/lodash/cond.d.ts +2 -0
- package/dist/compiled/lodash/conforms.d.ts +2 -0
- package/dist/compiled/lodash/conformsTo.d.ts +2 -0
- package/dist/compiled/lodash/constant.d.ts +2 -0
- package/dist/compiled/lodash/countBy.d.ts +2 -0
- package/dist/compiled/lodash/create.d.ts +2 -0
- package/dist/compiled/lodash/curry.d.ts +2 -0
- package/dist/compiled/lodash/curryRight.d.ts +2 -0
- package/dist/compiled/lodash/debounce.d.ts +2 -0
- package/dist/compiled/lodash/deburr.d.ts +2 -0
- package/dist/compiled/lodash/declaration-licenses/@types_lodash/LICENSE +21 -0
- package/dist/compiled/lodash/defaultTo.d.ts +2 -0
- package/dist/compiled/lodash/defaults.d.ts +2 -0
- package/dist/compiled/lodash/defaultsDeep.d.ts +2 -0
- package/dist/compiled/lodash/defer.d.ts +2 -0
- package/dist/compiled/lodash/delay.d.ts +2 -0
- package/dist/compiled/lodash/difference.d.ts +2 -0
- package/dist/compiled/lodash/differenceBy.d.ts +2 -0
- package/dist/compiled/lodash/differenceWith.d.ts +2 -0
- package/dist/compiled/lodash/divide.d.ts +2 -0
- package/dist/compiled/lodash/drop.d.ts +2 -0
- package/dist/compiled/lodash/dropRight.d.ts +2 -0
- package/dist/compiled/lodash/dropRightWhile.d.ts +2 -0
- package/dist/compiled/lodash/dropWhile.d.ts +2 -0
- package/dist/compiled/lodash/each.d.ts +2 -0
- package/dist/compiled/lodash/eachRight.d.ts +2 -0
- package/dist/compiled/lodash/endsWith.d.ts +2 -0
- package/dist/compiled/lodash/entries.d.ts +2 -0
- package/dist/compiled/lodash/entriesIn.d.ts +2 -0
- package/dist/compiled/lodash/eq.d.ts +2 -0
- package/dist/compiled/lodash/escape.d.ts +2 -0
- package/dist/compiled/lodash/escapeRegExp.d.ts +2 -0
- package/dist/compiled/lodash/every.d.ts +2 -0
- package/dist/compiled/lodash/extend.d.ts +2 -0
- package/dist/compiled/lodash/extendWith.d.ts +2 -0
- package/dist/compiled/lodash/fill.d.ts +2 -0
- package/dist/compiled/lodash/filter.d.ts +2 -0
- package/dist/compiled/lodash/find.d.ts +2 -0
- package/dist/compiled/lodash/findIndex.d.ts +2 -0
- package/dist/compiled/lodash/findKey.d.ts +2 -0
- package/dist/compiled/lodash/findLast.d.ts +2 -0
- package/dist/compiled/lodash/findLastIndex.d.ts +2 -0
- package/dist/compiled/lodash/findLastKey.d.ts +2 -0
- package/dist/compiled/lodash/first.d.ts +2 -0
- package/dist/compiled/lodash/flatMap.d.ts +2 -0
- package/dist/compiled/lodash/flatMapDeep.d.ts +2 -0
- package/dist/compiled/lodash/flatMapDepth.d.ts +2 -0
- package/dist/compiled/lodash/flatten.d.ts +2 -0
- package/dist/compiled/lodash/flattenDeep.d.ts +2 -0
- package/dist/compiled/lodash/flattenDepth.d.ts +2 -0
- package/dist/compiled/lodash/flip.d.ts +2 -0
- package/dist/compiled/lodash/floor.d.ts +2 -0
- package/dist/compiled/lodash/flow.d.ts +2 -0
- package/dist/compiled/lodash/flowRight.d.ts +2 -0
- package/dist/compiled/lodash/forEach.d.ts +2 -0
- package/dist/compiled/lodash/forEachRight.d.ts +2 -0
- package/dist/compiled/lodash/forIn.d.ts +2 -0
- package/dist/compiled/lodash/forInRight.d.ts +2 -0
- package/dist/compiled/lodash/forOwn.d.ts +2 -0
- package/dist/compiled/lodash/forOwnRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/F.d.ts +2 -0
- package/dist/compiled/lodash/fp/T.d.ts +2 -0
- package/dist/compiled/lodash/fp/__.d.ts +3 -0
- package/dist/compiled/lodash/fp/add.d.ts +2 -0
- package/dist/compiled/lodash/fp/after.d.ts +2 -0
- package/dist/compiled/lodash/fp/all.d.ts +2 -0
- package/dist/compiled/lodash/fp/allPass.d.ts +2 -0
- package/dist/compiled/lodash/fp/always.d.ts +2 -0
- package/dist/compiled/lodash/fp/any.d.ts +2 -0
- package/dist/compiled/lodash/fp/anyPass.d.ts +2 -0
- package/dist/compiled/lodash/fp/apply.d.ts +2 -0
- package/dist/compiled/lodash/fp/ary.d.ts +2 -0
- package/dist/compiled/lodash/fp/assign.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignInAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignInAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignInWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/assignWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/assoc.d.ts +2 -0
- package/dist/compiled/lodash/fp/assocPath.d.ts +2 -0
- package/dist/compiled/lodash/fp/at.d.ts +2 -0
- package/dist/compiled/lodash/fp/attempt.d.ts +2 -0
- package/dist/compiled/lodash/fp/before.d.ts +2 -0
- package/dist/compiled/lodash/fp/bind.d.ts +2 -0
- package/dist/compiled/lodash/fp/bindAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/bindKey.d.ts +2 -0
- package/dist/compiled/lodash/fp/camelCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/capitalize.d.ts +2 -0
- package/dist/compiled/lodash/fp/castArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/ceil.d.ts +2 -0
- package/dist/compiled/lodash/fp/chunk.d.ts +2 -0
- package/dist/compiled/lodash/fp/clamp.d.ts +2 -0
- package/dist/compiled/lodash/fp/clone.d.ts +2 -0
- package/dist/compiled/lodash/fp/cloneDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/cloneDeepWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/cloneWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/compact.d.ts +2 -0
- package/dist/compiled/lodash/fp/complement.d.ts +2 -0
- package/dist/compiled/lodash/fp/compose.d.ts +2 -0
- package/dist/compiled/lodash/fp/concat.d.ts +2 -0
- package/dist/compiled/lodash/fp/cond.d.ts +2 -0
- package/dist/compiled/lodash/fp/conforms.d.ts +2 -0
- package/dist/compiled/lodash/fp/conformsTo.d.ts +2 -0
- package/dist/compiled/lodash/fp/constant.d.ts +2 -0
- package/dist/compiled/lodash/fp/contains.d.ts +2 -0
- package/dist/compiled/lodash/fp/convert.d.ts +15 -0
- package/dist/compiled/lodash/fp/countBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/create.d.ts +2 -0
- package/dist/compiled/lodash/fp/curry.d.ts +2 -0
- package/dist/compiled/lodash/fp/curryN.d.ts +2 -0
- package/dist/compiled/lodash/fp/curryRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/curryRightN.d.ts +2 -0
- package/dist/compiled/lodash/fp/debounce.d.ts +2 -0
- package/dist/compiled/lodash/fp/deburr.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaultTo.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaults.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaultsAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaultsDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/defaultsDeepAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/defer.d.ts +2 -0
- package/dist/compiled/lodash/fp/delay.d.ts +2 -0
- package/dist/compiled/lodash/fp/difference.d.ts +2 -0
- package/dist/compiled/lodash/fp/differenceBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/differenceWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/dissoc.d.ts +2 -0
- package/dist/compiled/lodash/fp/dissocPath.d.ts +2 -0
- package/dist/compiled/lodash/fp/divide.d.ts +2 -0
- package/dist/compiled/lodash/fp/drop.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropLast.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropLastWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropRightWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/dropWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/each.d.ts +2 -0
- package/dist/compiled/lodash/fp/eachRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/endsWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/entries.d.ts +2 -0
- package/dist/compiled/lodash/fp/entriesIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/eq.d.ts +2 -0
- package/dist/compiled/lodash/fp/equals.d.ts +2 -0
- package/dist/compiled/lodash/fp/escape.d.ts +2 -0
- package/dist/compiled/lodash/fp/escapeRegExp.d.ts +2 -0
- package/dist/compiled/lodash/fp/every.d.ts +2 -0
- package/dist/compiled/lodash/fp/extend.d.ts +2 -0
- package/dist/compiled/lodash/fp/extendAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/extendAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/extendWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/fill.d.ts +2 -0
- package/dist/compiled/lodash/fp/filter.d.ts +2 -0
- package/dist/compiled/lodash/fp/find.d.ts +2 -0
- package/dist/compiled/lodash/fp/findFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/findIndex.d.ts +2 -0
- package/dist/compiled/lodash/fp/findIndexFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/findKey.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLast.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLastFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLastIndex.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLastIndexFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/findLastKey.d.ts +2 -0
- package/dist/compiled/lodash/fp/first.d.ts +2 -0
- package/dist/compiled/lodash/fp/flatMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/flatMapDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/flatMapDepth.d.ts +2 -0
- package/dist/compiled/lodash/fp/flatten.d.ts +2 -0
- package/dist/compiled/lodash/fp/flattenDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/flattenDepth.d.ts +2 -0
- package/dist/compiled/lodash/fp/flip.d.ts +2 -0
- package/dist/compiled/lodash/fp/floor.d.ts +2 -0
- package/dist/compiled/lodash/fp/flow.d.ts +2 -0
- package/dist/compiled/lodash/fp/flowRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/forEach.d.ts +2 -0
- package/dist/compiled/lodash/fp/forEachRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/forIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/forInRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/forOwn.d.ts +2 -0
- package/dist/compiled/lodash/fp/forOwnRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/fromPairs.d.ts +2 -0
- package/dist/compiled/lodash/fp/functions.d.ts +2 -0
- package/dist/compiled/lodash/fp/functionsIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/get.d.ts +2 -0
- package/dist/compiled/lodash/fp/getOr.d.ts +2 -0
- package/dist/compiled/lodash/fp/groupBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/gt.d.ts +2 -0
- package/dist/compiled/lodash/fp/gte.d.ts +2 -0
- package/dist/compiled/lodash/fp/has.d.ts +2 -0
- package/dist/compiled/lodash/fp/hasIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/head.d.ts +2 -0
- package/dist/compiled/lodash/fp/identical.d.ts +2 -0
- package/dist/compiled/lodash/fp/identity.d.ts +2 -0
- package/dist/compiled/lodash/fp/inRange.d.ts +2 -0
- package/dist/compiled/lodash/fp/includes.d.ts +2 -0
- package/dist/compiled/lodash/fp/includesFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/indexBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/indexOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/indexOfFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/init.d.ts +2 -0
- package/dist/compiled/lodash/fp/initial.d.ts +2 -0
- package/dist/compiled/lodash/fp/intersection.d.ts +2 -0
- package/dist/compiled/lodash/fp/intersectionBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/intersectionWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/invert.d.ts +2 -0
- package/dist/compiled/lodash/fp/invertBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/invertObj.d.ts +2 -0
- package/dist/compiled/lodash/fp/invoke.d.ts +2 -0
- package/dist/compiled/lodash/fp/invokeArgs.d.ts +2 -0
- package/dist/compiled/lodash/fp/invokeArgsMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/invokeMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArguments.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArrayBuffer.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArrayLike.d.ts +2 -0
- package/dist/compiled/lodash/fp/isArrayLikeObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/isBoolean.d.ts +2 -0
- package/dist/compiled/lodash/fp/isBuffer.d.ts +2 -0
- package/dist/compiled/lodash/fp/isDate.d.ts +2 -0
- package/dist/compiled/lodash/fp/isElement.d.ts +2 -0
- package/dist/compiled/lodash/fp/isEmpty.d.ts +2 -0
- package/dist/compiled/lodash/fp/isEqual.d.ts +2 -0
- package/dist/compiled/lodash/fp/isEqualWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/isError.d.ts +2 -0
- package/dist/compiled/lodash/fp/isFinite.d.ts +2 -0
- package/dist/compiled/lodash/fp/isFunction.d.ts +2 -0
- package/dist/compiled/lodash/fp/isInteger.d.ts +2 -0
- package/dist/compiled/lodash/fp/isLength.d.ts +2 -0
- package/dist/compiled/lodash/fp/isMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/isMatch.d.ts +2 -0
- package/dist/compiled/lodash/fp/isMatchWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNaN.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNative.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNil.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNull.d.ts +2 -0
- package/dist/compiled/lodash/fp/isNumber.d.ts +2 -0
- package/dist/compiled/lodash/fp/isObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/isObjectLike.d.ts +2 -0
- package/dist/compiled/lodash/fp/isPlainObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/isRegExp.d.ts +2 -0
- package/dist/compiled/lodash/fp/isSafeInteger.d.ts +2 -0
- package/dist/compiled/lodash/fp/isSet.d.ts +2 -0
- package/dist/compiled/lodash/fp/isString.d.ts +2 -0
- package/dist/compiled/lodash/fp/isSymbol.d.ts +2 -0
- package/dist/compiled/lodash/fp/isTypedArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/isUndefined.d.ts +2 -0
- package/dist/compiled/lodash/fp/isWeakMap.d.ts +2 -0
- package/dist/compiled/lodash/fp/isWeakSet.d.ts +2 -0
- package/dist/compiled/lodash/fp/iteratee.d.ts +2 -0
- package/dist/compiled/lodash/fp/join.d.ts +2 -0
- package/dist/compiled/lodash/fp/juxt.d.ts +2 -0
- package/dist/compiled/lodash/fp/kebabCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/keyBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/keys.d.ts +2 -0
- package/dist/compiled/lodash/fp/keysIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/last.d.ts +2 -0
- package/dist/compiled/lodash/fp/lastIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/lastIndexOfFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/lowerCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/lowerFirst.d.ts +2 -0
- package/dist/compiled/lodash/fp/lt.d.ts +2 -0
- package/dist/compiled/lodash/fp/lte.d.ts +2 -0
- package/dist/compiled/lodash/fp/map.d.ts +2 -0
- package/dist/compiled/lodash/fp/mapKeys.d.ts +2 -0
- package/dist/compiled/lodash/fp/mapValues.d.ts +2 -0
- package/dist/compiled/lodash/fp/matches.d.ts +2 -0
- package/dist/compiled/lodash/fp/matchesProperty.d.ts +2 -0
- package/dist/compiled/lodash/fp/max.d.ts +2 -0
- package/dist/compiled/lodash/fp/maxBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/mean.d.ts +2 -0
- package/dist/compiled/lodash/fp/meanBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/memoize.d.ts +2 -0
- package/dist/compiled/lodash/fp/merge.d.ts +2 -0
- package/dist/compiled/lodash/fp/mergeAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/mergeAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/mergeWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/method.d.ts +2 -0
- package/dist/compiled/lodash/fp/methodOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/min.d.ts +2 -0
- package/dist/compiled/lodash/fp/minBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/multiply.d.ts +2 -0
- package/dist/compiled/lodash/fp/nAry.d.ts +2 -0
- package/dist/compiled/lodash/fp/negate.d.ts +2 -0
- package/dist/compiled/lodash/fp/noConflict.d.ts +2 -0
- package/dist/compiled/lodash/fp/noop.d.ts +2 -0
- package/dist/compiled/lodash/fp/now.d.ts +2 -0
- package/dist/compiled/lodash/fp/nth.d.ts +2 -0
- package/dist/compiled/lodash/fp/nthArg.d.ts +2 -0
- package/dist/compiled/lodash/fp/omit.d.ts +2 -0
- package/dist/compiled/lodash/fp/omitAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/omitBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/once.d.ts +2 -0
- package/dist/compiled/lodash/fp/orderBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/over.d.ts +2 -0
- package/dist/compiled/lodash/fp/overArgs.d.ts +2 -0
- package/dist/compiled/lodash/fp/overEvery.d.ts +2 -0
- package/dist/compiled/lodash/fp/overSome.d.ts +2 -0
- package/dist/compiled/lodash/fp/pad.d.ts +2 -0
- package/dist/compiled/lodash/fp/padChars.d.ts +2 -0
- package/dist/compiled/lodash/fp/padCharsEnd.d.ts +2 -0
- package/dist/compiled/lodash/fp/padCharsStart.d.ts +2 -0
- package/dist/compiled/lodash/fp/padEnd.d.ts +2 -0
- package/dist/compiled/lodash/fp/padStart.d.ts +2 -0
- package/dist/compiled/lodash/fp/parseInt.d.ts +2 -0
- package/dist/compiled/lodash/fp/partial.d.ts +2 -0
- package/dist/compiled/lodash/fp/partialRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/partition.d.ts +2 -0
- package/dist/compiled/lodash/fp/path.d.ts +2 -0
- package/dist/compiled/lodash/fp/pathEq.d.ts +2 -0
- package/dist/compiled/lodash/fp/pathOr.d.ts +2 -0
- package/dist/compiled/lodash/fp/paths.d.ts +2 -0
- package/dist/compiled/lodash/fp/pick.d.ts +2 -0
- package/dist/compiled/lodash/fp/pickAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/pickBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/pipe.d.ts +2 -0
- package/dist/compiled/lodash/fp/placeholder.d.ts +3 -0
- package/dist/compiled/lodash/fp/pluck.d.ts +2 -0
- package/dist/compiled/lodash/fp/prop.d.ts +2 -0
- package/dist/compiled/lodash/fp/propEq.d.ts +2 -0
- package/dist/compiled/lodash/fp/propOr.d.ts +2 -0
- package/dist/compiled/lodash/fp/property.d.ts +2 -0
- package/dist/compiled/lodash/fp/propertyOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/props.d.ts +2 -0
- package/dist/compiled/lodash/fp/pull.d.ts +2 -0
- package/dist/compiled/lodash/fp/pullAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/pullAllBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/pullAllWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/pullAt.d.ts +2 -0
- package/dist/compiled/lodash/fp/random.d.ts +2 -0
- package/dist/compiled/lodash/fp/range.d.ts +2 -0
- package/dist/compiled/lodash/fp/rangeRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/rangeStep.d.ts +2 -0
- package/dist/compiled/lodash/fp/rangeStepRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/rearg.d.ts +2 -0
- package/dist/compiled/lodash/fp/reduce.d.ts +2 -0
- package/dist/compiled/lodash/fp/reduceRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/reject.d.ts +2 -0
- package/dist/compiled/lodash/fp/remove.d.ts +2 -0
- package/dist/compiled/lodash/fp/repeat.d.ts +2 -0
- package/dist/compiled/lodash/fp/replace.d.ts +2 -0
- package/dist/compiled/lodash/fp/rest.d.ts +2 -0
- package/dist/compiled/lodash/fp/restFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/result.d.ts +2 -0
- package/dist/compiled/lodash/fp/reverse.d.ts +2 -0
- package/dist/compiled/lodash/fp/round.d.ts +2 -0
- package/dist/compiled/lodash/fp/runInContext.d.ts +2 -0
- package/dist/compiled/lodash/fp/sample.d.ts +2 -0
- package/dist/compiled/lodash/fp/sampleSize.d.ts +2 -0
- package/dist/compiled/lodash/fp/set.d.ts +2 -0
- package/dist/compiled/lodash/fp/setWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/shuffle.d.ts +2 -0
- package/dist/compiled/lodash/fp/size.d.ts +2 -0
- package/dist/compiled/lodash/fp/slice.d.ts +2 -0
- package/dist/compiled/lodash/fp/snakeCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/some.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedIndex.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedIndexBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedLastIndex.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedLastIndexBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedLastIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedUniq.d.ts +2 -0
- package/dist/compiled/lodash/fp/sortedUniqBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/split.d.ts +2 -0
- package/dist/compiled/lodash/fp/spread.d.ts +2 -0
- package/dist/compiled/lodash/fp/spreadFrom.d.ts +2 -0
- package/dist/compiled/lodash/fp/startCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/startsWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubFalse.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubString.d.ts +2 -0
- package/dist/compiled/lodash/fp/stubTrue.d.ts +2 -0
- package/dist/compiled/lodash/fp/subtract.d.ts +2 -0
- package/dist/compiled/lodash/fp/sum.d.ts +2 -0
- package/dist/compiled/lodash/fp/sumBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/symmetricDifference.d.ts +2 -0
- package/dist/compiled/lodash/fp/symmetricDifferenceBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/symmetricDifferenceWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/tail.d.ts +2 -0
- package/dist/compiled/lodash/fp/take.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeLast.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeLastWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeRight.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeRightWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/takeWhile.d.ts +2 -0
- package/dist/compiled/lodash/fp/tap.d.ts +2 -0
- package/dist/compiled/lodash/fp/template.d.ts +2 -0
- package/dist/compiled/lodash/fp/throttle.d.ts +2 -0
- package/dist/compiled/lodash/fp/thru.d.ts +2 -0
- package/dist/compiled/lodash/fp/times.d.ts +2 -0
- package/dist/compiled/lodash/fp/toArray.d.ts +2 -0
- package/dist/compiled/lodash/fp/toFinite.d.ts +2 -0
- package/dist/compiled/lodash/fp/toInteger.d.ts +2 -0
- package/dist/compiled/lodash/fp/toLength.d.ts +2 -0
- package/dist/compiled/lodash/fp/toLower.d.ts +2 -0
- package/dist/compiled/lodash/fp/toNumber.d.ts +2 -0
- package/dist/compiled/lodash/fp/toPairs.d.ts +2 -0
- package/dist/compiled/lodash/fp/toPairsIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/toPath.d.ts +2 -0
- package/dist/compiled/lodash/fp/toPlainObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/toSafeInteger.d.ts +2 -0
- package/dist/compiled/lodash/fp/toString.d.ts +2 -0
- package/dist/compiled/lodash/fp/toUpper.d.ts +2 -0
- package/dist/compiled/lodash/fp/transform.d.ts +2 -0
- package/dist/compiled/lodash/fp/trim.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimChars.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimCharsEnd.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimCharsStart.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimEnd.d.ts +2 -0
- package/dist/compiled/lodash/fp/trimStart.d.ts +2 -0
- package/dist/compiled/lodash/fp/truncate.d.ts +2 -0
- package/dist/compiled/lodash/fp/unapply.d.ts +2 -0
- package/dist/compiled/lodash/fp/unary.d.ts +2 -0
- package/dist/compiled/lodash/fp/unescape.d.ts +2 -0
- package/dist/compiled/lodash/fp/union.d.ts +2 -0
- package/dist/compiled/lodash/fp/unionBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/unionWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/uniq.d.ts +2 -0
- package/dist/compiled/lodash/fp/uniqBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/uniqWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/uniqueId.d.ts +2 -0
- package/dist/compiled/lodash/fp/unnest.d.ts +2 -0
- package/dist/compiled/lodash/fp/unset.d.ts +2 -0
- package/dist/compiled/lodash/fp/unzip.d.ts +2 -0
- package/dist/compiled/lodash/fp/unzipWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/update.d.ts +2 -0
- package/dist/compiled/lodash/fp/updateWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/upperCase.d.ts +2 -0
- package/dist/compiled/lodash/fp/upperFirst.d.ts +2 -0
- package/dist/compiled/lodash/fp/useWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/values.d.ts +2 -0
- package/dist/compiled/lodash/fp/valuesIn.d.ts +2 -0
- package/dist/compiled/lodash/fp/where.d.ts +2 -0
- package/dist/compiled/lodash/fp/whereEq.d.ts +2 -0
- package/dist/compiled/lodash/fp/without.d.ts +2 -0
- package/dist/compiled/lodash/fp/words.d.ts +2 -0
- package/dist/compiled/lodash/fp/wrap.d.ts +2 -0
- package/dist/compiled/lodash/fp/xor.d.ts +2 -0
- package/dist/compiled/lodash/fp/xorBy.d.ts +2 -0
- package/dist/compiled/lodash/fp/xorWith.d.ts +2 -0
- package/dist/compiled/lodash/fp/zip.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipAll.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipObj.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipObject.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipObjectDeep.d.ts +2 -0
- package/dist/compiled/lodash/fp/zipWith.d.ts +2 -0
- package/dist/compiled/lodash/fp.d.ts +4962 -0
- package/dist/compiled/lodash/fromPairs.d.ts +2 -0
- package/dist/compiled/lodash/functions.d.ts +2 -0
- package/dist/compiled/lodash/functionsIn.d.ts +2 -0
- package/dist/compiled/lodash/get.d.ts +2 -0
- package/dist/compiled/lodash/groupBy.d.ts +2 -0
- package/dist/compiled/lodash/gt.d.ts +2 -0
- package/dist/compiled/lodash/gte.d.ts +2 -0
- package/dist/compiled/lodash/has.d.ts +2 -0
- package/dist/compiled/lodash/hasIn.d.ts +2 -0
- package/dist/compiled/lodash/head.d.ts +2 -0
- package/dist/compiled/lodash/identity.d.ts +2 -0
- package/dist/compiled/lodash/inRange.d.ts +2 -0
- package/dist/compiled/lodash/includes.d.ts +2 -0
- package/dist/compiled/lodash/index.d.ts +1 -16
- package/dist/compiled/lodash/indexOf.d.ts +2 -0
- package/dist/compiled/lodash/initial.d.ts +2 -0
- package/dist/compiled/lodash/intersection.d.ts +2 -0
- package/dist/compiled/lodash/intersectionBy.d.ts +2 -0
- package/dist/compiled/lodash/intersectionWith.d.ts +2 -0
- package/dist/compiled/lodash/invert.d.ts +2 -0
- package/dist/compiled/lodash/invertBy.d.ts +2 -0
- package/dist/compiled/lodash/invoke.d.ts +2 -0
- package/dist/compiled/lodash/invokeMap.d.ts +2 -0
- package/dist/compiled/lodash/isArguments.d.ts +2 -0
- package/dist/compiled/lodash/isArray.d.ts +2 -0
- package/dist/compiled/lodash/isArrayBuffer.d.ts +2 -0
- package/dist/compiled/lodash/isArrayLike.d.ts +2 -0
- package/dist/compiled/lodash/isArrayLikeObject.d.ts +2 -0
- package/dist/compiled/lodash/isBoolean.d.ts +2 -0
- package/dist/compiled/lodash/isBuffer.d.ts +2 -0
- package/dist/compiled/lodash/isDate.d.ts +2 -0
- package/dist/compiled/lodash/isElement.d.ts +2 -0
- package/dist/compiled/lodash/isEmpty.d.ts +2 -0
- package/dist/compiled/lodash/isEqual.d.ts +2 -0
- package/dist/compiled/lodash/isEqualWith.d.ts +2 -0
- package/dist/compiled/lodash/isError.d.ts +2 -0
- package/dist/compiled/lodash/isFinite.d.ts +2 -0
- package/dist/compiled/lodash/isFunction.d.ts +2 -0
- package/dist/compiled/lodash/isInteger.d.ts +2 -0
- package/dist/compiled/lodash/isLength.d.ts +2 -0
- package/dist/compiled/lodash/isMap.d.ts +2 -0
- package/dist/compiled/lodash/isMatch.d.ts +2 -0
- package/dist/compiled/lodash/isMatchWith.d.ts +2 -0
- package/dist/compiled/lodash/isNaN.d.ts +2 -0
- package/dist/compiled/lodash/isNative.d.ts +2 -0
- package/dist/compiled/lodash/isNil.d.ts +2 -0
- package/dist/compiled/lodash/isNull.d.ts +2 -0
- package/dist/compiled/lodash/isNumber.d.ts +2 -0
- package/dist/compiled/lodash/isObject.d.ts +2 -0
- package/dist/compiled/lodash/isObjectLike.d.ts +2 -0
- package/dist/compiled/lodash/isPlainObject.d.ts +2 -0
- package/dist/compiled/lodash/isRegExp.d.ts +2 -0
- package/dist/compiled/lodash/isSafeInteger.d.ts +2 -0
- package/dist/compiled/lodash/isSet.d.ts +2 -0
- package/dist/compiled/lodash/isString.d.ts +2 -0
- package/dist/compiled/lodash/isSymbol.d.ts +2 -0
- package/dist/compiled/lodash/isTypedArray.d.ts +2 -0
- package/dist/compiled/lodash/isUndefined.d.ts +2 -0
- package/dist/compiled/lodash/isWeakMap.d.ts +2 -0
- package/dist/compiled/lodash/isWeakSet.d.ts +2 -0
- package/dist/compiled/lodash/iteratee.d.ts +2 -0
- package/dist/compiled/lodash/join.d.ts +2 -0
- package/dist/compiled/lodash/kebabCase.d.ts +2 -0
- package/dist/compiled/lodash/keyBy.d.ts +2 -0
- package/dist/compiled/lodash/keys.d.ts +2 -0
- package/dist/compiled/lodash/keysIn.d.ts +2 -0
- package/dist/compiled/lodash/last.d.ts +2 -0
- package/dist/compiled/lodash/lastIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/licenses-cjs.txt +49 -0
- package/dist/compiled/lodash/lowerCase.d.ts +2 -0
- package/dist/compiled/lodash/lowerFirst.d.ts +2 -0
- package/dist/compiled/lodash/lt.d.ts +2 -0
- package/dist/compiled/lodash/lte.d.ts +2 -0
- package/dist/compiled/lodash/map.d.ts +2 -0
- package/dist/compiled/lodash/mapKeys.d.ts +2 -0
- package/dist/compiled/lodash/mapValues.d.ts +2 -0
- package/dist/compiled/lodash/matches.d.ts +2 -0
- package/dist/compiled/lodash/matchesProperty.d.ts +2 -0
- package/dist/compiled/lodash/max.d.ts +2 -0
- package/dist/compiled/lodash/maxBy.d.ts +2 -0
- package/dist/compiled/lodash/mean.d.ts +2 -0
- package/dist/compiled/lodash/meanBy.d.ts +2 -0
- package/dist/compiled/lodash/memoize.d.ts +2 -0
- package/dist/compiled/lodash/merge.d.ts +2 -0
- package/dist/compiled/lodash/mergeWith.d.ts +2 -0
- package/dist/compiled/lodash/method.d.ts +2 -0
- package/dist/compiled/lodash/methodOf.d.ts +2 -0
- package/dist/compiled/lodash/min.d.ts +2 -0
- package/dist/compiled/lodash/minBy.d.ts +2 -0
- package/dist/compiled/lodash/mixin.d.ts +2 -0
- package/dist/compiled/lodash/multiply.d.ts +2 -0
- package/dist/compiled/lodash/negate.d.ts +2 -0
- package/dist/compiled/lodash/noConflict.d.ts +2 -0
- package/dist/compiled/lodash/noop.d.ts +2 -0
- package/dist/compiled/lodash/now.d.ts +2 -0
- package/dist/compiled/lodash/nth.d.ts +2 -0
- package/dist/compiled/lodash/nthArg.d.ts +2 -0
- package/dist/compiled/lodash/omit.d.ts +2 -0
- package/dist/compiled/lodash/omitBy.d.ts +2 -0
- package/dist/compiled/lodash/once.d.ts +2 -0
- package/dist/compiled/lodash/orderBy.d.ts +2 -0
- package/dist/compiled/lodash/over.d.ts +2 -0
- package/dist/compiled/lodash/overArgs.d.ts +2 -0
- package/dist/compiled/lodash/overEvery.d.ts +2 -0
- package/dist/compiled/lodash/overSome.d.ts +2 -0
- package/dist/compiled/lodash/package.json +1 -1
- package/dist/compiled/lodash/pad.d.ts +2 -0
- package/dist/compiled/lodash/padEnd.d.ts +2 -0
- package/dist/compiled/lodash/padStart.d.ts +2 -0
- package/dist/compiled/lodash/parseInt.d.ts +2 -0
- package/dist/compiled/lodash/partial.d.ts +2 -0
- package/dist/compiled/lodash/partialRight.d.ts +2 -0
- package/dist/compiled/lodash/partition.d.ts +2 -0
- package/dist/compiled/lodash/pick.d.ts +2 -0
- package/dist/compiled/lodash/pickBy.d.ts +2 -0
- package/dist/compiled/lodash/property.d.ts +2 -0
- package/dist/compiled/lodash/propertyOf.d.ts +2 -0
- package/dist/compiled/lodash/provenance.json +19 -0
- package/dist/compiled/lodash/pull.d.ts +2 -0
- package/dist/compiled/lodash/pullAll.d.ts +2 -0
- package/dist/compiled/lodash/pullAllBy.d.ts +2 -0
- package/dist/compiled/lodash/pullAllWith.d.ts +2 -0
- package/dist/compiled/lodash/pullAt.d.ts +2 -0
- package/dist/compiled/lodash/random.d.ts +2 -0
- package/dist/compiled/lodash/range.d.ts +2 -0
- package/dist/compiled/lodash/rangeRight.d.ts +2 -0
- package/dist/compiled/lodash/rearg.d.ts +2 -0
- package/dist/compiled/lodash/reduce.d.ts +2 -0
- package/dist/compiled/lodash/reduceRight.d.ts +2 -0
- package/dist/compiled/lodash/reject.d.ts +2 -0
- package/dist/compiled/lodash/remove.d.ts +2 -0
- package/dist/compiled/lodash/repeat.d.ts +2 -0
- package/dist/compiled/lodash/replace.d.ts +2 -0
- package/dist/compiled/lodash/rest.d.ts +2 -0
- package/dist/compiled/lodash/result.d.ts +2 -0
- package/dist/compiled/lodash/reverse.d.ts +2 -0
- package/dist/compiled/lodash/round.d.ts +2 -0
- package/dist/compiled/lodash/runInContext.d.ts +2 -0
- package/dist/compiled/lodash/sample.d.ts +2 -0
- package/dist/compiled/lodash/sampleSize.d.ts +2 -0
- package/dist/compiled/lodash/set.d.ts +2 -0
- package/dist/compiled/lodash/setWith.d.ts +2 -0
- package/dist/compiled/lodash/shuffle.d.ts +2 -0
- package/dist/compiled/lodash/size.d.ts +2 -0
- package/dist/compiled/lodash/slice.d.ts +2 -0
- package/dist/compiled/lodash/snakeCase.d.ts +2 -0
- package/dist/compiled/lodash/some.d.ts +2 -0
- package/dist/compiled/lodash/sortBy.d.ts +2 -0
- package/dist/compiled/lodash/sortedIndex.d.ts +2 -0
- package/dist/compiled/lodash/sortedIndexBy.d.ts +2 -0
- package/dist/compiled/lodash/sortedIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/sortedLastIndex.d.ts +2 -0
- package/dist/compiled/lodash/sortedLastIndexBy.d.ts +2 -0
- package/dist/compiled/lodash/sortedLastIndexOf.d.ts +2 -0
- package/dist/compiled/lodash/sortedUniq.d.ts +2 -0
- package/dist/compiled/lodash/sortedUniqBy.d.ts +2 -0
- package/dist/compiled/lodash/split.d.ts +2 -0
- package/dist/compiled/lodash/spread.d.ts +2 -0
- package/dist/compiled/lodash/startCase.d.ts +2 -0
- package/dist/compiled/lodash/startsWith.d.ts +2 -0
- package/dist/compiled/lodash/stubArray.d.ts +2 -0
- package/dist/compiled/lodash/stubFalse.d.ts +2 -0
- package/dist/compiled/lodash/stubObject.d.ts +2 -0
- package/dist/compiled/lodash/stubString.d.ts +2 -0
- package/dist/compiled/lodash/stubTrue.d.ts +2 -0
- package/dist/compiled/lodash/subtract.d.ts +2 -0
- package/dist/compiled/lodash/sum.d.ts +2 -0
- package/dist/compiled/lodash/sumBy.d.ts +2 -0
- package/dist/compiled/lodash/tail.d.ts +2 -0
- package/dist/compiled/lodash/take.d.ts +2 -0
- package/dist/compiled/lodash/takeRight.d.ts +2 -0
- package/dist/compiled/lodash/takeRightWhile.d.ts +2 -0
- package/dist/compiled/lodash/takeWhile.d.ts +2 -0
- package/dist/compiled/lodash/tap.d.ts +2 -0
- package/dist/compiled/lodash/template.d.ts +2 -0
- package/dist/compiled/lodash/throttle.d.ts +2 -0
- package/dist/compiled/lodash/thru.d.ts +2 -0
- package/dist/compiled/lodash/times.d.ts +2 -0
- package/dist/compiled/lodash/toArray.d.ts +2 -0
- package/dist/compiled/lodash/toFinite.d.ts +2 -0
- package/dist/compiled/lodash/toInteger.d.ts +2 -0
- package/dist/compiled/lodash/toLength.d.ts +2 -0
- package/dist/compiled/lodash/toLower.d.ts +2 -0
- package/dist/compiled/lodash/toNumber.d.ts +2 -0
- package/dist/compiled/lodash/toPairs.d.ts +2 -0
- package/dist/compiled/lodash/toPairsIn.d.ts +2 -0
- package/dist/compiled/lodash/toPath.d.ts +2 -0
- package/dist/compiled/lodash/toPlainObject.d.ts +2 -0
- package/dist/compiled/lodash/toSafeInteger.d.ts +2 -0
- package/dist/compiled/lodash/toString.d.ts +2 -0
- package/dist/compiled/lodash/toUpper.d.ts +2 -0
- package/dist/compiled/lodash/transform.d.ts +2 -0
- package/dist/compiled/lodash/trim.d.ts +2 -0
- package/dist/compiled/lodash/trimEnd.d.ts +2 -0
- package/dist/compiled/lodash/trimStart.d.ts +2 -0
- package/dist/compiled/lodash/truncate.d.ts +2 -0
- package/dist/compiled/lodash/unary.d.ts +2 -0
- package/dist/compiled/lodash/unescape.d.ts +2 -0
- package/dist/compiled/lodash/union.d.ts +2 -0
- package/dist/compiled/lodash/unionBy.d.ts +2 -0
- package/dist/compiled/lodash/unionWith.d.ts +2 -0
- package/dist/compiled/lodash/uniq.d.ts +2 -0
- package/dist/compiled/lodash/uniqBy.d.ts +2 -0
- package/dist/compiled/lodash/uniqWith.d.ts +2 -0
- package/dist/compiled/lodash/uniqueId.d.ts +2 -0
- package/dist/compiled/lodash/unset.d.ts +2 -0
- package/dist/compiled/lodash/unzip.d.ts +2 -0
- package/dist/compiled/lodash/unzipWith.d.ts +2 -0
- package/dist/compiled/lodash/update.d.ts +2 -0
- package/dist/compiled/lodash/updateWith.d.ts +2 -0
- package/dist/compiled/lodash/upperCase.d.ts +2 -0
- package/dist/compiled/lodash/upperFirst.d.ts +2 -0
- package/dist/compiled/lodash/values.d.ts +2 -0
- package/dist/compiled/lodash/valuesIn.d.ts +2 -0
- package/dist/compiled/lodash/without.d.ts +2 -0
- package/dist/compiled/lodash/words.d.ts +2 -0
- package/dist/compiled/lodash/wrap.d.ts +2 -0
- package/dist/compiled/lodash/xor.d.ts +2 -0
- package/dist/compiled/lodash/xorBy.d.ts +2 -0
- package/dist/compiled/lodash/xorWith.d.ts +2 -0
- package/dist/compiled/lodash/zip.d.ts +2 -0
- package/dist/compiled/lodash/zipObject.d.ts +2 -0
- package/dist/compiled/lodash/zipObjectDeep.d.ts +2 -0
- package/dist/compiled/lodash/zipWith.d.ts +2 -0
- package/dist/compiled/mime-types/declaration-licenses/@types_mime-types/LICENSE +21 -0
- package/dist/compiled/mime-types/index.d.ts +15 -12
- package/dist/compiled/mime-types/index.js +74 -28
- package/dist/compiled/mime-types/licenses-cjs.txt +52 -0
- package/dist/compiled/mime-types/package.json +1 -1
- package/dist/compiled/mime-types/provenance.json +19 -0
- package/dist/compiled/minimist/declaration-licenses/@types_minimist/LICENSE +21 -0
- package/dist/compiled/minimist/index.d.ts +3 -11
- package/dist/compiled/minimist/index.js +103 -104
- package/dist/compiled/minimist/licenses-cjs.txt +20 -0
- package/dist/compiled/minimist/package.json +1 -1
- package/dist/compiled/minimist/provenance.json +22 -0
- package/dist/compiled/nanoid/LICENSE +20 -0
- package/dist/compiled/nanoid/declaration-licenses/nanoid/LICENSE +20 -0
- package/dist/compiled/nanoid/index.d.mts +108 -0
- package/dist/compiled/nanoid/index.d.ts +31 -14
- package/dist/compiled/nanoid/index.js +117 -74
- package/dist/compiled/nanoid/index.mjs +98 -48
- package/dist/compiled/nanoid/licenses-cjs.txt +22 -0
- package/dist/compiled/nanoid/licenses-esm.txt +22 -0
- package/dist/compiled/nanoid/package.json +1 -1
- package/dist/compiled/nanoid/provenance.json +19 -0
- package/dist/compiled/ora/declaration-licenses/cli-spinners/license +9 -0
- package/dist/compiled/ora/declaration-licenses/ora/license +9 -0
- package/dist/compiled/ora/index.d.mts +501 -0
- package/dist/compiled/ora/index.d.ts +428 -204
- package/dist/compiled/ora/index.js +2121 -3893
- package/dist/compiled/ora/index.mjs +2155 -0
- package/dist/compiled/ora/licenses-cjs.txt +226 -0
- package/dist/compiled/ora/licenses-esm.txt +226 -0
- package/dist/compiled/ora/package.json +1 -1
- package/dist/compiled/ora/provenance.json +24 -0
- package/dist/compiled/pkg-up/declaration-licenses/@modern-js_compiled-pkg-up/license +9 -0
- package/dist/compiled/pkg-up/index.d.ts +9 -9
- package/dist/compiled/pkg-up/index.js +47 -14
- package/dist/compiled/pkg-up/licenses-cjs.txt +11 -0
- package/dist/compiled/pkg-up/package.json +1 -1
- package/dist/compiled/pkg-up/provenance.json +18 -0
- package/dist/compiled/semver/classes/comparator.d.ts +3 -3
- package/dist/compiled/semver/classes/range.d.ts +6 -6
- package/dist/compiled/semver/classes/semver.d.ts +11 -4
- package/dist/compiled/semver/declaration-licenses/@types_semver/LICENSE +21 -0
- package/dist/compiled/semver/functions/clean.d.ts +1 -1
- package/dist/compiled/semver/functions/cmp.d.ts +2 -2
- package/dist/compiled/semver/functions/coerce.d.ts +2 -2
- package/dist/compiled/semver/functions/compare-build.d.ts +7 -2
- package/dist/compiled/semver/functions/compare-loose.d.ts +4 -1
- package/dist/compiled/semver/functions/compare.d.ts +2 -2
- package/dist/compiled/semver/functions/diff.d.ts +3 -7
- package/dist/compiled/semver/functions/eq.d.ts +2 -2
- package/dist/compiled/semver/functions/gt.d.ts +2 -2
- package/dist/compiled/semver/functions/gte.d.ts +2 -2
- package/dist/compiled/semver/functions/inc.d.ts +15 -4
- package/dist/compiled/semver/functions/lt.d.ts +2 -2
- package/dist/compiled/semver/functions/lte.d.ts +2 -2
- package/dist/compiled/semver/functions/major.d.ts +2 -2
- package/dist/compiled/semver/functions/minor.d.ts +2 -2
- package/dist/compiled/semver/functions/neq.d.ts +2 -2
- package/dist/compiled/semver/functions/parse.d.ts +15 -4
- package/dist/compiled/semver/functions/patch.d.ts +2 -2
- package/dist/compiled/semver/functions/prerelease.d.ts +2 -2
- package/dist/compiled/semver/functions/rcompare.d.ts +2 -2
- package/dist/compiled/semver/functions/rsort.d.ts +2 -2
- package/dist/compiled/semver/functions/satisfies.d.ts +4 -4
- package/dist/compiled/semver/functions/sort.d.ts +2 -2
- package/dist/compiled/semver/functions/truncate.d.ts +10 -0
- package/dist/compiled/semver/functions/valid.d.ts +2 -2
- package/dist/compiled/semver/index.d.ts +82 -77
- package/dist/compiled/semver/index.js +639 -1026
- package/dist/compiled/semver/licenses-cjs.txt +17 -0
- package/dist/compiled/semver/package.json +1 -1
- package/dist/compiled/semver/preload.d.ts +2 -0
- package/dist/compiled/semver/provenance.json +22 -0
- package/dist/compiled/semver/ranges/gtr.d.ts +4 -4
- package/dist/compiled/semver/ranges/intersects.d.ts +3 -3
- package/dist/compiled/semver/ranges/ltr.d.ts +4 -4
- package/dist/compiled/semver/ranges/max-satisfying.d.ts +5 -5
- package/dist/compiled/semver/ranges/min-satisfying.d.ts +5 -5
- package/dist/compiled/semver/ranges/min-version.d.ts +3 -3
- package/dist/compiled/semver/ranges/outside.d.ts +5 -5
- package/dist/compiled/semver/ranges/simplify.d.ts +2 -2
- package/dist/compiled/semver/ranges/subset.d.ts +3 -7
- package/dist/compiled/semver/ranges/to-comparators.d.ts +2 -2
- package/dist/compiled/semver/ranges/valid.d.ts +3 -3
- package/dist/compiled/signale/declaration-licenses/@types_signale/LICENSE +21 -0
- package/dist/compiled/signale/index.d.ts +22 -29
- package/dist/compiled/signale/index.js +2934 -613
- package/dist/compiled/signale/license.md +21 -0
- package/dist/compiled/signale/licenses-cjs.txt +468 -0
- package/dist/compiled/signale/package.json +1 -1
- package/dist/compiled/signale/provenance.json +19 -0
- package/dist/compiled/slash/declaration-licenses/slash/license +9 -0
- package/dist/compiled/slash/index.d.mts +25 -0
- package/dist/compiled/slash/index.d.ts +4 -4
- package/dist/compiled/slash/index.js +31 -27
- package/dist/compiled/slash/index.mjs +25 -0
- package/dist/compiled/slash/license +1 -1
- package/dist/compiled/slash/licenses-cjs.txt +11 -0
- package/dist/compiled/slash/licenses-esm.txt +11 -0
- package/dist/compiled/slash/package.json +1 -1
- package/dist/compiled/slash/provenance.json +19 -0
- package/dist/compiled/strip-ansi/declaration-licenses/strip-ansi/license +9 -0
- package/dist/compiled/strip-ansi/index.d.mts +17 -0
- package/dist/compiled/strip-ansi/index.d.ts +2 -2
- package/dist/compiled/strip-ansi/index.js +39 -29
- package/dist/compiled/strip-ansi/index.mjs +33 -0
- package/dist/compiled/strip-ansi/license +1 -1
- package/dist/compiled/strip-ansi/licenses-cjs.txt +24 -0
- package/dist/compiled/strip-ansi/licenses-esm.txt +24 -0
- package/dist/compiled/strip-ansi/package.json +1 -1
- package/dist/compiled/strip-ansi/provenance.json +19 -0
- package/dist/compiled/tsconfig-paths/declaration-licenses/tsconfig-paths/LICENSE +21 -0
- package/dist/compiled/tsconfig-paths/index.d.mts +115 -0
- package/dist/compiled/tsconfig-paths/index.d.ts +115 -0
- package/dist/compiled/tsconfig-paths/index.js +256 -243
- package/dist/compiled/tsconfig-paths/index.mjs +2 -2
- package/dist/compiled/tsconfig-paths/licenses-cjs.txt +48 -0
- package/dist/compiled/tsconfig-paths/package.json +1 -1
- package/dist/compiled/tsconfig-paths/provenance.json +19 -0
- package/dist/compiled/upath/LICENSE +22 -0
- package/dist/compiled/upath/declaration-licenses/upath/LICENSE +22 -0
- package/dist/compiled/upath/index.d.mts +84 -0
- package/dist/compiled/upath/index.d.ts +84 -0
- package/dist/compiled/upath/index.js +173 -110
- package/dist/compiled/upath/index.mjs +236 -0
- package/dist/compiled/upath/licenses-cjs.txt +24 -0
- package/dist/compiled/upath/licenses-esm.txt +24 -0
- package/dist/compiled/upath/package.json +1 -1
- package/dist/compiled/upath/provenance.json +22 -0
- package/dist/compiled/url-join/declaration-licenses/url-join/LICENSE +21 -0
- package/dist/compiled/url-join/index.d.mts +9 -0
- package/dist/compiled/url-join/index.d.ts +3 -11
- package/dist/compiled/url-join/index.js +55 -55
- package/dist/compiled/url-join/index.mjs +50 -0
- package/dist/compiled/url-join/licenses-cjs.txt +23 -0
- package/dist/compiled/url-join/licenses-esm.txt +23 -0
- package/dist/compiled/url-join/package.json +1 -1
- package/dist/compiled/url-join/provenance.json +22 -0
- package/dist/esm/cli/applyOptionsChain.mjs +1 -1
- package/dist/esm/cli/get/config.mjs +1 -1
- package/dist/esm/cli/is/config.mjs +1 -1
- package/dist/esm/cli/require.mjs +4 -5
- package/dist/esm/compiled.mjs +22 -31
- package/dist/esm/fast-glob.mjs +1 -0
- package/dist/esm/watch-options.mjs +0 -0
- package/dist/esm-node/cli/applyOptionsChain.mjs +1 -1
- package/dist/esm-node/cli/get/config.mjs +1 -1
- package/dist/esm-node/cli/is/config.mjs +1 -1
- package/dist/esm-node/cli/require.mjs +4 -5
- package/dist/esm-node/compiled.mjs +22 -30
- package/dist/esm-node/fast-glob.mjs +2 -0
- package/dist/esm-node/watch-options.mjs +1 -0
- package/dist/types/cli/commands.d.ts +1 -1
- package/dist/types/cli/modulePath.d.ts +1 -1
- package/dist/types/cli/require.d.ts +0 -1
- package/dist/types/compiled.d.ts +30 -29
- package/dist/types/fast-glob.d.ts +1 -0
- package/dist/types/watch-options.d.ts +1 -0
- package/package.json +100 -36
- package/rslib.config.mts +20 -84
- package/dist/compiled/address/lib/address.d.ts +0 -28
- package/dist/compiled/browserslist/license +0 -20
- package/dist/compiled/chokidar/anymatch/index.d.ts +0 -19
- package/dist/compiled/chokidar/fsevents.node +0 -0
- package/dist/compiled/chokidar/license +0 -21
- package/dist/compiled/chokidar/types/index.d.ts +0 -188
- package/dist/compiled/commander/typings/index.d.ts +0 -890
- package/dist/compiled/debug/ms/index.d.ts +0 -25
- package/dist/compiled/dotenv/index.js +0 -101
- package/dist/compiled/dotenv/license +0 -23
- package/dist/compiled/dotenv/package.json +0 -1
- package/dist/compiled/dotenv/types/index.d.ts +0 -59
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/adapters/fs.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/index.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/providers/async.d.ts +0 -7
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/settings.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.scandir/out/types/index.d.ts +0 -20
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/adapters/fs.d.ts +0 -13
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/index.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/providers/async.d.ts +0 -4
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/settings.d.ts +0 -16
- package/dist/compiled/fast-glob/@nodelib/fs.stat/out/types/index.d.ts +0 -4
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/index.d.ts +0 -14
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/providers/async.d.ts +0 -12
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/async.d.ts +0 -30
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/readers/reader.d.ts +0 -6
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/settings.d.ts +0 -30
- package/dist/compiled/fast-glob/@nodelib/fs.walk/out/types/index.d.ts +0 -8
- package/dist/compiled/fast-glob/index.js +0 -4665
- package/dist/compiled/fast-glob/index.js.LICENSE.txt +0 -38
- package/dist/compiled/fast-glob/license +0 -21
- package/dist/compiled/fast-glob/out/index.d.ts +0 -27
- package/dist/compiled/fast-glob/out/managers/tasks.d.ts +0 -22
- package/dist/compiled/fast-glob/out/settings.d.ts +0 -164
- package/dist/compiled/fast-glob/out/types/index.d.ts +0 -31
- package/dist/compiled/fast-glob/package.json +0 -1
- package/dist/compiled/filesize/filesize.d.ts +0 -131
- package/dist/compiled/filesize/license +0 -28
- package/dist/compiled/fs-extra/license +0 -15
- package/dist/compiled/glob/license +0 -21
- package/dist/compiled/glob/minimatch/index.d.ts +0 -204
- package/dist/compiled/inquirer/index.js.LICENSE.txt +0 -7
- package/dist/compiled/inquirer/lib/objects/choice.d.ts +0 -65
- package/dist/compiled/inquirer/lib/objects/choices.d.ts +0 -206
- package/dist/compiled/inquirer/lib/objects/separator.d.ts +0 -37
- package/dist/compiled/inquirer/lib/prompts/base.d.ts +0 -100
- package/dist/compiled/inquirer/lib/prompts/checkbox.d.ts +0 -116
- package/dist/compiled/inquirer/lib/prompts/confirm.d.ts +0 -53
- package/dist/compiled/inquirer/lib/prompts/editor.d.ts +0 -101
- package/dist/compiled/inquirer/lib/prompts/expand.d.ts +0 -149
- package/dist/compiled/inquirer/lib/prompts/input.d.ts +0 -82
- package/dist/compiled/inquirer/lib/prompts/list.d.ts +0 -89
- package/dist/compiled/inquirer/lib/prompts/number.d.ts +0 -32
- package/dist/compiled/inquirer/lib/prompts/password.d.ts +0 -82
- package/dist/compiled/inquirer/lib/prompts/rawlist.d.ts +0 -111
- package/dist/compiled/inquirer/lib/ui/baseUI.d.ts +0 -37
- package/dist/compiled/inquirer/lib/ui/bottom-bar.d.ts +0 -65
- package/dist/compiled/inquirer/lib/ui/prompt.d.ts +0 -104
- package/dist/compiled/inquirer/lib/utils/events.d.ts +0 -72
- package/dist/compiled/inquirer/lib/utils/incrementListIndex.d.ts +0 -23
- package/dist/compiled/inquirer/lib/utils/paginator.d.ts +0 -55
- package/dist/compiled/inquirer/lib/utils/readline.d.ts +0 -56
- package/dist/compiled/inquirer/lib/utils/screen-manager.d.ts +0 -90
- package/dist/compiled/inquirer/lib/utils/utils.d.ts +0 -30
- package/dist/compiled/inquirer/license +0 -22
- package/dist/compiled/inquirer/rxjs/LICENSE.txt +0 -202
- package/dist/compiled/inquirer/rxjs/ajax/index.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/fetch/index.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/index.d.ts +0 -173
- package/dist/compiled/inquirer/rxjs/internal/AnyCatcher.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/AsyncSubject.d.ts +0 -13
- package/dist/compiled/inquirer/rxjs/internal/BehaviorSubject.d.ts +0 -13
- package/dist/compiled/inquirer/rxjs/internal/Notification.d.ts +0 -175
- package/dist/compiled/inquirer/rxjs/internal/NotificationFactories.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/Observable.d.ts +0 -121
- package/dist/compiled/inquirer/rxjs/internal/Operator.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/ReplaySubject.d.ts +0 -49
- package/dist/compiled/inquirer/rxjs/internal/Scheduler.d.ts +0 -53
- package/dist/compiled/inquirer/rxjs/internal/Subject.d.ts +0 -54
- package/dist/compiled/inquirer/rxjs/internal/Subscriber.d.ts +0 -72
- package/dist/compiled/inquirer/rxjs/internal/Subscription.d.ts +0 -92
- package/dist/compiled/inquirer/rxjs/internal/ajax/AjaxResponse.d.ts +0 -115
- package/dist/compiled/inquirer/rxjs/internal/ajax/ajax.d.ts +0 -227
- package/dist/compiled/inquirer/rxjs/internal/ajax/errors.d.ts +0 -65
- package/dist/compiled/inquirer/rxjs/internal/ajax/getXHRResponse.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/ajax/types.d.ts +0 -200
- package/dist/compiled/inquirer/rxjs/internal/config.d.ts +0 -73
- package/dist/compiled/inquirer/rxjs/internal/firstValueFrom.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/lastValueFrom.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/observable/ConnectableObservable.d.ts +0 -42
- package/dist/compiled/inquirer/rxjs/internal/observable/bindCallback.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/bindCallbackInternals.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/observable/bindNodeCallback.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/combineLatest.d.ts +0 -33
- package/dist/compiled/inquirer/rxjs/internal/observable/concat.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/connectable.d.ts +0 -27
- package/dist/compiled/inquirer/rxjs/internal/observable/defer.d.ts +0 -51
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/WebSocketSubject.d.ts +0 -173
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/animationFrames.d.ts +0 -76
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/fetch.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/observable/dom/webSocket.d.ts +0 -159
- package/dist/compiled/inquirer/rxjs/internal/observable/empty.d.ts +0 -72
- package/dist/compiled/inquirer/rxjs/internal/observable/forkJoin.d.ts +0 -24
- package/dist/compiled/inquirer/rxjs/internal/observable/from.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/observable/fromEvent.d.ts +0 -45
- package/dist/compiled/inquirer/rxjs/internal/observable/fromEventPattern.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/fromSubscribable.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/observable/generate.d.ts +0 -314
- package/dist/compiled/inquirer/rxjs/internal/observable/iif.d.ts +0 -82
- package/dist/compiled/inquirer/rxjs/internal/observable/innerFrom.d.ts +0 -21
- package/dist/compiled/inquirer/rxjs/internal/observable/interval.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/observable/merge.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/observable/never.d.ts +0 -40
- package/dist/compiled/inquirer/rxjs/internal/observable/of.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/observable/onErrorResumeNext.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/observable/pairs.d.ts +0 -19
- package/dist/compiled/inquirer/rxjs/internal/observable/partition.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/observable/race.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/observable/range.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/observable/throwError.d.ts +0 -115
- package/dist/compiled/inquirer/rxjs/internal/observable/timer.d.ts +0 -126
- package/dist/compiled/inquirer/rxjs/internal/observable/using.d.ts +0 -30
- package/dist/compiled/inquirer/rxjs/internal/observable/zip.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/OperatorSubscriber.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/operators/audit.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/operators/auditTime.d.ts +0 -50
- package/dist/compiled/inquirer/rxjs/internal/operators/buffer.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferCount.d.ts +0 -54
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferTime.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferToggle.d.ts +0 -46
- package/dist/compiled/inquirer/rxjs/internal/operators/bufferWhen.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/operators/catchError.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/operators/combineAll.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatest.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestAll.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/combineLatestWith.d.ts +0 -43
- package/dist/compiled/inquirer/rxjs/internal/operators/concat.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/concatAll.d.ts +0 -59
- package/dist/compiled/inquirer/rxjs/internal/operators/concatMap.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/concatMapTo.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/concatWith.d.ts +0 -43
- package/dist/compiled/inquirer/rxjs/internal/operators/connect.d.ts +0 -87
- package/dist/compiled/inquirer/rxjs/internal/operators/count.d.ts +0 -58
- package/dist/compiled/inquirer/rxjs/internal/operators/debounce.d.ts +0 -61
- package/dist/compiled/inquirer/rxjs/internal/operators/debounceTime.d.ts +0 -59
- package/dist/compiled/inquirer/rxjs/internal/operators/defaultIfEmpty.d.ts +0 -38
- package/dist/compiled/inquirer/rxjs/internal/operators/delay.d.ts +0 -59
- package/dist/compiled/inquirer/rxjs/internal/operators/delayWhen.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/dematerialize.d.ts +0 -51
- package/dist/compiled/inquirer/rxjs/internal/operators/distinct.d.ts +0 -60
- package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilChanged.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/operators/distinctUntilKeyChanged.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/operators/elementAt.d.ts +0 -51
- package/dist/compiled/inquirer/rxjs/internal/operators/endWith.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/every.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaust.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaustAll.d.ts +0 -47
- package/dist/compiled/inquirer/rxjs/internal/operators/exhaustMap.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/expand.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/filter.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/finalize.d.ts +0 -64
- package/dist/compiled/inquirer/rxjs/internal/operators/find.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/operators/findIndex.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/first.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/flatMap.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/groupBy.d.ts +0 -119
- package/dist/compiled/inquirer/rxjs/internal/operators/ignoreElements.d.ts +0 -38
- package/dist/compiled/inquirer/rxjs/internal/operators/isEmpty.d.ts +0 -64
- package/dist/compiled/inquirer/rxjs/internal/operators/joinAllInternals.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/operators/last.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/map.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/mapTo.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/materialize.d.ts +0 -52
- package/dist/compiled/inquirer/rxjs/internal/operators/max.d.ts +0 -50
- package/dist/compiled/inquirer/rxjs/internal/operators/merge.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeAll.d.ts +0 -62
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeInternals.d.ts +0 -18
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeMap.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeMapTo.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeScan.d.ts +0 -68
- package/dist/compiled/inquirer/rxjs/internal/operators/mergeWith.d.ts +0 -44
- package/dist/compiled/inquirer/rxjs/internal/operators/min.d.ts +0 -50
- package/dist/compiled/inquirer/rxjs/internal/operators/multicast.d.ts +0 -63
- package/dist/compiled/inquirer/rxjs/internal/operators/observeOn.d.ts +0 -56
- package/dist/compiled/inquirer/rxjs/internal/operators/onErrorResumeNextWith.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/pairwise.d.ts +0 -46
- package/dist/compiled/inquirer/rxjs/internal/operators/partition.d.ts +0 -54
- package/dist/compiled/inquirer/rxjs/internal/operators/pluck.d.ts +0 -18
- package/dist/compiled/inquirer/rxjs/internal/operators/publish.d.ts +0 -30
- package/dist/compiled/inquirer/rxjs/internal/operators/publishBehavior.d.ts +0 -19
- package/dist/compiled/inquirer/rxjs/internal/operators/publishLast.d.ts +0 -69
- package/dist/compiled/inquirer/rxjs/internal/operators/publishReplay.d.ts +0 -56
- package/dist/compiled/inquirer/rxjs/internal/operators/race.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/raceWith.d.ts +0 -29
- package/dist/compiled/inquirer/rxjs/internal/operators/reduce.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/refCount.d.ts +0 -61
- package/dist/compiled/inquirer/rxjs/internal/operators/repeat.d.ts +0 -108
- package/dist/compiled/inquirer/rxjs/internal/operators/repeatWhen.d.ts +0 -38
- package/dist/compiled/inquirer/rxjs/internal/operators/retry.d.ts +0 -28
- package/dist/compiled/inquirer/rxjs/internal/operators/retryWhen.d.ts +0 -61
- package/dist/compiled/inquirer/rxjs/internal/operators/sample.d.ts +0 -43
- package/dist/compiled/inquirer/rxjs/internal/operators/sampleTime.d.ts +0 -46
- package/dist/compiled/inquirer/rxjs/internal/operators/scan.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/scanInternals.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/operators/sequenceEqual.d.ts +0 -60
- package/dist/compiled/inquirer/rxjs/internal/operators/share.d.ts +0 -43
- package/dist/compiled/inquirer/rxjs/internal/operators/shareReplay.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/single.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/skip.d.ts +0 -36
- package/dist/compiled/inquirer/rxjs/internal/operators/skipLast.d.ts +0 -45
- package/dist/compiled/inquirer/rxjs/internal/operators/skipUntil.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/operators/skipWhile.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/operators/startWith.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/subscribeOn.d.ts +0 -62
- package/dist/compiled/inquirer/rxjs/internal/operators/switchAll.d.ts +0 -61
- package/dist/compiled/inquirer/rxjs/internal/operators/switchMap.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/operators/switchMapTo.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/switchScan.d.ts +0 -20
- package/dist/compiled/inquirer/rxjs/internal/operators/take.d.ts +0 -45
- package/dist/compiled/inquirer/rxjs/internal/operators/takeLast.d.ts +0 -42
- package/dist/compiled/inquirer/rxjs/internal/operators/takeUntil.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/operators/takeWhile.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/tap.d.ts +0 -72
- package/dist/compiled/inquirer/rxjs/internal/operators/throttle.d.ts +0 -78
- package/dist/compiled/inquirer/rxjs/internal/operators/throttleTime.d.ts +0 -53
- package/dist/compiled/inquirer/rxjs/internal/operators/throwIfEmpty.d.ts +0 -39
- package/dist/compiled/inquirer/rxjs/internal/operators/timeInterval.d.ts +0 -50
- package/dist/compiled/inquirer/rxjs/internal/operators/timeout.d.ts +0 -255
- package/dist/compiled/inquirer/rxjs/internal/operators/timeoutWith.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/operators/timestamp.d.ts +0 -35
- package/dist/compiled/inquirer/rxjs/internal/operators/toArray.d.ts +0 -33
- package/dist/compiled/inquirer/rxjs/internal/operators/window.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/operators/windowCount.d.ts +0 -65
- package/dist/compiled/inquirer/rxjs/internal/operators/windowTime.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/operators/windowToggle.d.ts +0 -49
- package/dist/compiled/inquirer/rxjs/internal/operators/windowWhen.d.ts +0 -49
- package/dist/compiled/inquirer/rxjs/internal/operators/withLatestFrom.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/operators/zip.d.ts +0 -10
- package/dist/compiled/inquirer/rxjs/internal/operators/zipAll.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/operators/zipWith.d.ts +0 -26
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleArray.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleAsyncIterable.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleIterable.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleObservable.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/scheduled/schedulePromise.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduleReadableStreamLike.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/scheduled/scheduled.d.ts +0 -15
- package/dist/compiled/inquirer/rxjs/internal/scheduler/Action.d.ts +0 -30
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameAction.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AnimationFrameScheduler.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapAction.d.ts +0 -12
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsapScheduler.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncAction.d.ts +0 -24
- package/dist/compiled/inquirer/rxjs/internal/scheduler/AsyncScheduler.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueAction.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/scheduler/QueueScheduler.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/scheduler/VirtualTimeScheduler.d.ts +0 -48
- package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrame.d.ts +0 -38
- package/dist/compiled/inquirer/rxjs/internal/scheduler/animationFrameProvider.d.ts +0 -13
- package/dist/compiled/inquirer/rxjs/internal/scheduler/asap.d.ts +0 -41
- package/dist/compiled/inquirer/rxjs/internal/scheduler/async.d.ts +0 -53
- package/dist/compiled/inquirer/rxjs/internal/scheduler/dateTimestampProvider.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/scheduler/immediateProvider.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/scheduler/intervalProvider.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/scheduler/performanceTimestampProvider.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/scheduler/queue.d.ts +0 -69
- package/dist/compiled/inquirer/rxjs/internal/scheduler/timeoutProvider.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/scheduler/timerHandle.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/symbol/iterator.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/symbol/observable.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/testing/ColdObservable.d.ts +0 -16
- package/dist/compiled/inquirer/rxjs/internal/testing/HotObservable.d.ts +0 -15
- package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLog.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/testing/SubscriptionLoggable.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/testing/TestMessage.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/testing/TestScheduler.d.ts +0 -88
- package/dist/compiled/inquirer/rxjs/internal/types.d.ts +0 -307
- package/dist/compiled/inquirer/rxjs/internal/util/ArgumentOutOfRangeError.d.ts +0 -19
- package/dist/compiled/inquirer/rxjs/internal/util/EmptyError.d.ts +0 -21
- package/dist/compiled/inquirer/rxjs/internal/util/Immediate.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/util/NotFoundError.d.ts +0 -17
- package/dist/compiled/inquirer/rxjs/internal/util/ObjectUnsubscribedError.d.ts +0 -20
- package/dist/compiled/inquirer/rxjs/internal/util/SequenceError.d.ts +0 -17
- package/dist/compiled/inquirer/rxjs/internal/util/UnsubscriptionError.d.ts +0 -16
- package/dist/compiled/inquirer/rxjs/internal/util/applyMixins.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/args.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/util/argsArgArrayOrObject.d.ts +0 -11
- package/dist/compiled/inquirer/rxjs/internal/util/argsOrArgArray.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/util/arrRemove.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/util/createErrorClass.d.ts +0 -11
- package/dist/compiled/inquirer/rxjs/internal/util/createObject.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/errorContext.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/util/executeSchedule.d.ts +0 -5
- package/dist/compiled/inquirer/rxjs/internal/util/identity.d.ts +0 -44
- package/dist/compiled/inquirer/rxjs/internal/util/isArrayLike.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/isAsyncIterable.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/isDate.d.ts +0 -9
- package/dist/compiled/inquirer/rxjs/internal/util/isFunction.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/util/isInteropObservable.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/util/isIterable.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/util/isObservable.d.ts +0 -8
- package/dist/compiled/inquirer/rxjs/internal/util/isPromise.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/util/isReadableStreamLike.d.ts +0 -4
- package/dist/compiled/inquirer/rxjs/internal/util/isScheduler.d.ts +0 -3
- package/dist/compiled/inquirer/rxjs/internal/util/lift.d.ts +0 -15
- package/dist/compiled/inquirer/rxjs/internal/util/mapOneOrManyArgs.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/util/noop.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/not.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/internal/util/pipe.d.ts +0 -14
- package/dist/compiled/inquirer/rxjs/internal/util/reportUnhandledError.d.ts +0 -11
- package/dist/compiled/inquirer/rxjs/internal/util/subscribeToArray.d.ts +0 -7
- package/dist/compiled/inquirer/rxjs/internal/util/throwUnobservableError.d.ts +0 -6
- package/dist/compiled/inquirer/rxjs/internal/util/workarounds.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/operators/index.d.ts +0 -114
- package/dist/compiled/inquirer/rxjs/testing/index.d.ts +0 -2
- package/dist/compiled/inquirer/rxjs/webSocket/index.d.ts +0 -3
- package/dist/compiled/inquirer/through/index.d.ts +0 -25
- package/dist/compiled/json5/lib/index.d.ts +0 -4
- package/dist/compiled/json5/lib/parse.d.ts +0 -15
- package/dist/compiled/json5/lib/stringify.d.ts +0 -89
- package/dist/compiled/nanoid/license +0 -20
- package/dist/compiled/ora/cli-spinners/index.d.ts +0 -125
- package/dist/compiled/ora/index.js.LICENSE.txt +0 -1
- package/dist/compiled/tsconfig-paths/lib/config-loader.d.ts +0 -33
- package/dist/compiled/tsconfig-paths/lib/filesystem.d.ts +0 -34
- package/dist/compiled/tsconfig-paths/lib/index.d.ts +0 -5
- package/dist/compiled/tsconfig-paths/lib/mapping-entry.d.ts +0 -18
- package/dist/compiled/tsconfig-paths/lib/match-path-async.d.ts +0 -21
- package/dist/compiled/tsconfig-paths/lib/match-path-sync.d.ts +0 -32
- package/dist/compiled/tsconfig-paths/lib/register.d.ts +0 -12
- package/dist/compiled/tsconfig-paths/lib/try-path.d.ts +0 -15
- package/dist/compiled/tsconfig-paths/lib/tsconfig-loader.d.ts +0 -28
- package/dist/compiled/upath/license +0 -22
- package/dist/compiled/upath/upath.d.ts +0 -241
- package/dist/compiled/webpack-chain/index.js +0 -1475
- package/dist/compiled/webpack-chain/license +0 -373
- package/dist/compiled/webpack-chain/package.json +0 -1
- package/dist/compiled/webpack-chain/types/index.d.ts +0 -599
- package/dist/esm/rslib-runtime~1.mjs +0 -12
- /package/dist/compiled/commander/{license → LICENSE} +0 -0
- /package/dist/compiled/debug/{license → LICENSE} +0 -0
- /package/dist/compiled/{inquirer/types-license → debug/declaration-licenses/@types_debug/LICENSE} +0 -0
- /package/dist/compiled/dotenv-expand/{license → LICENSE} +0 -0
- /package/dist/compiled/js-yaml/{license → LICENSE} +0 -0
- /package/dist/compiled/lodash/{license → LICENSE} +0 -0
- /package/dist/compiled/mime-types/{license → LICENSE} +0 -0
- /package/dist/compiled/minimist/{license → LICENSE} +0 -0
- /package/dist/compiled/semver/{license → LICENSE} +0 -0
- /package/dist/compiled/tsconfig-paths/{license → LICENSE} +0 -0
- /package/dist/compiled/url-join/{license → LICENSE} +0 -0
|
@@ -0,0 +1,2451 @@
|
|
|
1
|
+
import { Duplex, Readable, Writable } from 'node:stream';
|
|
2
|
+
import { TransformStream, ReadableStream, WritableStream, ReadableWritablePair } from 'node:stream/web';
|
|
3
|
+
import { SignalConstants } from 'node:os';
|
|
4
|
+
import { ChildProcess } from 'node:child_process';
|
|
5
|
+
|
|
6
|
+
type Not<Value extends boolean> = Value extends true ? false : true;
|
|
7
|
+
|
|
8
|
+
type And<First extends boolean, Second extends boolean> = First extends true ? Second : false;
|
|
9
|
+
|
|
10
|
+
type Unless<Condition extends boolean, ThenValue, ElseValue = never> = Condition extends true ? ElseValue : ThenValue;
|
|
11
|
+
|
|
12
|
+
type AndUnless<Condition extends boolean, ThenValue, ElseValue = unknown> = Condition extends true ? ElseValue : ThenValue;
|
|
13
|
+
|
|
14
|
+
// Whether any of T's union element is the same as one of U's union element.
|
|
15
|
+
// `&` does not work here.
|
|
16
|
+
type Intersects<T, U> = true extends (T extends U ? true : false) ? true : false;
|
|
17
|
+
|
|
18
|
+
// `options.std*: Generator`
|
|
19
|
+
// The `chunk` argument's type is based on the transform's mode:
|
|
20
|
+
// - `binary: true` or binary `encoding`, with `objectMode: true` -> `unknown` for stdin, `Uint8Array` for stdout/stderr
|
|
21
|
+
// - `binary: true` or binary `encoding` -> `Uint8Array`
|
|
22
|
+
// - `objectMode: true` -> `unknown` for stdin, `string` for stdout/stderr
|
|
23
|
+
// - otherwise -> `string`
|
|
24
|
+
// The return type is kept as `unknown` since a transform can always yield either a `string` or an `Uint8Array`.
|
|
25
|
+
// See https://github.com/sindresorhus/execa/issues/694
|
|
26
|
+
type GeneratorTransform<IsSync extends boolean, Chunk = string> = (chunk: Chunk) =>
|
|
27
|
+
| Unless<IsSync, AsyncGenerator<unknown, void, void>>
|
|
28
|
+
| Generator<unknown, void, void>;
|
|
29
|
+
type GeneratorTransformReturn<IsSync extends boolean> = ReturnType<GeneratorTransform<IsSync>>;
|
|
30
|
+
type GeneratorFinal<IsSync extends boolean> = () =>
|
|
31
|
+
| Unless<IsSync, AsyncGenerator<unknown, void, void>>
|
|
32
|
+
| Generator<unknown, void, void>;
|
|
33
|
+
|
|
34
|
+
type TransformCommon = {
|
|
35
|
+
/**
|
|
36
|
+
If `true`, allow `transformOptions.transform` and `transformOptions.final` to return any type, not just `string` or `Uint8Array`.
|
|
37
|
+
*/
|
|
38
|
+
readonly objectMode?: boolean;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// A `GeneratorTransformFull` shape whose `transform` narrows the `chunk` argument to `Chunk`.
|
|
42
|
+
// The mode-independent documentation lives here.
|
|
43
|
+
type GeneratorTransformBase<IsSync extends boolean, Chunk> = TransformCommon & {
|
|
44
|
+
/**
|
|
45
|
+
Map or filter the input or output of the subprocess.
|
|
46
|
+
*/
|
|
47
|
+
readonly transform: GeneratorTransform<IsSync, Chunk>;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
Create additional lines after the last one.
|
|
51
|
+
*/
|
|
52
|
+
readonly final?: GeneratorFinal<IsSync>;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
If `true`, iterate over arbitrary chunks of `Uint8Array`s instead of line `string`s.
|
|
56
|
+
*/
|
|
57
|
+
readonly binary?: boolean;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
If `true`, keep newlines in each `line` argument. Also, this allows multiple `yield`s to produce a single line.
|
|
61
|
+
*/
|
|
62
|
+
readonly preserveNewlines?: boolean;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
// For stdout/stderr, this literal option pair accepts explicitly typed `Uint8Array` callbacks, matching runtime binary chunks, while still allowing stdin-style `unknown` object-mode callbacks.
|
|
66
|
+
type GeneratorTransformBinaryObjectMode<IsSync extends boolean, ObjectModeChunk> = ObjectModeChunk extends string
|
|
67
|
+
? Omit<GeneratorTransformBase<IsSync, unknown>, 'transform' | 'objectMode' | 'binary'> & {
|
|
68
|
+
/**
|
|
69
|
+
Map or filter the input or output of the subprocess.
|
|
70
|
+
*/
|
|
71
|
+
transform(chunk: Uint8Array): GeneratorTransformReturn<IsSync>;
|
|
72
|
+
// eslint-disable-next-line @typescript-eslint/unified-signatures -- Combining these as `unknown | Uint8Array` would collapse to `unknown` and reject explicitly typed `Uint8Array` callbacks.
|
|
73
|
+
transform(chunk: unknown): GeneratorTransformReturn<IsSync>;
|
|
74
|
+
|
|
75
|
+
readonly objectMode: true;
|
|
76
|
+
readonly binary: true;
|
|
77
|
+
}
|
|
78
|
+
: GeneratorTransformBase<IsSync, unknown> & {readonly objectMode: true; readonly binary: true};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
A transform or an array of transforms can be passed to the `stdin`, `stdout`, `stderr` or `stdio` option.
|
|
82
|
+
|
|
83
|
+
A transform is either a generator function or a plain object with the following members.
|
|
84
|
+
*/
|
|
85
|
+
type GeneratorTransformFull<IsSync extends boolean, ObjectModeChunk = unknown, TransformChunk = string> =
|
|
86
|
+
// Non-literal `binary` or `objectMode` values are accepted at runtime, but their mode is unknown at compile time.
|
|
87
|
+
| (GeneratorTransformBase<IsSync, unknown> & {readonly objectMode?: boolean; readonly binary?: boolean})
|
|
88
|
+
// `binary: true` without `objectMode` -> the `chunk` argument is an `Uint8Array`.
|
|
89
|
+
| (GeneratorTransformBase<IsSync, Uint8Array> & {readonly objectMode?: false; readonly binary: true})
|
|
90
|
+
// `binary: true` with `objectMode` -> the `chunk` argument is `unknown` for stdin, `Uint8Array` for stdout/stderr.
|
|
91
|
+
| GeneratorTransformBinaryObjectMode<IsSync, ObjectModeChunk>
|
|
92
|
+
// `binary: false` without `objectMode` -> the `chunk` argument depends on the subprocess encoding.
|
|
93
|
+
| (GeneratorTransformBase<IsSync, TransformChunk> & {readonly objectMode?: false; readonly binary?: false})
|
|
94
|
+
// `objectMode: true` with `binary: false` -> the `chunk` argument depends on the stdio direction.
|
|
95
|
+
| (GeneratorTransformBase<IsSync, ObjectModeChunk> & {readonly objectMode: true; readonly binary?: false});
|
|
96
|
+
|
|
97
|
+
// `options.std*: Duplex`
|
|
98
|
+
type DuplexTransform = TransformCommon & {
|
|
99
|
+
readonly transform: Duplex;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
// `options.std*: TransformStream`
|
|
103
|
+
type WebTransform = TransformCommon & {
|
|
104
|
+
readonly transform: TransformStream;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
type IsStandardStream<FdNumber extends string> = FdNumber extends keyof StandardStreams ? true : false;
|
|
108
|
+
|
|
109
|
+
type StandardStreams = readonly ['stdin', 'stdout', 'stderr'];
|
|
110
|
+
|
|
111
|
+
// When `options.stdin|stdout|stderr|stdio` is set to one of those values, no stream is created
|
|
112
|
+
type NoStreamStdioOption<FdNumber extends string> =
|
|
113
|
+
| 'ignore'
|
|
114
|
+
| 'inherit'
|
|
115
|
+
| number
|
|
116
|
+
| Readable
|
|
117
|
+
| Writable
|
|
118
|
+
| Unless<IsStandardStream<FdNumber>, undefined>
|
|
119
|
+
| readonly [NoStreamStdioOption<FdNumber>]
|
|
120
|
+
| {readonly value: 'inherit' | number; readonly input?: boolean};
|
|
121
|
+
|
|
122
|
+
// `options.stdio` when it is not an array
|
|
123
|
+
type SimpleStdioOption<
|
|
124
|
+
IsSync extends boolean,
|
|
125
|
+
IsExtra extends boolean,
|
|
126
|
+
IsArray extends boolean,
|
|
127
|
+
> =
|
|
128
|
+
| undefined
|
|
129
|
+
| 'pipe'
|
|
130
|
+
| Unless<And<And<Not<IsSync>, IsArray>, IsExtra>, 'inherit'>
|
|
131
|
+
| Unless<IsArray, 'ignore'>
|
|
132
|
+
| Unless<IsSync, 'overlapped'>;
|
|
133
|
+
|
|
134
|
+
// The `{value, input}` object form wraps a direction-ambiguous value and sets its direction explicitly.
|
|
135
|
+
type AmbiguousStdioOption<
|
|
136
|
+
IsSync extends boolean,
|
|
137
|
+
IsExtra extends boolean,
|
|
138
|
+
IsArray extends boolean,
|
|
139
|
+
ObjectModeChunk = unknown,
|
|
140
|
+
TransformChunk = string,
|
|
141
|
+
> = {
|
|
142
|
+
readonly value: AmbiguousStdioValue<IsSync, IsArray, ObjectModeChunk, TransformChunk>;
|
|
143
|
+
readonly input?: Unless<And<IsSync, IsExtra>, boolean> | false;
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
// Values whose direction is ambiguous on additional file descriptors, so they default to output unless `input` is set.
|
|
147
|
+
// This excludes values with a fixed direction (readable/writable streams, iterables, standard file descriptors).
|
|
148
|
+
type AmbiguousStdioValue<
|
|
149
|
+
IsSync extends boolean,
|
|
150
|
+
IsArray extends boolean,
|
|
151
|
+
ObjectModeChunk,
|
|
152
|
+
TransformChunk,
|
|
153
|
+
> =
|
|
154
|
+
| 'pipe'
|
|
155
|
+
| 'inherit'
|
|
156
|
+
| Unless<IsSync, 'overlapped'>
|
|
157
|
+
| URL
|
|
158
|
+
| GeneratorTransform<IsSync, TransformChunk>
|
|
159
|
+
| GeneratorTransformFull<IsSync, ObjectModeChunk, TransformChunk>
|
|
160
|
+
| Unless<And<Not<IsSync>, IsArray>, 3 | 4 | 5 | 6 | 7 | 8 | 9>
|
|
161
|
+
| Unless<IsSync, DuplexTransform | WebTransform | TransformStream>
|
|
162
|
+
| {readonly file: string; readonly append?: boolean};
|
|
163
|
+
|
|
164
|
+
// Values available in both `options.stdin|stdio` and `options.stdout|stderr|stdio`
|
|
165
|
+
type CommonStdioOption<
|
|
166
|
+
IsSync extends boolean,
|
|
167
|
+
IsExtra extends boolean,
|
|
168
|
+
IsArray extends boolean,
|
|
169
|
+
ObjectModeChunk = unknown,
|
|
170
|
+
TransformChunk = string,
|
|
171
|
+
> =
|
|
172
|
+
// TypeScript cannot contextually type inline full generator transform objects through this broad stdio union because the union also includes `{transform: Duplex | TransformStream}` wrapper objects. Users should annotate `chunk` when assigning an inline object directly to `StdinOption`, `StdoutStderrOption`, `Options['stdout']`, etc. Keep `GeneratorTransformFull` mode branches narrow, but do not add a broad full-object fallback here to try to recover contextual typing.
|
|
173
|
+
SimpleStdioOption<IsSync, IsExtra, IsArray> | URL | GeneratorTransform<IsSync, TransformChunk> | GeneratorTransformFull<IsSync, ObjectModeChunk, TransformChunk> | Unless<And<Not<IsSync>, IsArray>, 3 | 4 | 5 | 6 | 7 | 8 | 9> | Unless<IsSync, DuplexTransform | WebTransform | TransformStream> | AmbiguousStdioOption<IsSync, IsExtra, IsArray, ObjectModeChunk, TransformChunk> | {readonly file: string; readonly append?: boolean};
|
|
174
|
+
|
|
175
|
+
// Synchronous iterables excluding strings, Uint8Arrays and Arrays
|
|
176
|
+
type IterableObject<IsArray extends boolean> = Iterable<unknown>
|
|
177
|
+
& object
|
|
178
|
+
& AndUnless<IsArray, {readonly lastIndexOf?: never}>
|
|
179
|
+
& {readonly BYTES_PER_ELEMENT?: never};
|
|
180
|
+
|
|
181
|
+
// `process.stdin|stdout|stderr` are `Duplex` with a `fd` property.
|
|
182
|
+
// This ensures they can only be passed to `stdin`/`stdout`/`stderr`, based on their direction.
|
|
183
|
+
type ProcessStdinFd = {readonly fd?: 0};
|
|
184
|
+
type ProcessStdoutStderrFd = {readonly fd?: 1 | 2};
|
|
185
|
+
|
|
186
|
+
// Values available only in `options.stdin|stdio`
|
|
187
|
+
type InputStdioOption<
|
|
188
|
+
IsSync extends boolean = boolean,
|
|
189
|
+
IsExtra extends boolean = boolean,
|
|
190
|
+
IsArray extends boolean = boolean,
|
|
191
|
+
> =
|
|
192
|
+
| 0
|
|
193
|
+
| Unless<And<IsSync, IsExtra>, Uint8Array | IterableObject<IsArray>>
|
|
194
|
+
| Unless<And<IsSync, IsArray>, Readable & ProcessStdinFd>
|
|
195
|
+
| Unless<IsSync, (AsyncIterable<unknown> & ProcessStdinFd) | ReadableStream>;
|
|
196
|
+
|
|
197
|
+
// Values available only in `options.stdout|stderr|stdio`
|
|
198
|
+
type OutputStdioOption<
|
|
199
|
+
IsSync extends boolean,
|
|
200
|
+
IsArray extends boolean,
|
|
201
|
+
> =
|
|
202
|
+
| 1
|
|
203
|
+
| 2
|
|
204
|
+
| Unless<And<IsSync, IsArray>, Writable & ProcessStdoutStderrFd>
|
|
205
|
+
| Unless<IsSync, WritableStream>;
|
|
206
|
+
|
|
207
|
+
// `options.stdin` array items
|
|
208
|
+
type StdinSingleOption<
|
|
209
|
+
IsSync extends boolean,
|
|
210
|
+
IsExtra extends boolean,
|
|
211
|
+
IsArray extends boolean,
|
|
212
|
+
TransformChunk = string,
|
|
213
|
+
> =
|
|
214
|
+
| CommonStdioOption<IsSync, IsExtra, IsArray, unknown, TransformChunk>
|
|
215
|
+
| InputStdioOption<IsSync, IsExtra, IsArray>;
|
|
216
|
+
|
|
217
|
+
// `options.stdin`
|
|
218
|
+
type StdinOptionCommon<
|
|
219
|
+
IsSync extends boolean = boolean,
|
|
220
|
+
IsExtra extends boolean = boolean,
|
|
221
|
+
TransformChunk = string,
|
|
222
|
+
> = TransformChunk extends unknown
|
|
223
|
+
? | StdinSingleOption<IsSync, IsExtra, false, TransformChunk>
|
|
224
|
+
| ReadonlyArray<StdinSingleOption<IsSync, IsExtra, true, TransformChunk>>
|
|
225
|
+
: never;
|
|
226
|
+
|
|
227
|
+
// `options.stdin`, async
|
|
228
|
+
type StdinOption = StdinOptionCommon<false, false>;
|
|
229
|
+
// `options.stdin`, sync
|
|
230
|
+
type StdinSyncOption = StdinOptionCommon<true, false>;
|
|
231
|
+
|
|
232
|
+
// `options.stdout|stderr` array items
|
|
233
|
+
type StdoutStderrSingleOption<
|
|
234
|
+
IsSync extends boolean,
|
|
235
|
+
IsExtra extends boolean,
|
|
236
|
+
IsArray extends boolean,
|
|
237
|
+
TransformChunk = string,
|
|
238
|
+
> =
|
|
239
|
+
| CommonStdioOption<IsSync, IsExtra, IsArray, TransformChunk, TransformChunk>
|
|
240
|
+
| OutputStdioOption<IsSync, IsArray>;
|
|
241
|
+
|
|
242
|
+
// `options.stdout|stderr`
|
|
243
|
+
// In `objectMode`, the `chunk` argument of every array item is typed as `string`, even though only the first transform in the pipeline receives subprocess lines. The array index cannot be used to infer the pipeline position, since non-transform items are filtered out and transforms are reordered at runtime.
|
|
244
|
+
type StdoutStderrOptionCommon<
|
|
245
|
+
IsSync extends boolean = boolean,
|
|
246
|
+
IsExtra extends boolean = boolean,
|
|
247
|
+
TransformChunk = string,
|
|
248
|
+
> = TransformChunk extends unknown
|
|
249
|
+
? | StdoutStderrSingleOption<IsSync, IsExtra, false, TransformChunk>
|
|
250
|
+
| ReadonlyArray<StdoutStderrSingleOption<IsSync, IsExtra, true, TransformChunk>>
|
|
251
|
+
: never;
|
|
252
|
+
|
|
253
|
+
// `options.stdout|stderr`, async
|
|
254
|
+
type StdoutStderrOption = StdoutStderrOptionCommon<false, false>;
|
|
255
|
+
// `options.stdout|stderr`, sync
|
|
256
|
+
type StdoutStderrSyncOption = StdoutStderrOptionCommon<true, false>;
|
|
257
|
+
|
|
258
|
+
// `options.stdio[3+]`
|
|
259
|
+
type StdioExtraOptionCommon<IsSync extends boolean, TransformChunk = string> =
|
|
260
|
+
| StdinOptionCommon<IsSync, true, TransformChunk>
|
|
261
|
+
| StdoutStderrOptionCommon<IsSync, true, TransformChunk>;
|
|
262
|
+
|
|
263
|
+
// `options.stdin|stdout|stderr|stdio` array items
|
|
264
|
+
type StdioSingleOption<
|
|
265
|
+
IsSync extends boolean = boolean,
|
|
266
|
+
IsExtra extends boolean = boolean,
|
|
267
|
+
IsArray extends boolean = boolean,
|
|
268
|
+
TransformChunk = string,
|
|
269
|
+
> =
|
|
270
|
+
| StdinSingleOption<IsSync, IsExtra, IsArray, TransformChunk>
|
|
271
|
+
| StdoutStderrSingleOption<IsSync, IsExtra, IsArray, TransformChunk>;
|
|
272
|
+
|
|
273
|
+
// Get `options.stdin|stdout|stderr|stdio` items if it is an array, else keep as is
|
|
274
|
+
type StdioSingleOptionItems<StdioOptionType> = StdioOptionType extends readonly StdioSingleOption[]
|
|
275
|
+
? StdioOptionType[number]
|
|
276
|
+
: StdioOptionType;
|
|
277
|
+
|
|
278
|
+
// `options.stdin|stdout|stderr|stdio`
|
|
279
|
+
type StdioOptionCommon<IsSync extends boolean = boolean, TransformChunk = string> =
|
|
280
|
+
| StdinOptionCommon<IsSync, boolean, TransformChunk>
|
|
281
|
+
| StdoutStderrOptionCommon<IsSync, boolean, TransformChunk>;
|
|
282
|
+
|
|
283
|
+
// `options.stdio` when it is an array
|
|
284
|
+
type StdioOptionsArray<IsSync extends boolean = boolean, TransformChunk = string> = readonly [
|
|
285
|
+
StdinOptionCommon<IsSync, false, TransformChunk>,
|
|
286
|
+
StdoutStderrOptionCommon<IsSync, false, TransformChunk>,
|
|
287
|
+
StdoutStderrOptionCommon<IsSync, false, TransformChunk>,
|
|
288
|
+
...ReadonlyArray<StdioExtraOptionCommon<IsSync, TransformChunk>>,
|
|
289
|
+
];
|
|
290
|
+
|
|
291
|
+
// `options.stdio`
|
|
292
|
+
type StdioOptionsProperty<IsSync extends boolean = boolean, TransformChunk = string> = TransformChunk extends unknown
|
|
293
|
+
? | SimpleStdioOption<IsSync, false, false>
|
|
294
|
+
| StdioOptionsArray<IsSync, TransformChunk>
|
|
295
|
+
: never;
|
|
296
|
+
|
|
297
|
+
// Message when the `serialization` option is `'advanced'`
|
|
298
|
+
type AdvancedMessage =
|
|
299
|
+
| string
|
|
300
|
+
| number
|
|
301
|
+
| boolean
|
|
302
|
+
| null
|
|
303
|
+
| object;
|
|
304
|
+
|
|
305
|
+
// Message when the `serialization` option is `'json'`
|
|
306
|
+
type JsonMessage =
|
|
307
|
+
| string
|
|
308
|
+
| number
|
|
309
|
+
| boolean
|
|
310
|
+
| null
|
|
311
|
+
| readonly JsonMessage[]
|
|
312
|
+
| {readonly [key: string | number]: JsonMessage};
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
Type of messages exchanged between a process and its subprocess using `sendMessage()`, `getOneMessage()` and `getEachMessage()`.
|
|
316
|
+
|
|
317
|
+
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
318
|
+
*/
|
|
319
|
+
type Message<
|
|
320
|
+
Serialization extends Options['serialization'] = Options['serialization'],
|
|
321
|
+
> = Serialization extends 'json' ? JsonMessage : AdvancedMessage;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
Options to `sendMessage()` and `subprocess.sendMessage()`
|
|
325
|
+
*/
|
|
326
|
+
type SendMessageOptions = {
|
|
327
|
+
/**
|
|
328
|
+
Throw when the other process is not receiving or listening to messages.
|
|
329
|
+
|
|
330
|
+
@default false
|
|
331
|
+
*/
|
|
332
|
+
readonly strict?: boolean;
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
// IPC methods in subprocess
|
|
336
|
+
/**
|
|
337
|
+
Send a `message` to the parent process.
|
|
338
|
+
|
|
339
|
+
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
340
|
+
*/
|
|
341
|
+
declare function sendMessage(message: Message, sendMessageOptions?: SendMessageOptions): Promise<void>;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
Options to `getOneMessage()` and `subprocess.getOneMessage()`
|
|
345
|
+
*/
|
|
346
|
+
type GetOneMessageOptions<
|
|
347
|
+
Serialization extends Options['serialization'],
|
|
348
|
+
> = {
|
|
349
|
+
/**
|
|
350
|
+
Ignore any `message` that returns `false`.
|
|
351
|
+
*/
|
|
352
|
+
readonly filter?: (message: Message<Serialization>) => boolean;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
Keep the subprocess alive while `getOneMessage()` is waiting.
|
|
356
|
+
|
|
357
|
+
@default true
|
|
358
|
+
*/
|
|
359
|
+
readonly reference?: boolean;
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
Receive a single `message` from the parent process.
|
|
364
|
+
|
|
365
|
+
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
366
|
+
*/
|
|
367
|
+
declare function getOneMessage(getOneMessageOptions?: GetOneMessageOptions<Options['serialization']>): Promise<Message>;
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
Options to `getEachMessage()` and `subprocess.getEachMessage()`
|
|
371
|
+
*/
|
|
372
|
+
type GetEachMessageOptions = {
|
|
373
|
+
/**
|
|
374
|
+
Keep the subprocess alive while `getEachMessage()` is waiting.
|
|
375
|
+
|
|
376
|
+
@default true
|
|
377
|
+
*/
|
|
378
|
+
readonly reference?: boolean;
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
Iterate over each `message` from the parent process.
|
|
383
|
+
|
|
384
|
+
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
385
|
+
*/
|
|
386
|
+
declare function getEachMessage(getEachMessageOptions?: GetEachMessageOptions): AsyncIterableIterator<Message>;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
Retrieves the [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) shared by the `cancelSignal` option.
|
|
390
|
+
|
|
391
|
+
This can only be called inside a subprocess. This requires the `gracefulCancel` option to be `true`.
|
|
392
|
+
*/
|
|
393
|
+
declare function getCancelSignal(): Promise<AbortSignal>;
|
|
394
|
+
|
|
395
|
+
// IPC methods in the subprocess
|
|
396
|
+
type IpcMethods<
|
|
397
|
+
IpcEnabled extends boolean,
|
|
398
|
+
Serialization extends Options['serialization'],
|
|
399
|
+
> = IpcEnabled extends true
|
|
400
|
+
? {
|
|
401
|
+
/**
|
|
402
|
+
Send a `message` to the subprocess.
|
|
403
|
+
|
|
404
|
+
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
405
|
+
*/
|
|
406
|
+
sendMessage(message: Message<Serialization>, sendMessageOptions?: SendMessageOptions): Promise<void>;
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
Receive a single `message` from the subprocess.
|
|
410
|
+
|
|
411
|
+
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
412
|
+
*/
|
|
413
|
+
getOneMessage(getOneMessageOptions?: GetOneMessageOptions<Serialization>): Promise<Message<Serialization>>;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
Iterate over each `message` from the subprocess.
|
|
417
|
+
|
|
418
|
+
This requires the `ipc` option to be `true`. The type of `message` depends on the `serialization` option.
|
|
419
|
+
*/
|
|
420
|
+
getEachMessage(getEachMessageOptions?: GetEachMessageOptions): AsyncIterableIterator<Message<Serialization>>;
|
|
421
|
+
}
|
|
422
|
+
// Those methods only work if the `ipc` option is `true`.
|
|
423
|
+
// At runtime, they are actually defined, in order to provide with a nice error message.
|
|
424
|
+
// At type check time, they are typed as `undefined` to prevent calling them.
|
|
425
|
+
: {
|
|
426
|
+
sendMessage: undefined;
|
|
427
|
+
getOneMessage: undefined;
|
|
428
|
+
getEachMessage: undefined;
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
// Whether IPC is enabled, based on the `ipc`, `ipcInput` and `gracefulCancel` options
|
|
432
|
+
type HasIpc<OptionsType extends Options> = HasIpcOption<
|
|
433
|
+
OptionsType['ipc'],
|
|
434
|
+
'ipcInput' extends keyof OptionsType ? OptionsType['ipcInput'] : undefined,
|
|
435
|
+
'gracefulCancel' extends keyof OptionsType ? OptionsType['gracefulCancel'] : undefined
|
|
436
|
+
>;
|
|
437
|
+
|
|
438
|
+
type HasIpcOption<
|
|
439
|
+
IpcOption extends Options['ipc'],
|
|
440
|
+
IpcInputOption extends Options['ipcInput'],
|
|
441
|
+
GracefulCancelOption extends Options['gracefulCancel'],
|
|
442
|
+
> = IpcOption extends true
|
|
443
|
+
? true
|
|
444
|
+
: IpcOption extends false
|
|
445
|
+
? false
|
|
446
|
+
: IpcInputOption extends undefined
|
|
447
|
+
? GracefulCancelOption extends true
|
|
448
|
+
? true
|
|
449
|
+
: false
|
|
450
|
+
: true;
|
|
451
|
+
|
|
452
|
+
type FileDescriptorOption = `fd${number}`;
|
|
453
|
+
|
|
454
|
+
// `from` option of `subprocess.readable|duplex|iterable|pipe()`
|
|
455
|
+
// Also used by fd-specific options
|
|
456
|
+
type FromOption = 'stdout' | 'stderr' | 'all' | FileDescriptorOption;
|
|
457
|
+
|
|
458
|
+
// `to` option of `subprocess.writable|duplex|pipe()`
|
|
459
|
+
type ToOption = 'stdin' | FileDescriptorOption;
|
|
460
|
+
|
|
461
|
+
// Options which can be fd-specific like `{verbose: {stdout: 'none', stderr: 'full'}}`
|
|
462
|
+
type FdGenericOption<OptionType> = OptionType | GenericOptionObject<OptionType>;
|
|
463
|
+
|
|
464
|
+
type GenericOptionObject<OptionType> = Readonly<Partial<Record<GenericFromOption, OptionType>>>;
|
|
465
|
+
|
|
466
|
+
type GenericFromOption = FromOption | 'ipc';
|
|
467
|
+
|
|
468
|
+
// Retrieve fd-specific option's value
|
|
469
|
+
type FdSpecificOption<
|
|
470
|
+
GenericOption extends FdGenericOption<unknown>,
|
|
471
|
+
FdNumber extends string,
|
|
472
|
+
> = GenericOption extends GenericOptionObject<unknown>
|
|
473
|
+
? FdSpecificObjectOption<GenericOption, FdNumber>
|
|
474
|
+
: GenericOption;
|
|
475
|
+
|
|
476
|
+
type FdSpecificObjectOption<
|
|
477
|
+
GenericOption extends GenericOptionObject<unknown>,
|
|
478
|
+
FdNumber extends string,
|
|
479
|
+
> = keyof GenericOption extends GenericFromOption
|
|
480
|
+
? FdNumberToFromOption<FdNumber, keyof GenericOption> extends never
|
|
481
|
+
? undefined
|
|
482
|
+
: GenericOption[FdNumberToFromOption<FdNumber, keyof GenericOption>]
|
|
483
|
+
: GenericOption;
|
|
484
|
+
|
|
485
|
+
type FdNumberToFromOption<
|
|
486
|
+
FdNumber extends string,
|
|
487
|
+
GenericOptionKeys extends GenericFromOption,
|
|
488
|
+
> = FdNumber extends 'ipc'
|
|
489
|
+
? 'ipc' extends GenericOptionKeys
|
|
490
|
+
? 'ipc'
|
|
491
|
+
: never
|
|
492
|
+
: FdNumber extends '1'
|
|
493
|
+
? 'stdout' extends GenericOptionKeys
|
|
494
|
+
? 'stdout'
|
|
495
|
+
: 'fd1' extends GenericOptionKeys
|
|
496
|
+
? 'fd1'
|
|
497
|
+
: 'all' extends GenericOptionKeys
|
|
498
|
+
? 'all'
|
|
499
|
+
: never
|
|
500
|
+
: FdNumber extends '2'
|
|
501
|
+
? 'stderr' extends GenericOptionKeys
|
|
502
|
+
? 'stderr'
|
|
503
|
+
: 'fd2' extends GenericOptionKeys
|
|
504
|
+
? 'fd2'
|
|
505
|
+
: 'all' extends GenericOptionKeys
|
|
506
|
+
? 'all'
|
|
507
|
+
: never
|
|
508
|
+
: `fd${FdNumber}` extends GenericOptionKeys
|
|
509
|
+
? `fd${FdNumber}`
|
|
510
|
+
: never;
|
|
511
|
+
|
|
512
|
+
declare abstract class CommonError<
|
|
513
|
+
IsSync extends boolean,
|
|
514
|
+
OptionsType extends CommonOptions,
|
|
515
|
+
> extends CommonResult<IsSync, OptionsType> {
|
|
516
|
+
message: CommonErrorProperty<IsSync, OptionsType, 'message'>;
|
|
517
|
+
shortMessage: CommonErrorProperty<IsSync, OptionsType, 'shortMessage'>;
|
|
518
|
+
originalMessage: CommonErrorProperty<IsSync, OptionsType, 'originalMessage'>;
|
|
519
|
+
readonly name: CommonErrorProperty<IsSync, OptionsType, 'name'>;
|
|
520
|
+
stack: CommonErrorProperty<IsSync, OptionsType, 'stack'>;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
type CommonErrorProperty<
|
|
524
|
+
IsSync extends boolean,
|
|
525
|
+
OptionsType extends CommonOptions,
|
|
526
|
+
PropertyName extends keyof CommonResult<IsSync, OptionsType>,
|
|
527
|
+
> = NonNullable<CommonResult<IsSync, OptionsType>[PropertyName]>;
|
|
528
|
+
|
|
529
|
+
// `result.*` defined only on failure, i.e. on `error.*`
|
|
530
|
+
type ErrorProperties =
|
|
531
|
+
| 'name'
|
|
532
|
+
| 'message'
|
|
533
|
+
| 'stack'
|
|
534
|
+
| 'cause'
|
|
535
|
+
| 'shortMessage'
|
|
536
|
+
| 'originalMessage'
|
|
537
|
+
| 'code';
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
Result of a subprocess failed execution.
|
|
541
|
+
|
|
542
|
+
This error is thrown as an exception. If the `reject` option is false, it is returned instead.
|
|
543
|
+
|
|
544
|
+
This has the same shape as successful results, with a few additional properties.
|
|
545
|
+
*/
|
|
546
|
+
declare class ExecaError<OptionsType extends Options = Options> extends CommonError<false, OptionsType> {
|
|
547
|
+
readonly name: 'ExecaError';
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
Result of a subprocess failed execution.
|
|
552
|
+
|
|
553
|
+
This error is thrown as an exception. If the `reject` option is false, it is returned instead.
|
|
554
|
+
|
|
555
|
+
This has the same shape as successful results, with a few additional properties.
|
|
556
|
+
*/
|
|
557
|
+
declare class ExecaSyncError<OptionsType extends SyncOptions = SyncOptions> extends CommonError<true, OptionsType> {
|
|
558
|
+
readonly name: 'ExecaSyncError';
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
// `options.stdio`, normalized as an array
|
|
562
|
+
type StdioOptionNormalizedArray<OptionsType extends CommonOptions> = StdioOptionNormalized<OptionsType['stdio']>;
|
|
563
|
+
|
|
564
|
+
type StdioOptionNormalized<StdioOption extends CommonOptions['stdio']> = StdioOption extends StdioOptionsArray
|
|
565
|
+
? StdioOption
|
|
566
|
+
: StdioOption extends StdinOptionCommon
|
|
567
|
+
? StdioOption extends StdoutStderrOptionCommon
|
|
568
|
+
? readonly [StdioOption, StdioOption, StdioOption]
|
|
569
|
+
: DefaultStdioOption
|
|
570
|
+
: DefaultStdioOption;
|
|
571
|
+
|
|
572
|
+
// `options.stdio` default value
|
|
573
|
+
type DefaultStdioOption = readonly ['pipe', 'pipe', 'pipe'];
|
|
574
|
+
|
|
575
|
+
// `options.stdin|stdout|stderr|stdio` for a given file descriptor
|
|
576
|
+
type FdStdioOption<
|
|
577
|
+
FdNumber extends string,
|
|
578
|
+
OptionsType extends CommonOptions,
|
|
579
|
+
> = FdStdioOptionProperty<FdNumber, OptionsType>;
|
|
580
|
+
|
|
581
|
+
type FdStdioOptionProperty<
|
|
582
|
+
FdNumber extends string,
|
|
583
|
+
OptionsType extends CommonOptions,
|
|
584
|
+
> = string extends FdNumber ? StdioOptionCommon
|
|
585
|
+
: FdNumber extends keyof StandardStreams
|
|
586
|
+
? StandardStreams[FdNumber] extends keyof OptionsType
|
|
587
|
+
? OptionsType[StandardStreams[FdNumber]] extends undefined
|
|
588
|
+
? FdStdioArrayOption<FdNumber, OptionsType>
|
|
589
|
+
: OptionsType[StandardStreams[FdNumber]]
|
|
590
|
+
: FdStdioArrayOption<FdNumber, OptionsType>
|
|
591
|
+
: FdStdioArrayOption<FdNumber, OptionsType>;
|
|
592
|
+
|
|
593
|
+
// `options.stdio[FdNumber]`, excluding `options.stdin|stdout|stderr`
|
|
594
|
+
type FdStdioArrayOption<
|
|
595
|
+
FdNumber extends string,
|
|
596
|
+
OptionsType extends CommonOptions,
|
|
597
|
+
> = FdStdioArrayOptionProperty<FdNumber, StdioOptionNormalizedArray<OptionsType>>;
|
|
598
|
+
|
|
599
|
+
type FdStdioArrayOptionProperty<
|
|
600
|
+
FdNumber extends string,
|
|
601
|
+
StdioOptionsType,
|
|
602
|
+
> = string extends FdNumber
|
|
603
|
+
? StdioOptionCommon | undefined
|
|
604
|
+
: StdioOptionsType extends StdioOptionsArray
|
|
605
|
+
? FdNumber extends keyof StdioOptionsType
|
|
606
|
+
? StdioOptionsType[FdNumber]
|
|
607
|
+
: StdioOptionNormalizedArray<CommonOptions> extends StdioOptionsType
|
|
608
|
+
? StdioOptionsType[number]
|
|
609
|
+
: undefined
|
|
610
|
+
: undefined;
|
|
611
|
+
|
|
612
|
+
// Whether a file descriptor is in object mode
|
|
613
|
+
// I.e. whether `result.stdout|stderr|stdio|all` is an array of `unknown` due to `objectMode: true`
|
|
614
|
+
type IsObjectFd<
|
|
615
|
+
FdNumber extends string,
|
|
616
|
+
OptionsType extends CommonOptions,
|
|
617
|
+
> = IsObjectStdioOption<FdStdioOption<FdNumber, OptionsType>>;
|
|
618
|
+
|
|
619
|
+
type IsObjectStdioOption<StdioOptionType> = IsObjectStdioSingleOption<StdioSingleOptionItems<StdioOptionType>>;
|
|
620
|
+
|
|
621
|
+
type IsObjectStdioSingleOption<StdioSingleOptionType> = StdioSingleOptionType extends TransformCommon
|
|
622
|
+
? BooleanObjectMode<StdioSingleOptionType['objectMode']>
|
|
623
|
+
: StdioSingleOptionType extends DuplexTransform
|
|
624
|
+
? StdioSingleOptionType['transform']['readableObjectMode']
|
|
625
|
+
: false;
|
|
626
|
+
|
|
627
|
+
type BooleanObjectMode<ObjectModeOption extends boolean | undefined> = ObjectModeOption extends true ? true : false;
|
|
628
|
+
|
|
629
|
+
type AnyAmbiguousStdioOption = AmbiguousStdioOption<boolean, false, boolean>;
|
|
630
|
+
|
|
631
|
+
type InputAmbiguousStdioOption = AnyAmbiguousStdioOption & {
|
|
632
|
+
readonly input: true;
|
|
633
|
+
};
|
|
634
|
+
|
|
635
|
+
type AmbiguousStdioInputValue<StdioOptionType> = StdioOptionType extends AnyAmbiguousStdioOption
|
|
636
|
+
? AmbiguousStdioInputProperty<StdioOptionType>
|
|
637
|
+
: never;
|
|
638
|
+
|
|
639
|
+
type AmbiguousStdioInputProperty<StdioOptionType> = 'input' extends keyof StdioOptionType
|
|
640
|
+
? StdioOptionType extends {readonly input?: infer Input} ? Input : never
|
|
641
|
+
: never;
|
|
642
|
+
|
|
643
|
+
// Whether `result.stdio[FdNumber]` is an input stream
|
|
644
|
+
type IsInputFd<
|
|
645
|
+
FdNumber extends string,
|
|
646
|
+
OptionsType extends CommonOptions,
|
|
647
|
+
> = FdNumber extends '0'
|
|
648
|
+
? true
|
|
649
|
+
: IsInputFdOption<
|
|
650
|
+
FdNumber,
|
|
651
|
+
StdioSingleOptionItems<FdStdioArrayOption<FdNumber, OptionsType>>
|
|
652
|
+
>;
|
|
653
|
+
|
|
654
|
+
type IsInputFdOption<
|
|
655
|
+
FdNumber extends string,
|
|
656
|
+
StdioOptionType,
|
|
657
|
+
> = Intersects<
|
|
658
|
+
StdioOptionType,
|
|
659
|
+
FdNumber extends '1' | '2' ? InputStdioOption : InputStdioOption | InputAmbiguousStdioOption
|
|
660
|
+
> extends true
|
|
661
|
+
? true
|
|
662
|
+
: FdNumber extends '1' | '2'
|
|
663
|
+
? false
|
|
664
|
+
: true extends AmbiguousStdioInputValue<StdioOptionType>
|
|
665
|
+
? boolean
|
|
666
|
+
: false;
|
|
667
|
+
|
|
668
|
+
// Whether `result.stdin|stdout|stderr|all|stdio[*]` is `undefined`
|
|
669
|
+
type IgnoresResultOutput<
|
|
670
|
+
FdNumber extends string,
|
|
671
|
+
OptionsType extends CommonOptions,
|
|
672
|
+
> = FdSpecificOption<OptionsType['buffer'], FdNumber> extends false
|
|
673
|
+
? true
|
|
674
|
+
: IgnoresResultOutputDirection<IsInputFd<FdNumber, OptionsType>, FdNumber, OptionsType>;
|
|
675
|
+
|
|
676
|
+
type IgnoresResultOutputDirection<
|
|
677
|
+
IsInput extends boolean,
|
|
678
|
+
FdNumber extends string,
|
|
679
|
+
OptionsType extends CommonOptions,
|
|
680
|
+
> = IsInput extends true ? true : IgnoresSubprocessOutput<FdNumber, OptionsType>;
|
|
681
|
+
|
|
682
|
+
// Whether `subprocess.stdout|stderr|all` is `undefined|null`
|
|
683
|
+
type IgnoresSubprocessOutput<
|
|
684
|
+
FdNumber extends string,
|
|
685
|
+
OptionsType extends CommonOptions,
|
|
686
|
+
> = IgnoresOutput<FdNumber, FdStdioOption<FdNumber, OptionsType>>;
|
|
687
|
+
|
|
688
|
+
type IgnoresOutput<
|
|
689
|
+
FdNumber extends string,
|
|
690
|
+
StdioOptionType,
|
|
691
|
+
> = StdioOptionType extends NoStreamStdioOption<FdNumber> ? true : false;
|
|
692
|
+
|
|
693
|
+
type DefaultEncodingOption = 'utf8';
|
|
694
|
+
type TextEncodingOption =
|
|
695
|
+
| DefaultEncodingOption
|
|
696
|
+
| 'utf16le';
|
|
697
|
+
|
|
698
|
+
type BufferEncodingOption = 'buffer';
|
|
699
|
+
type BinaryEncodingOption =
|
|
700
|
+
| BufferEncodingOption
|
|
701
|
+
| 'hex'
|
|
702
|
+
| 'base64'
|
|
703
|
+
| 'base64url'
|
|
704
|
+
| 'latin1'
|
|
705
|
+
| 'ascii';
|
|
706
|
+
|
|
707
|
+
// `options.encoding`
|
|
708
|
+
type EncodingOption =
|
|
709
|
+
| TextEncodingOption
|
|
710
|
+
| BinaryEncodingOption
|
|
711
|
+
| undefined;
|
|
712
|
+
|
|
713
|
+
// `result.stdout|stderr|stdio`
|
|
714
|
+
type ResultStdioNotAll<
|
|
715
|
+
FdNumber extends string,
|
|
716
|
+
OptionsType extends CommonOptions,
|
|
717
|
+
> = ResultStdio<FdNumber, FdNumber, FdNumber, OptionsType>;
|
|
718
|
+
|
|
719
|
+
// `result.stdout|stderr|stdio|all`
|
|
720
|
+
type ResultStdio<
|
|
721
|
+
MainFdNumber extends string,
|
|
722
|
+
ObjectFdNumber extends string,
|
|
723
|
+
LinesFdNumber extends string,
|
|
724
|
+
OptionsType extends CommonOptions,
|
|
725
|
+
> = ResultStdioProperty<
|
|
726
|
+
ObjectFdNumber,
|
|
727
|
+
LinesFdNumber,
|
|
728
|
+
IgnoresResultOutput<MainFdNumber, OptionsType>,
|
|
729
|
+
OptionsType
|
|
730
|
+
>;
|
|
731
|
+
|
|
732
|
+
type ResultStdioProperty<
|
|
733
|
+
ObjectFdNumber extends string,
|
|
734
|
+
LinesFdNumber extends string,
|
|
735
|
+
StreamOutputIgnored,
|
|
736
|
+
OptionsType extends CommonOptions,
|
|
737
|
+
> = StreamOutputIgnored extends true
|
|
738
|
+
? undefined
|
|
739
|
+
: ResultStdioItem<
|
|
740
|
+
IsObjectFd<ObjectFdNumber, OptionsType>,
|
|
741
|
+
FdSpecificOption<OptionsType['lines'], LinesFdNumber>,
|
|
742
|
+
OptionsType['encoding']
|
|
743
|
+
>;
|
|
744
|
+
|
|
745
|
+
type ResultStdioItem<
|
|
746
|
+
IsObjectResult,
|
|
747
|
+
LinesOption extends boolean | undefined,
|
|
748
|
+
Encoding extends CommonOptions['encoding'],
|
|
749
|
+
> = IsObjectResult extends true ? unknown[]
|
|
750
|
+
: Encoding extends BufferEncodingOption
|
|
751
|
+
? Uint8Array
|
|
752
|
+
: LinesOption extends true
|
|
753
|
+
? Encoding extends BinaryEncodingOption
|
|
754
|
+
? string
|
|
755
|
+
: string[]
|
|
756
|
+
: string;
|
|
757
|
+
|
|
758
|
+
// `result.all`
|
|
759
|
+
type ResultAll<OptionsType extends CommonOptions> =
|
|
760
|
+
ResultAllProperty<OptionsType['all'], OptionsType>;
|
|
761
|
+
|
|
762
|
+
type ResultAllProperty<
|
|
763
|
+
AllOption extends CommonOptions['all'],
|
|
764
|
+
OptionsType extends CommonOptions,
|
|
765
|
+
> = AllOption extends true
|
|
766
|
+
? ResultStdio<
|
|
767
|
+
AllMainFd<OptionsType>,
|
|
768
|
+
AllObjectFd<OptionsType>,
|
|
769
|
+
AllLinesFd<OptionsType>,
|
|
770
|
+
OptionsType
|
|
771
|
+
>
|
|
772
|
+
: undefined;
|
|
773
|
+
|
|
774
|
+
type AllMainFd<OptionsType extends CommonOptions> =
|
|
775
|
+
IgnoresResultOutput<'1', OptionsType> extends true ? '2' : '1';
|
|
776
|
+
|
|
777
|
+
type AllObjectFd<OptionsType extends CommonOptions> =
|
|
778
|
+
IsObjectFd<'1', OptionsType> extends true ? '1' : '2';
|
|
779
|
+
|
|
780
|
+
type AllLinesFd<OptionsType extends CommonOptions> =
|
|
781
|
+
FdSpecificOption<OptionsType['lines'], '1'> extends true ? '1' : '2';
|
|
782
|
+
|
|
783
|
+
// `result.stdio`
|
|
784
|
+
type ResultStdioArray<OptionsType extends CommonOptions> =
|
|
785
|
+
MapResultStdio<StdioOptionNormalizedArray<OptionsType>, OptionsType>;
|
|
786
|
+
|
|
787
|
+
type MapResultStdio<
|
|
788
|
+
StdioOptionsArrayType,
|
|
789
|
+
OptionsType extends CommonOptions,
|
|
790
|
+
> = {
|
|
791
|
+
-readonly [FdNumber in keyof StdioOptionsArrayType]: ResultStdioNotAll<
|
|
792
|
+
FdNumber extends string ? FdNumber : string,
|
|
793
|
+
OptionsType
|
|
794
|
+
>
|
|
795
|
+
};
|
|
796
|
+
|
|
797
|
+
// `result.ipcOutput`
|
|
798
|
+
// This is empty unless the `ipc` option is `true`.
|
|
799
|
+
// Also, this is empty if the `buffer` option is `false`.
|
|
800
|
+
type ResultIpcOutput<
|
|
801
|
+
IsSync,
|
|
802
|
+
OptionsType extends CommonOptions,
|
|
803
|
+
> = IsSync extends true
|
|
804
|
+
? []
|
|
805
|
+
: ResultIpcAsync<
|
|
806
|
+
FdSpecificOption<OptionsType['buffer'], 'ipc'>,
|
|
807
|
+
HasIpc<StricterOptions<OptionsType, Options>>,
|
|
808
|
+
OptionsType['serialization']
|
|
809
|
+
>;
|
|
810
|
+
|
|
811
|
+
type ResultIpcAsync<
|
|
812
|
+
BufferOption extends boolean | undefined,
|
|
813
|
+
IpcEnabled extends boolean,
|
|
814
|
+
SerializationOption extends CommonOptions['serialization'],
|
|
815
|
+
> = BufferOption extends false
|
|
816
|
+
? []
|
|
817
|
+
: IpcEnabled extends true
|
|
818
|
+
? Array<Message<SerializationOption>>
|
|
819
|
+
: [];
|
|
820
|
+
|
|
821
|
+
declare abstract class CommonResult<
|
|
822
|
+
IsSync extends boolean,
|
|
823
|
+
OptionsType extends CommonOptions,
|
|
824
|
+
> {
|
|
825
|
+
/**
|
|
826
|
+
The output of the subprocess on [`stdout`](https://en.wikipedia.org/wiki/Standard_streams#Standard_output_(stdout)).
|
|
827
|
+
|
|
828
|
+
This is `undefined` if the `stdout` option is set to only `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
829
|
+
|
|
830
|
+
This is an array if the `lines` option is `true`, or if the `stdout` option is a transform in object mode.
|
|
831
|
+
*/
|
|
832
|
+
stdout: ResultStdioNotAll<'1', OptionsType>;
|
|
833
|
+
|
|
834
|
+
/**
|
|
835
|
+
The output of the subprocess on [`stderr`](https://en.wikipedia.org/wiki/Standard_streams#Standard_error_(stderr)).
|
|
836
|
+
|
|
837
|
+
This is `undefined` if the `stderr` option is set to only `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
838
|
+
|
|
839
|
+
This is an array if the `lines` option is `true`, or if the `stderr` option is a transform in object mode.
|
|
840
|
+
*/
|
|
841
|
+
stderr: ResultStdioNotAll<'2', OptionsType>;
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
The output of the subprocess with `result.stdout` and `result.stderr` interleaved.
|
|
845
|
+
|
|
846
|
+
This requires the `all` option to be `true`.
|
|
847
|
+
|
|
848
|
+
This is `undefined` if both `stdout` and `stderr` options are set to only `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
849
|
+
|
|
850
|
+
This is an array if the `lines` option is `true`, or if either the `stdout` or `stderr` option is a transform in object mode.
|
|
851
|
+
*/
|
|
852
|
+
all: ResultAll<OptionsType>;
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
The output of the subprocess on `stdin`, `stdout`, `stderr` and other file descriptors.
|
|
856
|
+
|
|
857
|
+
Items are `undefined` when their corresponding `stdio` option is set to only `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
858
|
+
|
|
859
|
+
Items are arrays when their corresponding `stdio` option is a transform in object mode.
|
|
860
|
+
*/
|
|
861
|
+
stdio: ResultStdioArray<OptionsType>;
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
All the messages sent by the subprocess to the current process.
|
|
865
|
+
|
|
866
|
+
This is empty unless the `ipc` option is `true`. Also, this is empty if the `buffer` option is `false`.
|
|
867
|
+
*/
|
|
868
|
+
ipcOutput: ResultIpcOutput<IsSync, OptionsType>;
|
|
869
|
+
|
|
870
|
+
/**
|
|
871
|
+
Results of the other subprocesses that were piped into this subprocess.
|
|
872
|
+
|
|
873
|
+
This array is initially empty and is populated each time the `subprocess.pipe()` method resolves.
|
|
874
|
+
*/
|
|
875
|
+
pipedFrom: Unless<IsSync, Result[], []>;
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
The file and arguments that were run.
|
|
879
|
+
*/
|
|
880
|
+
command: string;
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
Same as `command` but escaped.
|
|
884
|
+
*/
|
|
885
|
+
escapedCommand: string;
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
The current directory in which the command was run.
|
|
889
|
+
*/
|
|
890
|
+
cwd: string;
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
Duration of the subprocess, in milliseconds.
|
|
894
|
+
*/
|
|
895
|
+
durationMs: number;
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
Whether the subprocess failed to run.
|
|
899
|
+
|
|
900
|
+
When this is `true`, the result is an `ExecaError` instance with additional error-related properties.
|
|
901
|
+
*/
|
|
902
|
+
failed: boolean;
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
Whether the subprocess timed out due to the `timeout` option.
|
|
906
|
+
*/
|
|
907
|
+
timedOut: boolean;
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
Whether the subprocess was canceled using the `cancelSignal` option.
|
|
911
|
+
*/
|
|
912
|
+
isCanceled: boolean;
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
Whether the subprocess was canceled using both the `cancelSignal` and the `gracefulCancel` options.
|
|
916
|
+
*/
|
|
917
|
+
isGracefullyCanceled: boolean;
|
|
918
|
+
|
|
919
|
+
/**
|
|
920
|
+
Whether the subprocess failed because its output was larger than the `maxBuffer` option.
|
|
921
|
+
*/
|
|
922
|
+
isMaxBuffer: boolean;
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
Whether the subprocess was terminated by a signal (like `SIGTERM`) sent by either:
|
|
926
|
+
- The current process.
|
|
927
|
+
- Another process. This case is [not supported on Windows](https://nodejs.org/api/process.html#signal-events).
|
|
928
|
+
*/
|
|
929
|
+
isTerminated: boolean;
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
Whether the subprocess was terminated by the `SIGKILL` signal sent by the `forceKillAfterDelay` option.
|
|
933
|
+
*/
|
|
934
|
+
isForcefullyTerminated: boolean;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
The numeric [exit code](https://en.wikipedia.org/wiki/Exit_status) of the subprocess that was run.
|
|
938
|
+
|
|
939
|
+
This is `undefined` when the subprocess could not be spawned or was terminated by a signal.
|
|
940
|
+
*/
|
|
941
|
+
exitCode?: number;
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
The name of the signal (like `SIGTERM`) that terminated the subprocess, sent by either:
|
|
945
|
+
- The current process.
|
|
946
|
+
- Another process. This case is [not supported on Windows](https://nodejs.org/api/process.html#signal-events).
|
|
947
|
+
|
|
948
|
+
If a signal terminated the subprocess, this property is defined and included in the error message. Otherwise it is `undefined`.
|
|
949
|
+
*/
|
|
950
|
+
signal?: keyof SignalConstants;
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
A human-friendly description of the signal that was used to terminate the subprocess.
|
|
954
|
+
|
|
955
|
+
If a signal terminated the subprocess, this property is defined and included in the error message. Otherwise it is `undefined`. It is also `undefined` when the signal is very uncommon which should seldomly happen.
|
|
956
|
+
*/
|
|
957
|
+
signalDescription?: string;
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
Error message when the subprocess failed to run.
|
|
961
|
+
*/
|
|
962
|
+
message?: string;
|
|
963
|
+
|
|
964
|
+
/**
|
|
965
|
+
This is the same as `error.message` except it does not include the subprocess output.
|
|
966
|
+
*/
|
|
967
|
+
shortMessage?: string;
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
Original error message. This is the same as `error.message` excluding the subprocess output and some additional information added by Execa.
|
|
971
|
+
|
|
972
|
+
This exists only in specific instances, such as during a timeout.
|
|
973
|
+
*/
|
|
974
|
+
originalMessage?: string;
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
Underlying error, if there is one. For example, this is set by `subprocess.kill(error)`.
|
|
978
|
+
|
|
979
|
+
This is usually an `Error` instance.
|
|
980
|
+
*/
|
|
981
|
+
cause?: unknown;
|
|
982
|
+
|
|
983
|
+
/**
|
|
984
|
+
Node.js-specific [error code](https://nodejs.org/api/errors.html#errorcode), when available.
|
|
985
|
+
*/
|
|
986
|
+
code?: string;
|
|
987
|
+
|
|
988
|
+
// We cannot `extend Error` because `message` must be optional. So we copy its types here.
|
|
989
|
+
readonly name?: Error['name'];
|
|
990
|
+
stack?: Error['stack'];
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
type SuccessResult<
|
|
994
|
+
IsSync extends boolean = boolean,
|
|
995
|
+
OptionsType extends CommonOptions = CommonOptions,
|
|
996
|
+
> = InstanceType<typeof CommonResult<IsSync, OptionsType>> & OmitErrorIfReject<OptionsType['reject']>;
|
|
997
|
+
|
|
998
|
+
type OmitErrorIfReject<RejectOption extends CommonOptions['reject']> = Record<ErrorProperties, RejectOption extends false ? unknown : never>;
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
Result of a subprocess successful execution.
|
|
1002
|
+
|
|
1003
|
+
When the subprocess fails, it is rejected with an `ExecaError` instead.
|
|
1004
|
+
*/
|
|
1005
|
+
type Result<OptionsType extends Options = Options> = SuccessResult<false, OptionsType>;
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
Result of a subprocess successful execution.
|
|
1009
|
+
|
|
1010
|
+
When the subprocess fails, it is rejected with an `ExecaError` instead.
|
|
1011
|
+
*/
|
|
1012
|
+
type SyncResult<OptionsType extends SyncOptions = SyncOptions> = SuccessResult<true, OptionsType>;
|
|
1013
|
+
|
|
1014
|
+
type VerboseOption = FdGenericOption<
|
|
1015
|
+
| 'none'
|
|
1016
|
+
| 'short'
|
|
1017
|
+
| 'full'
|
|
1018
|
+
| VerboseFunction
|
|
1019
|
+
>;
|
|
1020
|
+
|
|
1021
|
+
type VerboseFunction = (verboseLine: string, verboseObject: MinimalVerboseObject) => string | void;
|
|
1022
|
+
|
|
1023
|
+
type GenericVerboseObject = {
|
|
1024
|
+
/**
|
|
1025
|
+
Event type. This can be:
|
|
1026
|
+
- `'command'`: subprocess start
|
|
1027
|
+
- `'output'`: `stdout`/`stderr` output
|
|
1028
|
+
- `'ipc'`: IPC output
|
|
1029
|
+
- `'error'`: subprocess failure
|
|
1030
|
+
- `'duration'`: subprocess success or failure
|
|
1031
|
+
*/
|
|
1032
|
+
type: 'command' | 'output' | 'ipc' | 'error' | 'duration';
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
Depending on `verboseObject.type`, this is:
|
|
1036
|
+
- `'command'`: the `result.escapedCommand`
|
|
1037
|
+
- `'output'`: one line from `result.stdout` or `result.stderr`
|
|
1038
|
+
- `'ipc'`: one IPC message from `result.ipcOutput`
|
|
1039
|
+
- `'error'`: the `error.shortMessage`
|
|
1040
|
+
- `'duration'`: the `result.durationMs`
|
|
1041
|
+
*/
|
|
1042
|
+
message: string;
|
|
1043
|
+
|
|
1044
|
+
/**
|
|
1045
|
+
The file and arguments that were run. This is the same as `result.escapedCommand`.
|
|
1046
|
+
*/
|
|
1047
|
+
escapedCommand: string;
|
|
1048
|
+
|
|
1049
|
+
/**
|
|
1050
|
+
Serial number identifying the subprocess within the current process. It is incremented from `'0'`.
|
|
1051
|
+
|
|
1052
|
+
This is helpful when multiple subprocesses are running at the same time.
|
|
1053
|
+
|
|
1054
|
+
This is similar to a [PID](https://en.wikipedia.org/wiki/Process_identifier) except it has no maximum limit, which means it never repeats. Also, it is usually shorter.
|
|
1055
|
+
*/
|
|
1056
|
+
commandId: string;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
Event date/time.
|
|
1060
|
+
*/
|
|
1061
|
+
timestamp: Date;
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
Whether another subprocess is piped into this subprocess. This is `false` when `result.pipedFrom` is empty.
|
|
1065
|
+
*/
|
|
1066
|
+
piped: boolean;
|
|
1067
|
+
};
|
|
1068
|
+
|
|
1069
|
+
type MinimalVerboseObject = GenericVerboseObject & {
|
|
1070
|
+
// We cannot use the `CommonOptions` type because it would make this type recursive
|
|
1071
|
+
options: object;
|
|
1072
|
+
result?: never;
|
|
1073
|
+
};
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
Subprocess event object, for logging purpose, using the `verbose` option and `execa()`.
|
|
1077
|
+
*/
|
|
1078
|
+
type VerboseObject = GenericVerboseObject & {
|
|
1079
|
+
/**
|
|
1080
|
+
The options passed to the subprocess.
|
|
1081
|
+
*/
|
|
1082
|
+
options: Options;
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
Subprocess result.
|
|
1086
|
+
|
|
1087
|
+
This is `undefined` if `verboseObject.type` is `'command'`, `'output'` or `'ipc'`.
|
|
1088
|
+
*/
|
|
1089
|
+
result?: Result;
|
|
1090
|
+
};
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
Subprocess event object, for logging purpose, using the `verbose` option and `execaSync()`.
|
|
1094
|
+
*/
|
|
1095
|
+
type SyncVerboseObject = GenericVerboseObject & {
|
|
1096
|
+
/**
|
|
1097
|
+
The options passed to the subprocess.
|
|
1098
|
+
*/
|
|
1099
|
+
options: SyncOptions;
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
Subprocess result.
|
|
1103
|
+
|
|
1104
|
+
This is `undefined` if `verboseObject.type` is `'command'`, `'output'` or `'ipc'`.
|
|
1105
|
+
*/
|
|
1106
|
+
result?: SyncResult;
|
|
1107
|
+
};
|
|
1108
|
+
|
|
1109
|
+
type ChunkForEncoding<Encoding extends EncodingOption> = Encoding extends BinaryEncodingOption ? Uint8Array : string;
|
|
1110
|
+
|
|
1111
|
+
type CommonOptions<
|
|
1112
|
+
IsSync extends boolean = boolean,
|
|
1113
|
+
Encoding extends EncodingOption = EncodingOption,
|
|
1114
|
+
> = {
|
|
1115
|
+
/**
|
|
1116
|
+
Prefer locally installed binaries when looking for a binary to execute.
|
|
1117
|
+
|
|
1118
|
+
@default `true` with `$`, `false` otherwise
|
|
1119
|
+
*/
|
|
1120
|
+
readonly preferLocal?: boolean;
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
Preferred path to find locally installed binaries, when using the `preferLocal` option.
|
|
1124
|
+
|
|
1125
|
+
@default `cwd` option
|
|
1126
|
+
*/
|
|
1127
|
+
readonly localDir?: string | URL;
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
If `true`, runs with Node.js. The first argument must be a Node.js file.
|
|
1131
|
+
|
|
1132
|
+
The subprocess inherits the current Node.js [CLI flags](https://nodejs.org/api/cli.html#options) and version. This can be overridden using the `nodeOptions` and `nodePath` options.
|
|
1133
|
+
|
|
1134
|
+
@default `true` with `execaNode()`, `false` otherwise
|
|
1135
|
+
*/
|
|
1136
|
+
readonly node?: boolean;
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
List of [CLI flags](https://nodejs.org/api/cli.html#cli_options) passed to the Node.js executable.
|
|
1140
|
+
|
|
1141
|
+
Requires the `node` option to be `true`.
|
|
1142
|
+
|
|
1143
|
+
@default [`process.execArgv`](https://nodejs.org/api/process.html#process_process_execargv) (current Node.js CLI flags)
|
|
1144
|
+
*/
|
|
1145
|
+
readonly nodeOptions?: readonly string[];
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
Path to the Node.js executable.
|
|
1149
|
+
|
|
1150
|
+
Requires the `node` option to be `true`.
|
|
1151
|
+
|
|
1152
|
+
@default [`process.execPath`](https://nodejs.org/api/process.html#process_process_execpath) (current Node.js executable)
|
|
1153
|
+
*/
|
|
1154
|
+
readonly nodePath?: string | URL;
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
If `true`, runs the command inside of a [shell](https://en.wikipedia.org/wiki/Shell_(computing)).
|
|
1158
|
+
|
|
1159
|
+
Uses [`/bin/sh`](https://en.wikipedia.org/wiki/Unix_shell) on UNIX and [`cmd.exe`](https://en.wikipedia.org/wiki/Cmd.exe) on Windows. A different shell can be specified as a string. The shell should understand the `-c` switch on UNIX or `/d /s /c` on Windows.
|
|
1160
|
+
|
|
1161
|
+
We recommend against using this option.
|
|
1162
|
+
|
|
1163
|
+
@default false
|
|
1164
|
+
*/
|
|
1165
|
+
readonly shell?: boolean | string | URL;
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
Current [working directory](https://en.wikipedia.org/wiki/Working_directory) of the subprocess.
|
|
1169
|
+
|
|
1170
|
+
This is also used to resolve the `nodePath` option when it is a relative path.
|
|
1171
|
+
|
|
1172
|
+
@default process.cwd()
|
|
1173
|
+
*/
|
|
1174
|
+
readonly cwd?: string | URL;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
[Environment variables](https://en.wikipedia.org/wiki/Environment_variable).
|
|
1178
|
+
|
|
1179
|
+
Unless the `extendEnv` option is `false`, the subprocess also uses the current process' environment variables ([`process.env`](https://nodejs.org/api/process.html#processenv)).
|
|
1180
|
+
|
|
1181
|
+
@default [process.env](https://nodejs.org/api/process.html#processenv)
|
|
1182
|
+
*/
|
|
1183
|
+
readonly env?: Readonly<Partial<Record<string, string>>>;
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
If `true`, the subprocess uses both the `env` option and the current process' environment variables ([`process.env`](https://nodejs.org/api/process.html#processenv)).
|
|
1187
|
+
If `false`, only the `env` option is used, not `process.env`.
|
|
1188
|
+
|
|
1189
|
+
@default true
|
|
1190
|
+
*/
|
|
1191
|
+
readonly extendEnv?: boolean;
|
|
1192
|
+
|
|
1193
|
+
/**
|
|
1194
|
+
Write some input to the subprocess' [`stdin`](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)).
|
|
1195
|
+
|
|
1196
|
+
See also the `inputFile` and `stdin` options.
|
|
1197
|
+
*/
|
|
1198
|
+
readonly input?: string | Uint8Array | Readable;
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
Use a file as input to the subprocess' [`stdin`](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)).
|
|
1202
|
+
|
|
1203
|
+
See also the `input` and `stdin` options.
|
|
1204
|
+
*/
|
|
1205
|
+
readonly inputFile?: string | URL;
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
How to setup the subprocess' [standard input](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)). This can be `'pipe'`, `'overlapped'`, `'ignore`, `'inherit'`, a file descriptor integer, a Node.js `Readable` stream, a web `ReadableStream`, a `{ file: 'path' }` object, a file URL, an `Iterable`, an `AsyncIterable`, an `Uint8Array`, a generator function, a `Duplex` or a web `TransformStream`.
|
|
1209
|
+
|
|
1210
|
+
This can be an array of values such as `['inherit', 'pipe']` or `[fileUrl, 'pipe']`.
|
|
1211
|
+
|
|
1212
|
+
@default `'inherit'` with `$`, `'pipe'` otherwise
|
|
1213
|
+
*/
|
|
1214
|
+
readonly stdin?: StdinOptionCommon<IsSync, boolean, ChunkForEncoding<Encoding>>;
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
How to setup the subprocess' [standard output](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)). This can be `'pipe'`, `'overlapped'`, `'ignore`, `'inherit'`, a file descriptor integer, a Node.js `Writable` stream, a web `WritableStream`, a `{ file: 'path' }` object, a file URL, a generator function, a `Duplex` or a web `TransformStream`.
|
|
1218
|
+
|
|
1219
|
+
This can be an array of values such as `['inherit', 'pipe']` or `[fileUrl, 'pipe']`.
|
|
1220
|
+
|
|
1221
|
+
@default 'pipe'
|
|
1222
|
+
*/
|
|
1223
|
+
readonly stdout?: StdoutStderrOptionCommon<IsSync, boolean, ChunkForEncoding<Encoding>>;
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
How to setup the subprocess' [standard error](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)). This can be `'pipe'`, `'overlapped'`, `'ignore`, `'inherit'`, a file descriptor integer, a Node.js `Writable` stream, a web `WritableStream`, a `{ file: 'path' }` object, a file URL, a generator function, a `Duplex` or a web `TransformStream`.
|
|
1227
|
+
|
|
1228
|
+
This can be an array of values such as `['inherit', 'pipe']` or `[fileUrl, 'pipe']`.
|
|
1229
|
+
|
|
1230
|
+
@default 'pipe'
|
|
1231
|
+
*/
|
|
1232
|
+
readonly stderr?: StdoutStderrOptionCommon<IsSync, boolean, ChunkForEncoding<Encoding>>;
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
Like the `stdin`, `stdout` and `stderr` options but for all [file descriptors](https://en.wikipedia.org/wiki/File_descriptor) at once. For example, `{stdio: ['ignore', 'pipe', 'pipe']}` is the same as `{stdin: 'ignore', stdout: 'pipe', stderr: 'pipe'}`.
|
|
1236
|
+
|
|
1237
|
+
A single string can be used as a shortcut.
|
|
1238
|
+
|
|
1239
|
+
The array can have more than 3 items, to create additional file descriptors beyond `stdin`/`stdout`/`stderr`.
|
|
1240
|
+
|
|
1241
|
+
@default 'pipe'
|
|
1242
|
+
*/
|
|
1243
|
+
readonly stdio?: StdioOptionsProperty<IsSync, ChunkForEncoding<Encoding>>;
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
Add a `subprocess.all` stream and a `result.all` property. They contain the combined/interleaved output of the subprocess' `stdout` and `stderr`.
|
|
1247
|
+
|
|
1248
|
+
@default false
|
|
1249
|
+
*/
|
|
1250
|
+
readonly all?: boolean;
|
|
1251
|
+
|
|
1252
|
+
/**
|
|
1253
|
+
If the subprocess outputs text, specifies its character encoding, either [`'utf8'`](https://en.wikipedia.org/wiki/UTF-8) or [`'utf16le'`](https://en.wikipedia.org/wiki/UTF-16).
|
|
1254
|
+
|
|
1255
|
+
If it outputs binary data instead, this should be either:
|
|
1256
|
+
- `'buffer'`: returns the binary output as an `Uint8Array`.
|
|
1257
|
+
- [`'hex'`](https://en.wikipedia.org/wiki/Hexadecimal), [`'base64'`](https://en.wikipedia.org/wiki/Base64), [`'base64url'`](https://en.wikipedia.org/wiki/Base64#RFC_4648), [`'latin1'`](https://nodejs.org/api/buffer.html#buffers-and-character-encodings) or [`'ascii'`](https://nodejs.org/api/buffer.html#buffers-and-character-encodings): encodes the binary output as a string.
|
|
1258
|
+
|
|
1259
|
+
The output is available with `result.stdout`, `result.stderr` and `result.stdio`.
|
|
1260
|
+
|
|
1261
|
+
@default 'utf8'
|
|
1262
|
+
*/
|
|
1263
|
+
readonly encoding?: Encoding;
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
Set `result.stdout`, `result.stderr`, `result.all` and `result.stdio` as arrays of strings, splitting the subprocess' output into lines.
|
|
1267
|
+
|
|
1268
|
+
This cannot be used if the `encoding` option is binary.
|
|
1269
|
+
|
|
1270
|
+
By default, this applies to both `stdout` and `stderr`, but different values can also be passed.
|
|
1271
|
+
|
|
1272
|
+
@default false
|
|
1273
|
+
*/
|
|
1274
|
+
readonly lines?: FdGenericOption<boolean>;
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
Strip the final [newline character](https://en.wikipedia.org/wiki/Newline) from the output.
|
|
1278
|
+
|
|
1279
|
+
If the `lines` option is true, this applies to each output line instead.
|
|
1280
|
+
|
|
1281
|
+
By default, this applies to both `stdout` and `stderr`, but different values can also be passed.
|
|
1282
|
+
|
|
1283
|
+
@default true
|
|
1284
|
+
*/
|
|
1285
|
+
readonly stripFinalNewline?: FdGenericOption<boolean>;
|
|
1286
|
+
|
|
1287
|
+
/**
|
|
1288
|
+
Largest amount of data allowed on `stdout`, `stderr` and `stdio`.
|
|
1289
|
+
|
|
1290
|
+
By default, this applies to both `stdout` and `stderr`, but different values can also be passed.
|
|
1291
|
+
|
|
1292
|
+
When reached, `error.isMaxBuffer` becomes `true`.
|
|
1293
|
+
|
|
1294
|
+
@default 100_000_000
|
|
1295
|
+
*/
|
|
1296
|
+
readonly maxBuffer?: FdGenericOption<number>;
|
|
1297
|
+
|
|
1298
|
+
/**
|
|
1299
|
+
When `buffer` is `false`, the `result.stdout`, `result.stderr`, `result.all` and `result.stdio` properties are not set.
|
|
1300
|
+
|
|
1301
|
+
By default, this applies to both `stdout` and `stderr`, but different values can also be passed.
|
|
1302
|
+
|
|
1303
|
+
@default true
|
|
1304
|
+
*/
|
|
1305
|
+
readonly buffer?: FdGenericOption<boolean>;
|
|
1306
|
+
|
|
1307
|
+
/**
|
|
1308
|
+
Enables exchanging messages with the subprocess using `subprocess.sendMessage(message)`, `subprocess.getOneMessage()` and `subprocess.getEachMessage()`.
|
|
1309
|
+
|
|
1310
|
+
The subprocess must be a Node.js file.
|
|
1311
|
+
|
|
1312
|
+
@default `true` if the `node`, `ipcInput` or `gracefulCancel` option is set, `false` otherwise
|
|
1313
|
+
*/
|
|
1314
|
+
readonly ipc?: Unless<IsSync, boolean>;
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
Specify the kind of serialization used for sending messages between subprocesses when using the `ipc` option.
|
|
1318
|
+
|
|
1319
|
+
@default 'advanced'
|
|
1320
|
+
*/
|
|
1321
|
+
readonly serialization?: Unless<IsSync, 'json' | 'advanced'>;
|
|
1322
|
+
|
|
1323
|
+
/**
|
|
1324
|
+
Sends an IPC message when the subprocess starts.
|
|
1325
|
+
|
|
1326
|
+
The subprocess must be a Node.js file. The value's type depends on the `serialization` option.
|
|
1327
|
+
*/
|
|
1328
|
+
readonly ipcInput?: Unless<IsSync, Message>;
|
|
1329
|
+
|
|
1330
|
+
/**
|
|
1331
|
+
If `verbose` is `'short'`, prints the command on [`stderr`](https://en.wikipedia.org/wiki/Standard_streams#Standard_error_(stderr)): its file, arguments, duration and (if it failed) error message.
|
|
1332
|
+
|
|
1333
|
+
If `verbose` is `'full'` or a function, the command's [`stdout`](https://en.wikipedia.org/wiki/Standard_streams#Standard_output_(stdout)), `stderr` and IPC messages are also printed.
|
|
1334
|
+
|
|
1335
|
+
A function can be passed to customize logging.
|
|
1336
|
+
|
|
1337
|
+
By default, this applies to both `stdout` and `stderr`, but different values can also be passed.
|
|
1338
|
+
|
|
1339
|
+
@default 'none'
|
|
1340
|
+
*/
|
|
1341
|
+
readonly verbose?: VerboseOption;
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
Setting this to `false` resolves the result's promise with the error instead of rejecting it.
|
|
1345
|
+
|
|
1346
|
+
@default true
|
|
1347
|
+
*/
|
|
1348
|
+
readonly reject?: boolean;
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
If `timeout` is greater than `0`, the subprocess will be terminated if it runs for longer than that amount of milliseconds.
|
|
1352
|
+
|
|
1353
|
+
On timeout, `error.timedOut` becomes `true`.
|
|
1354
|
+
|
|
1355
|
+
@default 0
|
|
1356
|
+
*/
|
|
1357
|
+
readonly timeout?: number;
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
When the `cancelSignal` is [aborted](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort), terminate the subprocess using a `SIGTERM` signal.
|
|
1361
|
+
|
|
1362
|
+
When aborted, `error.isCanceled` becomes `true`.
|
|
1363
|
+
|
|
1364
|
+
@example
|
|
1365
|
+
```
|
|
1366
|
+
import {execaNode} from 'execa';
|
|
1367
|
+
|
|
1368
|
+
const controller = new AbortController();
|
|
1369
|
+
const cancelSignal = controller.signal;
|
|
1370
|
+
|
|
1371
|
+
setTimeout(() => {
|
|
1372
|
+
controller.abort();
|
|
1373
|
+
}, 5000);
|
|
1374
|
+
|
|
1375
|
+
try {
|
|
1376
|
+
await execaNode({cancelSignal})`build.js`;
|
|
1377
|
+
} catch (error) {
|
|
1378
|
+
if (error.isCanceled) {
|
|
1379
|
+
console.error('Canceled by cancelSignal.');
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
throw error;
|
|
1383
|
+
}
|
|
1384
|
+
```
|
|
1385
|
+
*/
|
|
1386
|
+
readonly cancelSignal?: Unless<IsSync, AbortSignal>;
|
|
1387
|
+
|
|
1388
|
+
/**
|
|
1389
|
+
When the `cancelSignal` option is [aborted](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort), do not send any `SIGTERM`. Instead, abort the [`AbortSignal`](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) returned by `getCancelSignal()`. The subprocess should use it to terminate gracefully.
|
|
1390
|
+
|
|
1391
|
+
The subprocess must be a Node.js file.
|
|
1392
|
+
|
|
1393
|
+
When aborted, `error.isGracefullyCanceled` becomes `true`.
|
|
1394
|
+
|
|
1395
|
+
@default false
|
|
1396
|
+
*/
|
|
1397
|
+
readonly gracefulCancel?: Unless<IsSync, boolean>;
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
If the subprocess is terminated but does not exit, forcefully exit it by sending [`SIGKILL`](https://en.wikipedia.org/wiki/Signal_(IPC)#SIGKILL).
|
|
1401
|
+
|
|
1402
|
+
When this happens, `error.isForcefullyTerminated` becomes `true`.
|
|
1403
|
+
|
|
1404
|
+
@default 5000
|
|
1405
|
+
*/
|
|
1406
|
+
readonly forceKillAfterDelay?: Unless<IsSync, number | boolean>;
|
|
1407
|
+
|
|
1408
|
+
/**
|
|
1409
|
+
Default [signal](https://en.wikipedia.org/wiki/Signal_(IPC)) used to terminate the subprocess.
|
|
1410
|
+
|
|
1411
|
+
This can be either a name (like `'SIGTERM'`) or a number (like `9`).
|
|
1412
|
+
|
|
1413
|
+
@default 'SIGTERM'
|
|
1414
|
+
*/
|
|
1415
|
+
readonly killSignal?: keyof SignalConstants | number;
|
|
1416
|
+
|
|
1417
|
+
/**
|
|
1418
|
+
Run the subprocess independently from the current process.
|
|
1419
|
+
|
|
1420
|
+
@default false
|
|
1421
|
+
*/
|
|
1422
|
+
readonly detached?: Unless<IsSync, boolean>;
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
Kill the subprocess when the current process exits.
|
|
1426
|
+
|
|
1427
|
+
@default true
|
|
1428
|
+
*/
|
|
1429
|
+
readonly cleanup?: Unless<IsSync, boolean>;
|
|
1430
|
+
|
|
1431
|
+
/**
|
|
1432
|
+
When the subprocess is terminated by Execa, also terminate all of its descendant processes, instead of only the subprocess itself.
|
|
1433
|
+
|
|
1434
|
+
This is useful when the subprocess spawns its own processes, such as when using the `shell` option.
|
|
1435
|
+
|
|
1436
|
+
On Unix, this spawns the subprocess in its own [process group](https://en.wikipedia.org/wiki/Process_group). On Windows, this uses [`taskkill`](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/taskkill).
|
|
1437
|
+
|
|
1438
|
+
This is best-effort: descendant processes that create their own process group or session are not terminated.
|
|
1439
|
+
|
|
1440
|
+
@default false
|
|
1441
|
+
*/
|
|
1442
|
+
readonly killDescendants?: Unless<IsSync, boolean>;
|
|
1443
|
+
|
|
1444
|
+
/**
|
|
1445
|
+
Sets the [user identifier](https://en.wikipedia.org/wiki/User_identifier) of the subprocess.
|
|
1446
|
+
|
|
1447
|
+
@default current user identifier
|
|
1448
|
+
*/
|
|
1449
|
+
readonly uid?: number;
|
|
1450
|
+
|
|
1451
|
+
/**
|
|
1452
|
+
Sets the [group identifier](https://en.wikipedia.org/wiki/Group_identifier) of the subprocess.
|
|
1453
|
+
|
|
1454
|
+
@default current group identifier
|
|
1455
|
+
*/
|
|
1456
|
+
readonly gid?: number;
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
Value of [`argv[0]`](https://nodejs.org/api/process.html#processargv0) sent to the subprocess.
|
|
1460
|
+
|
|
1461
|
+
@default file being executed
|
|
1462
|
+
*/
|
|
1463
|
+
readonly argv0?: string;
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
On Windows, do not create a new console window.
|
|
1467
|
+
|
|
1468
|
+
@default true
|
|
1469
|
+
*/
|
|
1470
|
+
readonly windowsHide?: boolean;
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
If `false`, escapes the command arguments on Windows.
|
|
1474
|
+
|
|
1475
|
+
@default `true` if the `shell` option is `true`, `false` otherwise
|
|
1476
|
+
*/
|
|
1477
|
+
readonly windowsVerbatimArguments?: boolean;
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
Subprocess options.
|
|
1482
|
+
|
|
1483
|
+
Some options are related to the subprocess output: `verbose`, `lines`, `stripFinalNewline`, `buffer`, `maxBuffer`. By default, those options apply to all file descriptors (`stdout`, `stderr`, etc.). A plain object can be passed instead to apply them to only `stdout`, `stderr`, `all` (both stdout and stderr), `ipc`, `fd3`, etc.
|
|
1484
|
+
|
|
1485
|
+
@example
|
|
1486
|
+
|
|
1487
|
+
```
|
|
1488
|
+
// Same value for stdout and stderr
|
|
1489
|
+
await execa({verbose: 'full'})`npm run build`;
|
|
1490
|
+
|
|
1491
|
+
// Different values for stdout and stderr
|
|
1492
|
+
await execa({verbose: {stdout: 'none', stderr: 'full'}})`npm run build`;
|
|
1493
|
+
```
|
|
1494
|
+
*/
|
|
1495
|
+
type TextOptions<IsSync extends boolean> = CommonOptions<IsSync, TextEncodingOption | undefined>;
|
|
1496
|
+
type BinaryOptions<IsSync extends boolean> = Omit<CommonOptions<IsSync, BinaryEncodingOption>, 'encoding'> & {
|
|
1497
|
+
readonly encoding: BinaryEncodingOption;
|
|
1498
|
+
};
|
|
1499
|
+
|
|
1500
|
+
type Options = TextOptions<false> | BinaryOptions<false>;
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
Subprocess options, with synchronous methods.
|
|
1504
|
+
|
|
1505
|
+
Some options are related to the subprocess output: `verbose`, `lines`, `stripFinalNewline`, `buffer`, `maxBuffer`. By default, those options apply to all file descriptors (`stdout`, `stderr`, etc.). A plain object can be passed instead to apply them to only `stdout`, `stderr`, `all` (both stdout and stderr), `ipc`, `fd3`, etc.
|
|
1506
|
+
|
|
1507
|
+
@example
|
|
1508
|
+
|
|
1509
|
+
```
|
|
1510
|
+
// Same value for stdout and stderr
|
|
1511
|
+
execaSync({verbose: 'full'})`npm run build`;
|
|
1512
|
+
|
|
1513
|
+
// Different values for stdout and stderr
|
|
1514
|
+
execaSync({verbose: {stdout: 'none', stderr: 'full'}})`npm run build`;
|
|
1515
|
+
```
|
|
1516
|
+
*/
|
|
1517
|
+
type SyncOptions = TextOptions<true> | BinaryOptions<true>;
|
|
1518
|
+
|
|
1519
|
+
type StricterOptions<
|
|
1520
|
+
WideOptions extends CommonOptions,
|
|
1521
|
+
StrictOptions extends CommonOptions,
|
|
1522
|
+
> = WideOptions extends StrictOptions ? WideOptions : StrictOptions;
|
|
1523
|
+
|
|
1524
|
+
type TemplateExpressionItem =
|
|
1525
|
+
| string
|
|
1526
|
+
| number
|
|
1527
|
+
| Result
|
|
1528
|
+
| SyncResult;
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
Value allowed inside `${...}` when using the template string syntax.
|
|
1532
|
+
*/
|
|
1533
|
+
type TemplateExpression = TemplateExpressionItem | readonly TemplateExpressionItem[];
|
|
1534
|
+
|
|
1535
|
+
// `...${...}...` template syntax
|
|
1536
|
+
type TemplateString = readonly [TemplateStringsArray, ...readonly TemplateExpression[]];
|
|
1537
|
+
|
|
1538
|
+
// `subprocess.pipe()` options
|
|
1539
|
+
type PipeOptions = {
|
|
1540
|
+
/**
|
|
1541
|
+
Which stream to pipe from the source subprocess. A [file descriptor](https://en.wikipedia.org/wiki/File_descriptor) like `"fd3"` can also be passed.
|
|
1542
|
+
|
|
1543
|
+
`"all"` pipes both `stdout` and `stderr`. This requires the `all` option to be `true`.
|
|
1544
|
+
*/
|
|
1545
|
+
readonly from?: FromOption;
|
|
1546
|
+
|
|
1547
|
+
/**
|
|
1548
|
+
Which stream to pipe to the destination subprocess. A [file descriptor](https://en.wikipedia.org/wiki/File_descriptor) like `"fd3"` can also be passed.
|
|
1549
|
+
*/
|
|
1550
|
+
readonly to?: ToOption;
|
|
1551
|
+
|
|
1552
|
+
/**
|
|
1553
|
+
Unpipe the subprocess when the signal aborts.
|
|
1554
|
+
*/
|
|
1555
|
+
readonly unpipeSignal?: AbortSignal;
|
|
1556
|
+
};
|
|
1557
|
+
|
|
1558
|
+
// Methods forwarded from the destination subprocess to the return value of `subprocess.pipe()`, so its output can be iterated, converted to a stream, or used for IPC.
|
|
1559
|
+
type PipeResultMethods<OptionsType extends Options> =
|
|
1560
|
+
& SubprocessResultMethods<OptionsType>
|
|
1561
|
+
& IpcMethods<HasIpc<OptionsType>, OptionsType['serialization']>;
|
|
1562
|
+
|
|
1563
|
+
// Same as `PipeResultMethods`, but when the destination is another `execa()` call, so its own option types are kept.
|
|
1564
|
+
// The base `Options` is only used to compute the property names, which do not depend on the specific options.
|
|
1565
|
+
type PipeResultMethodsFrom<Destination extends ResultPromise> = Pick<Destination, keyof PipeResultMethods<Options>>;
|
|
1566
|
+
|
|
1567
|
+
// `subprocess.pipe()`
|
|
1568
|
+
type PipableSubprocess = {
|
|
1569
|
+
/**
|
|
1570
|
+
[Pipe](https://nodejs.org/api/stream.html#readablepipedestination-options) the subprocess' `stdout` to a second Execa subprocess' `stdin`. This resolves with that second subprocess' result. If either subprocess is rejected, this is rejected with that subprocess' error instead.
|
|
1571
|
+
|
|
1572
|
+
This follows the same syntax as `execa(file, arguments?, options?)` except both regular options and pipe-specific options can be specified.
|
|
1573
|
+
|
|
1574
|
+
Like a subprocess, the return value can be [iterated](https://github.com/sindresorhus/execa/blob/main/docs/lines.md#progressive-splitting), [converted to a stream](https://github.com/sindresorhus/execa/blob/main/docs/streams.md#converting-a-subprocess-to-a-stream), or used for [IPC](https://github.com/sindresorhus/execa/blob/main/docs/ipc.md) with the destination subprocess.
|
|
1575
|
+
*/
|
|
1576
|
+
pipe<OptionsType extends Options & PipeOptions = {}>(
|
|
1577
|
+
file: string | URL,
|
|
1578
|
+
arguments?: readonly string[],
|
|
1579
|
+
options?: OptionsType,
|
|
1580
|
+
): Promise<Result<OptionsType>> & PipableSubprocess & PipeResultMethods<OptionsType>;
|
|
1581
|
+
pipe<OptionsType extends Options & PipeOptions = {}>(
|
|
1582
|
+
file: string | URL,
|
|
1583
|
+
options?: OptionsType,
|
|
1584
|
+
): Promise<Result<OptionsType>> & PipableSubprocess & PipeResultMethods<OptionsType>;
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
Like `subprocess.pipe(file, arguments?, options?)` but using a `command` template string instead. This follows the same syntax as `$`.
|
|
1588
|
+
*/
|
|
1589
|
+
pipe(templates: TemplateStringsArray, ...expressions: readonly TemplateExpression[]):
|
|
1590
|
+
Promise<Result<{}>> & PipableSubprocess & PipeResultMethods<{}>;
|
|
1591
|
+
pipe<OptionsType extends Options & PipeOptions = {}>(options: OptionsType):
|
|
1592
|
+
(templates: TemplateStringsArray, ...expressions: readonly TemplateExpression[])
|
|
1593
|
+
=> Promise<Result<OptionsType>> & PipableSubprocess & PipeResultMethods<OptionsType>;
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
Like `subprocess.pipe(file, arguments?, options?)` but using the return value of another `execa()` call instead.
|
|
1597
|
+
*/
|
|
1598
|
+
pipe<Destination extends ResultPromise>(destination: Destination, options?: PipeOptions):
|
|
1599
|
+
Promise<Awaited<Destination>> & PipableSubprocess & PipeResultMethodsFrom<Destination>;
|
|
1600
|
+
};
|
|
1601
|
+
|
|
1602
|
+
// `subprocess.readable|duplex|iterable()` options
|
|
1603
|
+
type ReadableOptions = {
|
|
1604
|
+
/**
|
|
1605
|
+
Which stream to read from the subprocess. A [file descriptor](https://en.wikipedia.org/wiki/File_descriptor) like `"fd3"` can also be passed.
|
|
1606
|
+
|
|
1607
|
+
`"all"` reads both `stdout` and `stderr`. This requires the `all` option to be `true`.
|
|
1608
|
+
|
|
1609
|
+
@default 'stdout'
|
|
1610
|
+
*/
|
|
1611
|
+
readonly from?: FromOption;
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
If `false`, iterates over lines. Each line is a string.
|
|
1615
|
+
|
|
1616
|
+
If `true`, iterates over arbitrary chunks of data. Each line is an [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) (with `subprocess.iterable()`) or a [`Buffer`](https://nodejs.org/api/buffer.html#class-buffer) (with `subprocess.readable()`/`subprocess.duplex()`).
|
|
1617
|
+
|
|
1618
|
+
This is always `true` when the `encoding` option is binary.
|
|
1619
|
+
|
|
1620
|
+
@default `false` with `subprocess.iterable()`, `true` otherwise
|
|
1621
|
+
*/
|
|
1622
|
+
readonly binary?: boolean;
|
|
1623
|
+
|
|
1624
|
+
/**
|
|
1625
|
+
If both this option and the `binary` option is `false`, [newlines](https://en.wikipedia.org/wiki/Newline) are stripped from each line.
|
|
1626
|
+
|
|
1627
|
+
@default `false` with `subprocess.iterable()`, `true` otherwise
|
|
1628
|
+
*/
|
|
1629
|
+
readonly preserveNewlines?: boolean;
|
|
1630
|
+
};
|
|
1631
|
+
|
|
1632
|
+
// `subprocess.writable|duplex()` options
|
|
1633
|
+
type WritableOptions = {
|
|
1634
|
+
/**
|
|
1635
|
+
Which stream to write to the subprocess. A [file descriptor](https://en.wikipedia.org/wiki/File_descriptor) like `"fd3"` can also be passed.
|
|
1636
|
+
|
|
1637
|
+
@default 'stdin'
|
|
1638
|
+
*/
|
|
1639
|
+
readonly to?: ToOption;
|
|
1640
|
+
};
|
|
1641
|
+
|
|
1642
|
+
// `subprocess.duplex()` options
|
|
1643
|
+
type DuplexOptions = ReadableOptions & WritableOptions;
|
|
1644
|
+
|
|
1645
|
+
// `subprocess.iterable()` return value
|
|
1646
|
+
type SubprocessAsyncIterable<
|
|
1647
|
+
BinaryOption extends boolean | undefined,
|
|
1648
|
+
EncodingOption extends Options['encoding'],
|
|
1649
|
+
> = AsyncIterableIterator<
|
|
1650
|
+
EncodingOption extends BinaryEncodingOption
|
|
1651
|
+
? Uint8Array
|
|
1652
|
+
: BinaryOption extends true
|
|
1653
|
+
? Uint8Array
|
|
1654
|
+
: string
|
|
1655
|
+
>;
|
|
1656
|
+
|
|
1657
|
+
// `subprocess.stdin|stdout|stderr|stdio`
|
|
1658
|
+
type SubprocessStdioStream<
|
|
1659
|
+
FdNumber extends string,
|
|
1660
|
+
OptionsType extends Options,
|
|
1661
|
+
> = SubprocessStream<FdNumber, IgnoresSubprocessOutput<FdNumber, OptionsType>, OptionsType>;
|
|
1662
|
+
|
|
1663
|
+
type SubprocessStream<
|
|
1664
|
+
FdNumber extends string,
|
|
1665
|
+
StreamResultIgnored,
|
|
1666
|
+
OptionsType extends Options,
|
|
1667
|
+
> = StreamResultIgnored extends true
|
|
1668
|
+
? null
|
|
1669
|
+
: InputOutputStream<IsInputFd<FdNumber, OptionsType>>;
|
|
1670
|
+
|
|
1671
|
+
type InputOutputStream<IsInput extends boolean> = IsInput extends true
|
|
1672
|
+
? Writable
|
|
1673
|
+
: Readable;
|
|
1674
|
+
|
|
1675
|
+
// `subprocess.stdio`
|
|
1676
|
+
type SubprocessStdioArray<OptionsType extends Options> = MapStdioStreams<StdioOptionNormalizedArray<OptionsType>, OptionsType>;
|
|
1677
|
+
|
|
1678
|
+
// We cannot use mapped types because it must be compatible with Node.js `ChildProcess["stdio"]` which uses a tuple with exactly 5 items
|
|
1679
|
+
type MapStdioStreams<
|
|
1680
|
+
StdioOptionsArrayType,
|
|
1681
|
+
OptionsType extends Options,
|
|
1682
|
+
> = [
|
|
1683
|
+
SubprocessStdioStream<'0', OptionsType>,
|
|
1684
|
+
SubprocessStdioStream<'1', OptionsType>,
|
|
1685
|
+
SubprocessStdioStream<'2', OptionsType>,
|
|
1686
|
+
'3' extends keyof StdioOptionsArrayType ? SubprocessStdioStream<'3', OptionsType> : never,
|
|
1687
|
+
'4' extends keyof StdioOptionsArrayType ? SubprocessStdioStream<'4', OptionsType> : never,
|
|
1688
|
+
];
|
|
1689
|
+
|
|
1690
|
+
// `subprocess.all`
|
|
1691
|
+
type SubprocessAll<OptionsType extends Options> = AllStream<AllIgnored<OptionsType['all'], OptionsType>>;
|
|
1692
|
+
|
|
1693
|
+
type AllStream<IsIgnored> = IsIgnored extends true ? undefined : Readable;
|
|
1694
|
+
|
|
1695
|
+
type AllIgnored<
|
|
1696
|
+
AllOption,
|
|
1697
|
+
OptionsType extends Options,
|
|
1698
|
+
> = AllOption extends true
|
|
1699
|
+
? IgnoresSubprocessOutput<'1', OptionsType> extends true
|
|
1700
|
+
? IgnoresSubprocessOutput<'2', OptionsType>
|
|
1701
|
+
: false
|
|
1702
|
+
: true;
|
|
1703
|
+
|
|
1704
|
+
// Read-side iteration, stream conversion and `all` methods.
|
|
1705
|
+
// These are shared between a subprocess and the return value of `subprocess.pipe()`, which forwards them from its destination subprocess.
|
|
1706
|
+
// `writable()`, `duplex()`, `writableStream()` and `transformStream()` are not included: they write to `stdin`, which the pipe already feeds from its source.
|
|
1707
|
+
type SubprocessResultMethods<OptionsType extends Options = Options> = {
|
|
1708
|
+
/**
|
|
1709
|
+
Stream combining/interleaving `subprocess.stdout` and `subprocess.stderr`.
|
|
1710
|
+
|
|
1711
|
+
This requires the `all` option to be `true`.
|
|
1712
|
+
|
|
1713
|
+
This is `undefined` if `stdout` and `stderr` options are set to `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
1714
|
+
*/
|
|
1715
|
+
all: SubprocessAll<OptionsType>;
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
Subprocesses are [async iterables](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/asyncIterator). They iterate over each output line.
|
|
1719
|
+
*/
|
|
1720
|
+
[Symbol.asyncIterator](): SubprocessAsyncIterable<undefined, OptionsType['encoding']>;
|
|
1721
|
+
|
|
1722
|
+
/**
|
|
1723
|
+
Same as `subprocess[Symbol.asyncIterator]` except options can be provided.
|
|
1724
|
+
*/
|
|
1725
|
+
iterable<IterableOptions extends ReadableOptions = {}>(readableOptions?: IterableOptions): SubprocessAsyncIterable<IterableOptions['binary'], OptionsType['encoding']>;
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
Converts the subprocess to a readable stream.
|
|
1729
|
+
*/
|
|
1730
|
+
readable(readableOptions?: ReadableOptions): Readable;
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
Converts the subprocess to a readable [web stream](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream).
|
|
1734
|
+
*/
|
|
1735
|
+
readableStream(readableOptions?: ReadableOptions): ReadableStream;
|
|
1736
|
+
};
|
|
1737
|
+
|
|
1738
|
+
type ExecaCustomSubprocess<OptionsType extends Options> =
|
|
1739
|
+
& IpcMethods<HasIpc<OptionsType>, OptionsType['serialization']>
|
|
1740
|
+
& PipableSubprocess
|
|
1741
|
+
& SubprocessResultMethods<OptionsType>
|
|
1742
|
+
& {
|
|
1743
|
+
/**
|
|
1744
|
+
Process identifier ([PID](https://en.wikipedia.org/wiki/Process_identifier)).
|
|
1745
|
+
|
|
1746
|
+
This is `undefined` if the subprocess failed to spawn.
|
|
1747
|
+
*/
|
|
1748
|
+
pid?: number;
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
The subprocess [`stdin`](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin)) as a stream.
|
|
1752
|
+
|
|
1753
|
+
This is `null` if the `stdin` option is set to `'inherit'`, `'ignore'`, `Readable` or `integer`.
|
|
1754
|
+
*/
|
|
1755
|
+
stdin: SubprocessStdioStream<'0', OptionsType>;
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
The subprocess [`stdout`](https://en.wikipedia.org/wiki/Standard_streams#Standard_output_(stdout)) as a stream.
|
|
1759
|
+
|
|
1760
|
+
This is `null` if the `stdout` option is set to `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
1761
|
+
*/
|
|
1762
|
+
stdout: SubprocessStdioStream<'1', OptionsType>;
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
The subprocess [`stderr`](https://en.wikipedia.org/wiki/Standard_streams#Standard_error_(stderr)) as a stream.
|
|
1766
|
+
|
|
1767
|
+
This is `null` if the `stderr` option is set to `'inherit'`, `'ignore'`, `Writable` or `integer`, or if the `buffer` option is `false`.
|
|
1768
|
+
*/
|
|
1769
|
+
stderr: SubprocessStdioStream<'2', OptionsType>;
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
The subprocess `stdin`, `stdout`, `stderr` and other files descriptors as an array of streams.
|
|
1773
|
+
|
|
1774
|
+
Each array item is `null` if the corresponding `stdin`, `stdout`, `stderr` or `stdio` option is set to `'inherit'`, `'ignore'`, `Stream` or `integer`, or if the `buffer` option is `false`.
|
|
1775
|
+
*/
|
|
1776
|
+
stdio: SubprocessStdioArray<OptionsType>;
|
|
1777
|
+
|
|
1778
|
+
/**
|
|
1779
|
+
Sends a [signal](https://nodejs.org/api/os.html#signal-constants) to the subprocess. The default signal is the `killSignal` option. `killSignal` defaults to `SIGTERM`, which terminates the subprocess.
|
|
1780
|
+
|
|
1781
|
+
This returns `false` when the signal could not be sent, for example when the subprocess has already exited.
|
|
1782
|
+
|
|
1783
|
+
When an error is passed as argument, it is set to the subprocess' `error.cause`. The subprocess is then terminated with the default signal. This does not emit the [`error` event](https://nodejs.org/api/child_process.html#event-error).
|
|
1784
|
+
|
|
1785
|
+
[More info.](https://nodejs.org/api/child_process.html#subprocesskillsignal)
|
|
1786
|
+
*/
|
|
1787
|
+
kill(signal?: keyof SignalConstants | number, error?: Error): boolean;
|
|
1788
|
+
kill(error?: Error): boolean;
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
Converts the subprocess to a writable stream.
|
|
1792
|
+
*/
|
|
1793
|
+
writable(writableOptions?: WritableOptions): Writable;
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
Converts the subprocess to a duplex stream.
|
|
1797
|
+
*/
|
|
1798
|
+
duplex(duplexOptions?: DuplexOptions): Duplex;
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
Converts the subprocess to a writable [web stream](https://developer.mozilla.org/en-US/docs/Web/API/WritableStream).
|
|
1802
|
+
*/
|
|
1803
|
+
writableStream(writableOptions?: WritableOptions): WritableStream;
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
Converts the subprocess to a [`{readable, writable}`](https://developer.mozilla.org/en-US/docs/Web/API/TransformStream) pair of web streams.
|
|
1807
|
+
*/
|
|
1808
|
+
transformStream(duplexOptions?: DuplexOptions): ReadableWritablePair;
|
|
1809
|
+
|
|
1810
|
+
/**
|
|
1811
|
+
Underlying Node.js [`ChildProcess`](https://nodejs.org/api/child_process.html#class-childprocess) instance.
|
|
1812
|
+
|
|
1813
|
+
This is an escape hatch for Node.js-specific APIs not documented by Execa, such as `.on()`, `.send()`, `.disconnect()`, `.ref()` or `.unref()`.
|
|
1814
|
+
*/
|
|
1815
|
+
nodeChildProcess: ChildProcess;
|
|
1816
|
+
};
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
Subprocess with Execa-specific methods and properties. It is also a `Promise` either resolving with its successful `result`, or rejecting with its `error`.
|
|
1820
|
+
*/
|
|
1821
|
+
type Subprocess<OptionsType extends Options = Options> =
|
|
1822
|
+
& ExecaCustomSubprocess<OptionsType>
|
|
1823
|
+
& Promise<Result<OptionsType>>;
|
|
1824
|
+
|
|
1825
|
+
/**
|
|
1826
|
+
The return value of all asynchronous methods is both:
|
|
1827
|
+
- the subprocess with Execa-specific methods and properties.
|
|
1828
|
+
- a `Promise` either resolving with its successful `result`, or rejecting with its `error`.
|
|
1829
|
+
*/
|
|
1830
|
+
type ResultPromise<OptionsType extends Options = Options> =
|
|
1831
|
+
Subprocess<OptionsType>;
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
Executes a command using `file ...arguments`.
|
|
1835
|
+
|
|
1836
|
+
When `command` is a template string, it includes both the `file` and its `arguments`.
|
|
1837
|
+
|
|
1838
|
+
`execa(options)` can be used to return a new instance of this method but with different default `options`. Consecutive calls are merged to previous ones.
|
|
1839
|
+
|
|
1840
|
+
@param file - The program/script to execute, as a string or file URL
|
|
1841
|
+
@param arguments - Arguments to pass to `file` on execution.
|
|
1842
|
+
@returns A `ResultPromise` that is both:
|
|
1843
|
+
- the subprocess.
|
|
1844
|
+
- a `Promise` either resolving with its successful `result`, or rejecting with its `error`.
|
|
1845
|
+
@throws `ExecaError`
|
|
1846
|
+
|
|
1847
|
+
@example <caption>Simple syntax</caption>
|
|
1848
|
+
|
|
1849
|
+
```
|
|
1850
|
+
import {execa} from 'execa';
|
|
1851
|
+
|
|
1852
|
+
const {stdout} = await execa`npm run build`;
|
|
1853
|
+
// Print command's output
|
|
1854
|
+
console.log(stdout);
|
|
1855
|
+
```
|
|
1856
|
+
|
|
1857
|
+
@example <caption>Script</caption>
|
|
1858
|
+
|
|
1859
|
+
```
|
|
1860
|
+
import {$} from 'execa';
|
|
1861
|
+
|
|
1862
|
+
const {stdout: name} = await $`cat package.json`.pipe`grep name`;
|
|
1863
|
+
console.log(name);
|
|
1864
|
+
|
|
1865
|
+
const branch = await $`git branch --show-current`;
|
|
1866
|
+
await $`dep deploy --branch=${branch}`;
|
|
1867
|
+
|
|
1868
|
+
await Promise.all([
|
|
1869
|
+
$`sleep 1`,
|
|
1870
|
+
$`sleep 2`,
|
|
1871
|
+
$`sleep 3`,
|
|
1872
|
+
]);
|
|
1873
|
+
|
|
1874
|
+
const directoryName = 'foo bar';
|
|
1875
|
+
await $`mkdir /tmp/${directoryName}`;
|
|
1876
|
+
```
|
|
1877
|
+
|
|
1878
|
+
@example <caption>Local binaries</caption>
|
|
1879
|
+
|
|
1880
|
+
```
|
|
1881
|
+
$ npm install -D eslint
|
|
1882
|
+
```
|
|
1883
|
+
|
|
1884
|
+
```
|
|
1885
|
+
await execa({preferLocal: true})`eslint`;
|
|
1886
|
+
```
|
|
1887
|
+
|
|
1888
|
+
@example <caption>Pipe multiple subprocesses</caption>
|
|
1889
|
+
|
|
1890
|
+
```
|
|
1891
|
+
const {stdout, pipedFrom} = await execa`npm run build`
|
|
1892
|
+
.pipe`sort`
|
|
1893
|
+
.pipe`head -n 2`;
|
|
1894
|
+
|
|
1895
|
+
// Output of `npm run build | sort | head -n 2`
|
|
1896
|
+
console.log(stdout);
|
|
1897
|
+
// Output of `npm run build | sort`
|
|
1898
|
+
console.log(pipedFrom[0].stdout);
|
|
1899
|
+
// Output of `npm run build`
|
|
1900
|
+
console.log(pipedFrom[0].pipedFrom[0].stdout);
|
|
1901
|
+
```
|
|
1902
|
+
|
|
1903
|
+
@example <caption>Interleaved output</caption>
|
|
1904
|
+
|
|
1905
|
+
```
|
|
1906
|
+
const {all} = await execa({all: true})`npm run build`;
|
|
1907
|
+
// stdout + stderr, interleaved
|
|
1908
|
+
console.log(all);
|
|
1909
|
+
```
|
|
1910
|
+
|
|
1911
|
+
@example <caption>Programmatic + terminal output</caption>
|
|
1912
|
+
|
|
1913
|
+
```
|
|
1914
|
+
const {stdout} = await execa({stdout: ['pipe', 'inherit']})`npm run build`;
|
|
1915
|
+
// stdout is also printed to the terminal
|
|
1916
|
+
console.log(stdout);
|
|
1917
|
+
```
|
|
1918
|
+
|
|
1919
|
+
@example <caption>Simple input</caption>
|
|
1920
|
+
|
|
1921
|
+
```
|
|
1922
|
+
const getInputString = () => { /* ... *\/ };
|
|
1923
|
+
const {stdout} = await execa({input: getInputString()})`sort`;
|
|
1924
|
+
console.log(stdout);
|
|
1925
|
+
```
|
|
1926
|
+
|
|
1927
|
+
@example <caption>File input</caption>
|
|
1928
|
+
|
|
1929
|
+
```
|
|
1930
|
+
// Similar to: npm run build < input.txt
|
|
1931
|
+
await execa({stdin: {file: 'input.txt'}})`npm run build`;
|
|
1932
|
+
```
|
|
1933
|
+
|
|
1934
|
+
@example <caption>File output</caption>
|
|
1935
|
+
|
|
1936
|
+
```
|
|
1937
|
+
// Similar to: npm run build > output.txt
|
|
1938
|
+
await execa({stdout: {file: 'output.txt'}})`npm run build`;
|
|
1939
|
+
```
|
|
1940
|
+
|
|
1941
|
+
@example <caption>Split into text lines</caption>
|
|
1942
|
+
|
|
1943
|
+
```
|
|
1944
|
+
const {stdout} = await execa({lines: true})`npm run build`;
|
|
1945
|
+
// Print first 10 lines
|
|
1946
|
+
console.log(stdout.slice(0, 10).join('\n'));
|
|
1947
|
+
```
|
|
1948
|
+
|
|
1949
|
+
@example <caption>Iterate over text lines</caption>
|
|
1950
|
+
|
|
1951
|
+
```
|
|
1952
|
+
for await (const line of execa`npm run build`) {
|
|
1953
|
+
if (line.includes('WARN')) {
|
|
1954
|
+
console.warn(line);
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
```
|
|
1958
|
+
|
|
1959
|
+
@example <caption>Transform/filter output</caption>
|
|
1960
|
+
|
|
1961
|
+
```
|
|
1962
|
+
let count = 0;
|
|
1963
|
+
|
|
1964
|
+
// Filter out secret lines, then prepend the line number
|
|
1965
|
+
const transform = function * (line) {
|
|
1966
|
+
if (!line.includes('secret')) {
|
|
1967
|
+
yield `[${count++}] ${line}`;
|
|
1968
|
+
}
|
|
1969
|
+
};
|
|
1970
|
+
|
|
1971
|
+
await execa({stdout: transform})`npm run build`;
|
|
1972
|
+
```
|
|
1973
|
+
|
|
1974
|
+
@example <caption>Web streams</caption>
|
|
1975
|
+
|
|
1976
|
+
```
|
|
1977
|
+
const response = await fetch('https://example.com');
|
|
1978
|
+
await execa({stdin: response.body})`sort`;
|
|
1979
|
+
```
|
|
1980
|
+
|
|
1981
|
+
@example <caption>Convert to Duplex stream</caption>
|
|
1982
|
+
|
|
1983
|
+
```
|
|
1984
|
+
import {execa} from 'execa';
|
|
1985
|
+
import {pipeline} from 'node:stream/promises';
|
|
1986
|
+
import {createReadStream, createWriteStream} from 'node:fs';
|
|
1987
|
+
|
|
1988
|
+
await pipeline(
|
|
1989
|
+
createReadStream('./input.txt'),
|
|
1990
|
+
execa`node ./transform.js`.duplex(),
|
|
1991
|
+
createWriteStream('./output.txt'),
|
|
1992
|
+
);
|
|
1993
|
+
```
|
|
1994
|
+
|
|
1995
|
+
@example <caption>Exchange messages</caption>
|
|
1996
|
+
|
|
1997
|
+
```
|
|
1998
|
+
// parent.js
|
|
1999
|
+
import {execaNode} from 'execa';
|
|
2000
|
+
|
|
2001
|
+
const subprocess = execaNode`child.js`;
|
|
2002
|
+
await subprocess.sendMessage('Hello from parent');
|
|
2003
|
+
const message = await subprocess.getOneMessage();
|
|
2004
|
+
console.log(message); // 'Hello from child'
|
|
2005
|
+
```
|
|
2006
|
+
|
|
2007
|
+
```
|
|
2008
|
+
// child.js
|
|
2009
|
+
import {getOneMessage, sendMessage} from 'execa';
|
|
2010
|
+
|
|
2011
|
+
const message = await getOneMessage(); // 'Hello from parent'
|
|
2012
|
+
const newMessage = message.replace('parent', 'child'); // 'Hello from child'
|
|
2013
|
+
await sendMessage(newMessage);
|
|
2014
|
+
```
|
|
2015
|
+
|
|
2016
|
+
@example <caption>Any input type</caption>
|
|
2017
|
+
|
|
2018
|
+
```
|
|
2019
|
+
// main.js
|
|
2020
|
+
import {execaNode} from 'execa';
|
|
2021
|
+
|
|
2022
|
+
const ipcInput = [
|
|
2023
|
+
{task: 'lint', ignore: /test\.js/},
|
|
2024
|
+
{task: 'copy', files: new Set(['main.js', 'index.js']),
|
|
2025
|
+
}];
|
|
2026
|
+
await execaNode({ipcInput})`build.js`;
|
|
2027
|
+
```
|
|
2028
|
+
|
|
2029
|
+
```
|
|
2030
|
+
// build.js
|
|
2031
|
+
import {getOneMessage} from 'execa';
|
|
2032
|
+
|
|
2033
|
+
const ipcInput = await getOneMessage();
|
|
2034
|
+
```
|
|
2035
|
+
|
|
2036
|
+
@example <caption>Any output type</caption>
|
|
2037
|
+
|
|
2038
|
+
```
|
|
2039
|
+
// main.js
|
|
2040
|
+
import {execaNode} from 'execa';
|
|
2041
|
+
|
|
2042
|
+
const {ipcOutput} = await execaNode`build.js`;
|
|
2043
|
+
console.log(ipcOutput[0]); // {kind: 'start', timestamp: date}
|
|
2044
|
+
console.log(ipcOutput[1]); // {kind: 'stop', timestamp: date}
|
|
2045
|
+
```
|
|
2046
|
+
|
|
2047
|
+
```
|
|
2048
|
+
// build.js
|
|
2049
|
+
import {sendMessage} from 'execa';
|
|
2050
|
+
|
|
2051
|
+
const runBuild = () => { /* ... *\/ };
|
|
2052
|
+
|
|
2053
|
+
await sendMessage({kind: 'start', timestamp: new Date()});
|
|
2054
|
+
await runBuild();
|
|
2055
|
+
await sendMessage({kind: 'stop', timestamp: new Date()});
|
|
2056
|
+
```
|
|
2057
|
+
|
|
2058
|
+
@example <caption>Graceful termination</caption>
|
|
2059
|
+
|
|
2060
|
+
```
|
|
2061
|
+
// main.js
|
|
2062
|
+
import {execaNode} from 'execa';
|
|
2063
|
+
|
|
2064
|
+
const controller = new AbortController();
|
|
2065
|
+
setTimeout(() => {
|
|
2066
|
+
controller.abort();
|
|
2067
|
+
}, 5000);
|
|
2068
|
+
|
|
2069
|
+
await execaNode({
|
|
2070
|
+
cancelSignal: controller.signal,
|
|
2071
|
+
gracefulCancel: true,
|
|
2072
|
+
})`build.js`;
|
|
2073
|
+
```
|
|
2074
|
+
|
|
2075
|
+
```
|
|
2076
|
+
// build.js
|
|
2077
|
+
import {getCancelSignal} from 'execa';
|
|
2078
|
+
|
|
2079
|
+
const cancelSignal = await getCancelSignal();
|
|
2080
|
+
const url = 'https://example.com/build/info';
|
|
2081
|
+
const response = await fetch(url, {signal: cancelSignal});
|
|
2082
|
+
```
|
|
2083
|
+
|
|
2084
|
+
@example <caption>Detailed error</caption>
|
|
2085
|
+
|
|
2086
|
+
```
|
|
2087
|
+
import {execa, ExecaError} from 'execa';
|
|
2088
|
+
|
|
2089
|
+
try {
|
|
2090
|
+
await execa`unknown command`;
|
|
2091
|
+
} catch (error) {
|
|
2092
|
+
if (error instanceof ExecaError) {
|
|
2093
|
+
console.log(error);
|
|
2094
|
+
}
|
|
2095
|
+
/*
|
|
2096
|
+
ExecaError: Command failed with ENOENT: unknown command
|
|
2097
|
+
spawn unknown ENOENT
|
|
2098
|
+
at ...
|
|
2099
|
+
at ... {
|
|
2100
|
+
shortMessage: 'Command failed with ENOENT: unknown command\nspawn unknown ENOENT',
|
|
2101
|
+
originalMessage: 'spawn unknown ENOENT',
|
|
2102
|
+
command: 'unknown command',
|
|
2103
|
+
escapedCommand: 'unknown command',
|
|
2104
|
+
cwd: '/path/to/cwd',
|
|
2105
|
+
durationMs: 28.217566,
|
|
2106
|
+
failed: true,
|
|
2107
|
+
timedOut: false,
|
|
2108
|
+
isCanceled: false,
|
|
2109
|
+
isTerminated: false,
|
|
2110
|
+
isMaxBuffer: false,
|
|
2111
|
+
code: 'ENOENT',
|
|
2112
|
+
stdout: '',
|
|
2113
|
+
stderr: '',
|
|
2114
|
+
stdio: [undefined, '', ''],
|
|
2115
|
+
pipedFrom: []
|
|
2116
|
+
[cause]: Error: spawn unknown ENOENT
|
|
2117
|
+
at ...
|
|
2118
|
+
at ... {
|
|
2119
|
+
errno: -2,
|
|
2120
|
+
code: 'ENOENT',
|
|
2121
|
+
syscall: 'spawn unknown',
|
|
2122
|
+
path: 'unknown',
|
|
2123
|
+
spawnargs: [ 'command' ]
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
*\/
|
|
2127
|
+
}
|
|
2128
|
+
```
|
|
2129
|
+
|
|
2130
|
+
@example <caption>Verbose mode</caption>
|
|
2131
|
+
|
|
2132
|
+
```
|
|
2133
|
+
await execa`npm run build`;
|
|
2134
|
+
await execa`npm run test`;
|
|
2135
|
+
```
|
|
2136
|
+
|
|
2137
|
+
```
|
|
2138
|
+
$ NODE_DEBUG=execa node build.js
|
|
2139
|
+
[00:57:44.581] [0] $ npm run build
|
|
2140
|
+
[00:57:44.653] [0] Building application...
|
|
2141
|
+
[00:57:44.653] [0] Done building.
|
|
2142
|
+
[00:57:44.658] [0] ✔ (done in 78ms)
|
|
2143
|
+
[00:57:44.658] [1] $ npm run test
|
|
2144
|
+
[00:57:44.740] [1] Running tests...
|
|
2145
|
+
[00:57:44.740] [1] Error: the entrypoint is invalid.
|
|
2146
|
+
[00:57:44.747] [1] ✘ Command failed with exit code 1: npm run test
|
|
2147
|
+
[00:57:44.747] [1] ✘ (done in 89ms)
|
|
2148
|
+
```
|
|
2149
|
+
|
|
2150
|
+
@example <caption>Custom logging</caption>
|
|
2151
|
+
|
|
2152
|
+
```
|
|
2153
|
+
import {execa as execa_} from 'execa';
|
|
2154
|
+
import {createLogger, transports} from 'winston';
|
|
2155
|
+
|
|
2156
|
+
// Log to a file using Winston
|
|
2157
|
+
const transport = new transports.File({filename: 'logs.txt'});
|
|
2158
|
+
const logger = createLogger({transports: [transport]});
|
|
2159
|
+
const LOG_LEVELS = {
|
|
2160
|
+
command: 'info',
|
|
2161
|
+
output: 'verbose',
|
|
2162
|
+
ipc: 'verbose',
|
|
2163
|
+
error: 'error',
|
|
2164
|
+
duration: 'info',
|
|
2165
|
+
};
|
|
2166
|
+
|
|
2167
|
+
const execa = execa_({
|
|
2168
|
+
verbose(verboseLine, {message, ...verboseObject}) {
|
|
2169
|
+
const level = LOG_LEVELS[verboseObject.type];
|
|
2170
|
+
logger[level](message, verboseObject);
|
|
2171
|
+
},
|
|
2172
|
+
});
|
|
2173
|
+
|
|
2174
|
+
await execa`npm run build`;
|
|
2175
|
+
await execa`npm run test`;
|
|
2176
|
+
```
|
|
2177
|
+
*/
|
|
2178
|
+
declare const execa: ExecaMethod<{}>;
|
|
2179
|
+
|
|
2180
|
+
/**
|
|
2181
|
+
`execa()` method either exported by Execa, or bound using `execa(options)`.
|
|
2182
|
+
*/
|
|
2183
|
+
type ExecaMethod<OptionsType extends Options = Options> =
|
|
2184
|
+
& ExecaBind<OptionsType>
|
|
2185
|
+
& ExecaTemplate<OptionsType>
|
|
2186
|
+
& ExecaArrayLong<OptionsType>
|
|
2187
|
+
& ExecaArrayShort<OptionsType>;
|
|
2188
|
+
|
|
2189
|
+
// `execa(options)` binding
|
|
2190
|
+
type ExecaBind<OptionsType extends Options> =
|
|
2191
|
+
<NewOptionsType extends Options = {}>(options: NewOptionsType)
|
|
2192
|
+
=> ExecaMethod<OptionsType & NewOptionsType>;
|
|
2193
|
+
|
|
2194
|
+
// `execa`command`` template syntax
|
|
2195
|
+
type ExecaTemplate<OptionsType extends Options> =
|
|
2196
|
+
(...templateString: TemplateString)
|
|
2197
|
+
=> ResultPromise<OptionsType>;
|
|
2198
|
+
|
|
2199
|
+
// `execa('file', ['argument'], {})` array syntax
|
|
2200
|
+
type ExecaArrayLong<OptionsType extends Options> =
|
|
2201
|
+
<NewOptionsType extends Options = {}>(file: string | URL, arguments?: readonly string[], options?: NewOptionsType)
|
|
2202
|
+
=> ResultPromise<OptionsType & NewOptionsType>;
|
|
2203
|
+
|
|
2204
|
+
// `execa('file', {})` array syntax
|
|
2205
|
+
type ExecaArrayShort<OptionsType extends Options> =
|
|
2206
|
+
<NewOptionsType extends Options = {}>(file: string | URL, options?: NewOptionsType)
|
|
2207
|
+
=> ResultPromise<OptionsType & NewOptionsType>;
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
Same as `execa()` but synchronous.
|
|
2211
|
+
|
|
2212
|
+
Returns a subprocess `result` or throws an `error`. The `subprocess` is not returned: its methods and properties are not available.
|
|
2213
|
+
|
|
2214
|
+
When `command` is a template string, it includes both the `file` and its `arguments`.
|
|
2215
|
+
|
|
2216
|
+
`execaSync(options)` can be used to return a new instance of this method but with different default `options`. Consecutive calls are merged to previous ones.
|
|
2217
|
+
|
|
2218
|
+
This method is discouraged as it holds the CPU and lacks multiple features.
|
|
2219
|
+
|
|
2220
|
+
@param file - The program/script to execute, as a string or file URL
|
|
2221
|
+
@param arguments - Arguments to pass to `file` on execution.
|
|
2222
|
+
@returns `SyncResult`
|
|
2223
|
+
@throws `ExecaSyncError`
|
|
2224
|
+
|
|
2225
|
+
@example
|
|
2226
|
+
|
|
2227
|
+
```
|
|
2228
|
+
import {execaSync} from 'execa';
|
|
2229
|
+
|
|
2230
|
+
const {stdout} = execaSync`npm run build`;
|
|
2231
|
+
// Print command's output
|
|
2232
|
+
console.log(stdout);
|
|
2233
|
+
```
|
|
2234
|
+
*/
|
|
2235
|
+
declare const execaSync: ExecaSyncMethod<{}>;
|
|
2236
|
+
|
|
2237
|
+
// For the moment, we purposely do not export `ExecaSyncMethod` and `ExecaScriptSyncMethod`.
|
|
2238
|
+
// This is because synchronous invocation is discouraged.
|
|
2239
|
+
type ExecaSyncMethod<OptionsType extends SyncOptions = SyncOptions> =
|
|
2240
|
+
& ExecaSyncBind<OptionsType>
|
|
2241
|
+
& ExecaSyncTemplate<OptionsType>
|
|
2242
|
+
& ExecaSyncArrayLong<OptionsType>
|
|
2243
|
+
& ExecaSyncArrayShort<OptionsType>;
|
|
2244
|
+
|
|
2245
|
+
// `execaSync(options)` binding
|
|
2246
|
+
type ExecaSyncBind<OptionsType extends SyncOptions> =
|
|
2247
|
+
<NewOptionsType extends SyncOptions = {}>(options: NewOptionsType)
|
|
2248
|
+
=> ExecaSyncMethod<OptionsType & NewOptionsType>;
|
|
2249
|
+
|
|
2250
|
+
// `execaSync`command`` template syntax
|
|
2251
|
+
type ExecaSyncTemplate<OptionsType extends SyncOptions> =
|
|
2252
|
+
(...templateString: TemplateString)
|
|
2253
|
+
=> SyncResult<OptionsType>;
|
|
2254
|
+
|
|
2255
|
+
// `execaSync('file', ['argument'], {})` array syntax
|
|
2256
|
+
type ExecaSyncArrayLong<OptionsType extends SyncOptions> =
|
|
2257
|
+
<NewOptionsType extends SyncOptions = {}>(file: string | URL, arguments?: readonly string[], options?: NewOptionsType)
|
|
2258
|
+
=> SyncResult<OptionsType & NewOptionsType>;
|
|
2259
|
+
|
|
2260
|
+
// `execaSync('file', {})` array syntax
|
|
2261
|
+
type ExecaSyncArrayShort<OptionsType extends SyncOptions> =
|
|
2262
|
+
<NewOptionsType extends SyncOptions = {}>(file: string | URL, options?: NewOptionsType)
|
|
2263
|
+
=> SyncResult<OptionsType & NewOptionsType>;
|
|
2264
|
+
|
|
2265
|
+
/**
|
|
2266
|
+
Split a `command` string into an array. For example, `'npm run build'` returns `['npm', 'run', 'build']` and `'argument otherArgument'` returns `['argument', 'otherArgument']`.
|
|
2267
|
+
|
|
2268
|
+
@param command - The file to execute and/or its arguments.
|
|
2269
|
+
@returns fileOrArgument[]
|
|
2270
|
+
|
|
2271
|
+
@example
|
|
2272
|
+
```
|
|
2273
|
+
import {execa, parseCommandString} from 'execa';
|
|
2274
|
+
|
|
2275
|
+
const commandString = 'npm run task';
|
|
2276
|
+
const commandArray = parseCommandString(commandString);
|
|
2277
|
+
await execa`${commandArray}`;
|
|
2278
|
+
|
|
2279
|
+
const [file, ...commandArguments] = commandArray;
|
|
2280
|
+
await execa(file, commandArguments);
|
|
2281
|
+
```
|
|
2282
|
+
*/
|
|
2283
|
+
declare function parseCommandString(command: string): string[];
|
|
2284
|
+
|
|
2285
|
+
/**
|
|
2286
|
+
Same as `execa()` but using script-friendly default options.
|
|
2287
|
+
|
|
2288
|
+
When `command` is a template string, it includes both the `file` and its `arguments`.
|
|
2289
|
+
|
|
2290
|
+
`$(options)` can be used to return a new instance of this method but with different default `options`. Consecutive calls are merged to previous ones.
|
|
2291
|
+
|
|
2292
|
+
This is the preferred method when executing multiple commands in a script file.
|
|
2293
|
+
|
|
2294
|
+
@returns A `ResultPromise` that is both:
|
|
2295
|
+
- the subprocess.
|
|
2296
|
+
- a `Promise` either resolving with its successful `result`, or rejecting with its `error`.
|
|
2297
|
+
@throws `ExecaError`
|
|
2298
|
+
|
|
2299
|
+
@example <caption>Basic</caption>
|
|
2300
|
+
```
|
|
2301
|
+
import {$} from 'execa';
|
|
2302
|
+
|
|
2303
|
+
const branch = await $`git branch --show-current`;
|
|
2304
|
+
await $`dep deploy --branch=${branch}`;
|
|
2305
|
+
```
|
|
2306
|
+
|
|
2307
|
+
@example <caption>Verbose mode</caption>
|
|
2308
|
+
```
|
|
2309
|
+
$ node build.js
|
|
2310
|
+
Building application...
|
|
2311
|
+
Done building.
|
|
2312
|
+
Running tests...
|
|
2313
|
+
Error: the entrypoint is invalid.
|
|
2314
|
+
|
|
2315
|
+
$ NODE_DEBUG=execa node build.js
|
|
2316
|
+
[00:57:44.581] [0] $ npm run build
|
|
2317
|
+
[00:57:44.653] [0] Building application...
|
|
2318
|
+
[00:57:44.653] [0] Done building.
|
|
2319
|
+
[00:57:44.658] [0] ✔ (done in 78ms)
|
|
2320
|
+
[00:57:44.658] [1] $ npm run test
|
|
2321
|
+
[00:57:44.740] [1] Running tests...
|
|
2322
|
+
[00:57:44.740] [1] Error: the entrypoint is invalid.
|
|
2323
|
+
[00:57:44.747] [1] ✘ Command failed with exit code 1: npm run test
|
|
2324
|
+
[00:57:44.747] [1] ✘ (done in 89ms)
|
|
2325
|
+
```
|
|
2326
|
+
*/
|
|
2327
|
+
declare const $: ExecaScriptMethod<{}>;
|
|
2328
|
+
|
|
2329
|
+
/**
|
|
2330
|
+
`$()` method either exported by Execa, or bound using `$(options)`.
|
|
2331
|
+
*/
|
|
2332
|
+
type ExecaScriptMethod<OptionsType extends CommonOptions = CommonOptions> =
|
|
2333
|
+
& ExecaScriptBind<OptionsType>
|
|
2334
|
+
& ExecaScriptTemplate<OptionsType>
|
|
2335
|
+
& ExecaScriptArrayLong<OptionsType>
|
|
2336
|
+
& ExecaScriptArrayShort<OptionsType>
|
|
2337
|
+
& {sync: ExecaScriptSyncMethod<OptionsType>}
|
|
2338
|
+
& {s: ExecaScriptSyncMethod<OptionsType>};
|
|
2339
|
+
|
|
2340
|
+
// `$(options)` binding
|
|
2341
|
+
type ExecaScriptBind<OptionsType extends CommonOptions> =
|
|
2342
|
+
<NewOptionsType extends Options = {}>(options: NewOptionsType)
|
|
2343
|
+
=> ExecaScriptMethod<OptionsType & NewOptionsType>;
|
|
2344
|
+
|
|
2345
|
+
// `$`command`` template syntax
|
|
2346
|
+
type ExecaScriptTemplate<OptionsType extends CommonOptions> =
|
|
2347
|
+
(...templateString: TemplateString)
|
|
2348
|
+
=> ResultPromise<StricterOptions<OptionsType, Options>>;
|
|
2349
|
+
|
|
2350
|
+
// `$('file', ['arg'], {})` array syntax
|
|
2351
|
+
type ExecaScriptArrayLong<OptionsType extends CommonOptions> =
|
|
2352
|
+
<NewOptionsType extends Options = {}>(file: string | URL, arguments?: readonly string[], options?: NewOptionsType)
|
|
2353
|
+
=> ResultPromise<StricterOptions<OptionsType & NewOptionsType, Options>>;
|
|
2354
|
+
|
|
2355
|
+
// `$('file', {})` array syntax
|
|
2356
|
+
type ExecaScriptArrayShort<OptionsType extends CommonOptions> =
|
|
2357
|
+
<NewOptionsType extends Options = {}>(file: string | URL, options?: NewOptionsType)
|
|
2358
|
+
=> ResultPromise<StricterOptions<OptionsType & NewOptionsType, Options>>;
|
|
2359
|
+
|
|
2360
|
+
// We must intersect the overloaded methods with & instead of using a simple object as a workaround for a TypeScript bug
|
|
2361
|
+
// See https://github.com/microsoft/TypeScript/issues/58765
|
|
2362
|
+
/**
|
|
2363
|
+
`$.sync()` method either exported by Execa, or bound using `$.sync(options)`.
|
|
2364
|
+
*/
|
|
2365
|
+
type ExecaScriptSyncMethod<OptionsType extends CommonOptions = CommonOptions> =
|
|
2366
|
+
& ExecaScriptSyncBind<OptionsType>
|
|
2367
|
+
& ExecaScriptSyncTemplate<OptionsType>
|
|
2368
|
+
& ExecaScriptSyncArrayLong<OptionsType>
|
|
2369
|
+
& ExecaScriptSyncArrayShort<OptionsType>;
|
|
2370
|
+
|
|
2371
|
+
// `$.sync(options)` binding
|
|
2372
|
+
type ExecaScriptSyncBind<OptionsType extends CommonOptions> =
|
|
2373
|
+
<NewOptionsType extends SyncOptions = {}>(options: NewOptionsType)
|
|
2374
|
+
=> ExecaScriptSyncMethod<OptionsType & NewOptionsType>;
|
|
2375
|
+
|
|
2376
|
+
// $.sync`command` template syntax
|
|
2377
|
+
type ExecaScriptSyncTemplate<OptionsType extends CommonOptions> =
|
|
2378
|
+
(...templateString: TemplateString)
|
|
2379
|
+
=> SyncResult<StricterOptions<OptionsType, SyncOptions>>;
|
|
2380
|
+
|
|
2381
|
+
// `$.sync('file', ['arg'], {})` array syntax
|
|
2382
|
+
type ExecaScriptSyncArrayLong<OptionsType extends CommonOptions> =
|
|
2383
|
+
<NewOptionsType extends SyncOptions = {}>(file: string | URL, arguments?: readonly string[], options?: NewOptionsType)
|
|
2384
|
+
=> SyncResult<StricterOptions<OptionsType & NewOptionsType, SyncOptions>>;
|
|
2385
|
+
|
|
2386
|
+
// `$.sync('file', {})` array syntax
|
|
2387
|
+
type ExecaScriptSyncArrayShort<OptionsType extends CommonOptions> =
|
|
2388
|
+
<NewOptionsType extends SyncOptions = {}>(file: string | URL, options?: NewOptionsType)
|
|
2389
|
+
=> SyncResult<StricterOptions<OptionsType & NewOptionsType, SyncOptions>>;
|
|
2390
|
+
|
|
2391
|
+
/**
|
|
2392
|
+
Same as `execa()` but using the `node: true` option.
|
|
2393
|
+
Executes a Node.js file using `node scriptPath ...arguments`.
|
|
2394
|
+
|
|
2395
|
+
When `command` is a template string, it includes both the `file` and its `arguments`.
|
|
2396
|
+
|
|
2397
|
+
`execaNode(options)` can be used to return a new instance of this method but with different default `options`. Consecutive calls are merged to previous ones.
|
|
2398
|
+
|
|
2399
|
+
This is the preferred method when executing Node.js files.
|
|
2400
|
+
|
|
2401
|
+
@param scriptPath - Node.js script to execute, as a string or file URL
|
|
2402
|
+
@param arguments - Arguments to pass to `scriptPath` on execution.
|
|
2403
|
+
@returns A `ResultPromise` that is both:
|
|
2404
|
+
- the subprocess.
|
|
2405
|
+
- a `Promise` either resolving with its successful `result`, or rejecting with its `error`.
|
|
2406
|
+
@throws `ExecaError`
|
|
2407
|
+
|
|
2408
|
+
@example
|
|
2409
|
+
```
|
|
2410
|
+
import {execaNode, execa} from 'execa';
|
|
2411
|
+
|
|
2412
|
+
await execaNode`file.js argument`;
|
|
2413
|
+
// Is the same as:
|
|
2414
|
+
await execa({node: true})`file.js argument`;
|
|
2415
|
+
// Or:
|
|
2416
|
+
await execa`node file.js argument`;
|
|
2417
|
+
```
|
|
2418
|
+
*/
|
|
2419
|
+
declare const execaNode: ExecaNodeMethod<{}>;
|
|
2420
|
+
|
|
2421
|
+
/**
|
|
2422
|
+
`execaNode()` method either exported by Execa, or bound using `execaNode(options)`.
|
|
2423
|
+
*/
|
|
2424
|
+
type ExecaNodeMethod<OptionsType extends Options = Options> =
|
|
2425
|
+
& ExecaNodeBind<OptionsType>
|
|
2426
|
+
& ExecaNodeTemplate<OptionsType>
|
|
2427
|
+
& ExecaNodeArrayLong<OptionsType>
|
|
2428
|
+
& ExecaNodeArrayShort<OptionsType>;
|
|
2429
|
+
|
|
2430
|
+
// `execaNode(options)` binding
|
|
2431
|
+
type ExecaNodeBind<OptionsType extends Options> =
|
|
2432
|
+
<NewOptionsType extends Options = {}>(options: NewOptionsType)
|
|
2433
|
+
=> ExecaNodeMethod<OptionsType & NewOptionsType>;
|
|
2434
|
+
|
|
2435
|
+
// `execaNode`command`` template syntax
|
|
2436
|
+
type ExecaNodeTemplate<OptionsType extends Options> =
|
|
2437
|
+
(...templateString: TemplateString)
|
|
2438
|
+
=> ResultPromise<OptionsType>;
|
|
2439
|
+
|
|
2440
|
+
// `execaNode('script', ['argument'], {})` array syntax
|
|
2441
|
+
type ExecaNodeArrayLong<OptionsType extends Options> =
|
|
2442
|
+
<NewOptionsType extends Options = {}>(scriptPath: string | URL, arguments?: readonly string[], options?: NewOptionsType)
|
|
2443
|
+
=> ResultPromise<OptionsType & NewOptionsType>;
|
|
2444
|
+
|
|
2445
|
+
// `execaNode('script', {})` array syntax
|
|
2446
|
+
type ExecaNodeArrayShort<OptionsType extends Options> =
|
|
2447
|
+
<NewOptionsType extends Options = {}>(scriptPath: string | URL, options?: NewOptionsType)
|
|
2448
|
+
=> ResultPromise<OptionsType & NewOptionsType>;
|
|
2449
|
+
|
|
2450
|
+
export { $, ExecaError, ExecaSyncError, execa, execaNode, execaSync, getCancelSignal, getEachMessage, getOneMessage, parseCommandString, sendMessage };
|
|
2451
|
+
export type { ExecaMethod, ExecaNodeMethod, ExecaScriptMethod, ExecaScriptSyncMethod, ExecaSyncMethod, Message, Options, Result, ResultPromise, StdinOption, StdinSyncOption, StdoutStderrOption, StdoutStderrSyncOption, Subprocess, SyncOptions, SyncResult, SyncVerboseObject, TemplateExpression, VerboseObject };
|