@slicemachine/manager 0.5.0 → 0.5.1-dev-next-release.4
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/_node_modules/cross-spawn/index.cjs +10 -7
- package/dist/_node_modules/cross-spawn/index.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/index.js +12 -9
- package/dist/_node_modules/cross-spawn/index.js.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/enoent.cjs +2 -1
- package/dist/_node_modules/cross-spawn/lib/enoent.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/enoent.js +1 -1
- package/dist/_node_modules/cross-spawn/lib/parse.cjs +4 -3
- package/dist/_node_modules/cross-spawn/lib/parse.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/parse.js +3 -3
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.cjs +3 -2
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.js +2 -2
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.cjs +5 -5
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.js +3 -4
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.js.map +1 -1
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/core.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/core.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/main.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/main.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/realtime.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/realtime.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/signals.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/signals.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/is-stream/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/is-stream/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/mimic-fn/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/mimic-fn/index.js.map +1 -0
- package/dist/_node_modules/{npm-run-path → execa/_node_modules/npm-run-path}/index.cjs +1 -1
- package/dist/_node_modules/execa/_node_modules/npm-run-path/index.cjs.map +1 -0
- package/dist/_node_modules/{npm-run-path → execa/_node_modules/npm-run-path}/index.js +1 -1
- package/dist/_node_modules/execa/_node_modules/npm-run-path/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/onetime/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/onetime/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/path-key/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/path-key/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/strip-final-newline/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/strip-final-newline/index.js.map +1 -0
- package/dist/_node_modules/execa/index.cjs +5 -6
- package/dist/_node_modules/execa/index.cjs.map +1 -1
- package/dist/_node_modules/execa/index.js +5 -6
- package/dist/_node_modules/execa/index.js.map +1 -1
- package/dist/_node_modules/execa/lib/error.cjs +1 -1
- package/dist/_node_modules/execa/lib/error.js +1 -1
- package/dist/_node_modules/execa/lib/kill.cjs +2 -3
- package/dist/_node_modules/execa/lib/kill.cjs.map +1 -1
- package/dist/_node_modules/execa/lib/kill.js +2 -3
- package/dist/_node_modules/execa/lib/kill.js.map +1 -1
- package/dist/_node_modules/execa/lib/pipe.cjs +1 -1
- package/dist/_node_modules/execa/lib/pipe.js +1 -1
- package/dist/_node_modules/execa/lib/stream.cjs +4 -5
- package/dist/_node_modules/execa/lib/stream.cjs.map +1 -1
- package/dist/_node_modules/execa/lib/stream.js +4 -5
- package/dist/_node_modules/execa/lib/stream.js.map +1 -1
- package/dist/_node_modules/file-type/core.cjs +54 -0
- package/dist/_node_modules/file-type/core.cjs.map +1 -1
- package/dist/_node_modules/file-type/core.js +54 -0
- package/dist/_node_modules/file-type/core.js.map +1 -1
- package/dist/_node_modules/file-type/supported.cjs +308 -0
- package/dist/_node_modules/file-type/supported.cjs.map +1 -0
- package/dist/_node_modules/file-type/supported.js +308 -0
- package/dist/_node_modules/file-type/supported.js.map +1 -0
- package/dist/_node_modules/fp-ts/es6/Either.cjs.map +1 -1
- package/dist/_node_modules/fp-ts/es6/Either.js.map +1 -1
- package/dist/_node_modules/fp-ts/es6/function.cjs +11 -0
- package/dist/_node_modules/fp-ts/es6/function.cjs.map +1 -1
- package/dist/_node_modules/fp-ts/es6/function.js +11 -0
- package/dist/_node_modules/fp-ts/es6/function.js.map +1 -1
- package/dist/_node_modules/fp-ts/es6/internal.cjs.map +1 -1
- package/dist/_node_modules/fp-ts/es6/internal.js.map +1 -1
- package/dist/_node_modules/get-stream/buffer-stream.cjs +2 -1
- package/dist/_node_modules/get-stream/buffer-stream.cjs.map +1 -1
- package/dist/_node_modules/get-stream/buffer-stream.js +1 -1
- package/dist/_node_modules/get-stream/index.cjs +8 -5
- package/dist/_node_modules/get-stream/index.cjs.map +1 -1
- package/dist/_node_modules/get-stream/index.js +10 -7
- package/dist/_node_modules/get-stream/index.js.map +1 -1
- package/dist/_node_modules/isexe/index.cjs +2 -1
- package/dist/_node_modules/isexe/index.cjs.map +1 -1
- package/dist/_node_modules/isexe/index.js +1 -1
- package/dist/_node_modules/merge-stream/index.cjs +3 -1
- package/dist/_node_modules/merge-stream/index.cjs.map +1 -1
- package/dist/_node_modules/merge-stream/index.js +3 -1
- package/dist/_node_modules/merge-stream/index.js.map +1 -1
- package/dist/_node_modules/p-limit/_node_modules/yocto-queue/index.cjs.map +1 -0
- package/dist/_node_modules/p-limit/_node_modules/yocto-queue/index.js.map +1 -0
- package/dist/_node_modules/p-limit/index.cjs +1 -1
- package/dist/_node_modules/p-limit/index.js +1 -1
- package/dist/_node_modules/path-key/index.cjs +4 -2
- package/dist/_node_modules/path-key/index.cjs.map +1 -1
- package/dist/_node_modules/path-key/index.js +4 -3
- package/dist/_node_modules/path-key/index.js.map +1 -1
- package/dist/_node_modules/shebang-command/index.cjs +3 -2
- package/dist/_node_modules/shebang-command/index.cjs.map +1 -1
- package/dist/_node_modules/shebang-command/index.js +2 -2
- package/dist/_node_modules/shebang-regex/index.cjs +2 -1
- package/dist/_node_modules/shebang-regex/index.cjs.map +1 -1
- package/dist/_node_modules/shebang-regex/index.js +1 -1
- package/dist/_node_modules/signal-exit/index.cjs +6 -4
- package/dist/_node_modules/signal-exit/index.cjs.map +1 -1
- package/dist/_node_modules/signal-exit/index.js +8 -6
- package/dist/_node_modules/signal-exit/index.js.map +1 -1
- package/dist/_node_modules/signal-exit/signals.cjs +2 -2
- package/dist/_node_modules/signal-exit/signals.js +3 -3
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs +3 -3
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +4 -4
- package/dist/_node_modules/which/which.cjs +3 -2
- package/dist/_node_modules/which/which.cjs.map +1 -1
- package/dist/_node_modules/which/which.js +2 -2
- package/dist/_virtual/_commonjsHelpers.cjs +4 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -1
- package/dist/_virtual/_commonjsHelpers.js +5 -1
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/index.cjs +1 -9
- package/dist/_virtual/index.cjs.map +1 -1
- package/dist/_virtual/index.js +2 -11
- package/dist/_virtual/index.js.map +1 -1
- package/dist/_virtual/index2.cjs +1 -9
- package/dist/_virtual/index2.cjs.map +1 -1
- package/dist/_virtual/index2.js +2 -11
- package/dist/_virtual/index2.js.map +1 -1
- package/dist/_virtual/index3.cjs +1 -9
- package/dist/_virtual/index3.cjs.map +1 -1
- package/dist/_virtual/index3.js +2 -11
- package/dist/_virtual/index3.js.map +1 -1
- package/dist/_virtual/index4.cjs +1 -9
- package/dist/_virtual/index4.cjs.map +1 -1
- package/dist/_virtual/index4.js +2 -11
- package/dist/_virtual/index4.js.map +1 -1
- package/dist/_virtual/ponyfill.es2018.cjs +1 -9
- package/dist/_virtual/ponyfill.es2018.cjs.map +1 -1
- package/dist/_virtual/ponyfill.es2018.js +2 -11
- package/dist/_virtual/ponyfill.es2018.js.map +1 -1
- package/dist/_virtual/signals.cjs +1 -9
- package/dist/_virtual/signals.cjs.map +1 -1
- package/dist/_virtual/signals.js +2 -11
- package/dist/_virtual/signals.js.map +1 -1
- package/dist/lib/installDependencies.cjs +6 -6
- package/dist/lib/installDependencies.cjs.map +1 -1
- package/dist/lib/installDependencies.js +6 -6
- package/dist/lib/installDependencies.js.map +1 -1
- package/dist/managers/screenshots/ScreenshotsManager.cjs +1 -1
- package/dist/managers/screenshots/ScreenshotsManager.js +1 -1
- package/package.json +38 -40
- package/src/lib/installDependencies.ts +6 -6
- package/dist/_node_modules/human-signals/build/src/core.cjs.map +0 -1
- package/dist/_node_modules/human-signals/build/src/core.js.map +0 -1
- package/dist/_node_modules/human-signals/build/src/main.cjs.map +0 -1
- package/dist/_node_modules/human-signals/build/src/main.js.map +0 -1
- package/dist/_node_modules/human-signals/build/src/realtime.cjs.map +0 -1
- package/dist/_node_modules/human-signals/build/src/realtime.js.map +0 -1
- package/dist/_node_modules/human-signals/build/src/signals.cjs.map +0 -1
- package/dist/_node_modules/human-signals/build/src/signals.js.map +0 -1
- package/dist/_node_modules/is-stream/index.cjs.map +0 -1
- package/dist/_node_modules/is-stream/index.js.map +0 -1
- package/dist/_node_modules/mimic-fn/index.cjs.map +0 -1
- package/dist/_node_modules/mimic-fn/index.js.map +0 -1
- package/dist/_node_modules/npm-run-path/_node_modules/path-key/index.cjs.map +0 -1
- package/dist/_node_modules/npm-run-path/_node_modules/path-key/index.js.map +0 -1
- package/dist/_node_modules/npm-run-path/index.cjs.map +0 -1
- package/dist/_node_modules/npm-run-path/index.js.map +0 -1
- package/dist/_node_modules/onetime/index.cjs.map +0 -1
- package/dist/_node_modules/onetime/index.js.map +0 -1
- package/dist/_node_modules/strip-final-newline/index.cjs.map +0 -1
- package/dist/_node_modules/strip-final-newline/index.js.map +0 -1
- package/dist/_node_modules/yocto-queue/index.cjs.map +0 -1
- package/dist/_node_modules/yocto-queue/index.js.map +0 -1
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/core.cjs +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/core.js +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/main.cjs +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/main.js +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/realtime.cjs +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/realtime.js +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/signals.cjs +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/signals.js +0 -0
- /package/dist/_node_modules/{is-stream → execa/_node_modules/is-stream}/index.cjs +0 -0
- /package/dist/_node_modules/{is-stream → execa/_node_modules/is-stream}/index.js +0 -0
- /package/dist/_node_modules/{mimic-fn → execa/_node_modules/mimic-fn}/index.cjs +0 -0
- /package/dist/_node_modules/{mimic-fn → execa/_node_modules/mimic-fn}/index.js +0 -0
- /package/dist/_node_modules/{onetime → execa/_node_modules/onetime}/index.cjs +0 -0
- /package/dist/_node_modules/{onetime → execa/_node_modules/onetime}/index.js +0 -0
- /package/dist/_node_modules/{npm-run-path → execa}/_node_modules/path-key/index.cjs +0 -0
- /package/dist/_node_modules/{npm-run-path → execa}/_node_modules/path-key/index.js +0 -0
- /package/dist/_node_modules/{strip-final-newline → execa/_node_modules/strip-final-newline}/index.cjs +0 -0
- /package/dist/_node_modules/{strip-final-newline → execa/_node_modules/strip-final-newline}/index.js +0 -0
- /package/dist/_node_modules/{yocto-queue → p-limit/_node_modules/yocto-queue}/index.cjs +0 -0
- /package/dist/_node_modules/{yocto-queue → p-limit/_node_modules/yocto-queue}/index.js +0 -0
|
@@ -5,7 +5,7 @@ const ponyfill_es2018 = require("../../../_virtual/ponyfill.es2018.cjs");
|
|
|
5
5
|
var hasRequiredPonyfill_es2018;
|
|
6
6
|
function requirePonyfill_es2018() {
|
|
7
7
|
if (hasRequiredPonyfill_es2018)
|
|
8
|
-
return ponyfill_es2018.exports;
|
|
8
|
+
return ponyfill_es2018.__module.exports;
|
|
9
9
|
hasRequiredPonyfill_es2018 = 1;
|
|
10
10
|
(function(module2, exports2) {
|
|
11
11
|
(function(global, factory) {
|
|
@@ -3815,8 +3815,8 @@ function requirePonyfill_es2018() {
|
|
|
3815
3815
|
exports3.WritableStreamDefaultWriter = WritableStreamDefaultWriter;
|
|
3816
3816
|
Object.defineProperty(exports3, "__esModule", { value: true });
|
|
3817
3817
|
});
|
|
3818
|
-
})(ponyfill_es2018.__module, ponyfill_es2018.exports);
|
|
3819
|
-
return ponyfill_es2018.exports;
|
|
3818
|
+
})(ponyfill_es2018.__module, ponyfill_es2018.__module.exports);
|
|
3819
|
+
return ponyfill_es2018.__module.exports;
|
|
3820
3820
|
}
|
|
3821
3821
|
exports.__require = requirePonyfill_es2018;
|
|
3822
3822
|
//# sourceMappingURL=ponyfill.es2018.cjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { commonjsGlobal } from "../../../_virtual/_commonjsHelpers.js";
|
|
2
|
-
import {
|
|
2
|
+
import { __module as ponyfill_es2018 } from "../../../_virtual/ponyfill.es2018.js";
|
|
3
3
|
var hasRequiredPonyfill_es2018;
|
|
4
4
|
function requirePonyfill_es2018() {
|
|
5
5
|
if (hasRequiredPonyfill_es2018)
|
|
6
|
-
return
|
|
6
|
+
return ponyfill_es2018.exports;
|
|
7
7
|
hasRequiredPonyfill_es2018 = 1;
|
|
8
8
|
(function(module, exports) {
|
|
9
9
|
(function(global, factory) {
|
|
@@ -3813,8 +3813,8 @@ function requirePonyfill_es2018() {
|
|
|
3813
3813
|
exports2.WritableStreamDefaultWriter = WritableStreamDefaultWriter;
|
|
3814
3814
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
3815
3815
|
});
|
|
3816
|
-
})(ponyfill_es2018,
|
|
3817
|
-
return
|
|
3816
|
+
})(ponyfill_es2018, ponyfill_es2018.exports);
|
|
3817
|
+
return ponyfill_es2018.exports;
|
|
3818
3818
|
}
|
|
3819
3819
|
export {
|
|
3820
3820
|
requirePonyfill_es2018 as __require
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
3
|
const require$$0 = require("path");
|
|
3
4
|
const index = require("../isexe/index.cjs");
|
|
4
5
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
5
6
|
const path = require$$0;
|
|
6
7
|
const COLON = isWindows ? ";" : ":";
|
|
7
|
-
const isexe = index;
|
|
8
|
+
const isexe = index.isexe_1;
|
|
8
9
|
const getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
9
10
|
const getPathInfo = (cmd, opt) => {
|
|
10
11
|
const colon = opt.colon || COLON;
|
|
@@ -91,5 +92,5 @@ const whichSync = (cmd, opt) => {
|
|
|
91
92
|
};
|
|
92
93
|
var which_1 = which;
|
|
93
94
|
which.sync = whichSync;
|
|
94
|
-
|
|
95
|
+
exports.which_1 = which_1;
|
|
95
96
|
//# sourceMappingURL=which.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"which.cjs","sources":["../../../../../node_modules/which/which.js"],"sourcesContent":["const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n"],"names":["require$$1"],"mappings":"
|
|
1
|
+
{"version":3,"file":"which.cjs","sources":["../../../../../node_modules/which/which.js"],"sourcesContent":["const isWindows = process.platform === 'win32' ||\n process.env.OSTYPE === 'cygwin' ||\n process.env.OSTYPE === 'msys'\n\nconst path = require('path')\nconst COLON = isWindows ? ';' : ':'\nconst isexe = require('isexe')\n\nconst getNotFoundError = (cmd) =>\n Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })\n\nconst getPathInfo = (cmd, opt) => {\n const colon = opt.colon || COLON\n\n // If it has a slash, then we don't bother searching the pathenv.\n // just check the file itself, and that's it.\n const pathEnv = cmd.match(/\\//) || isWindows && cmd.match(/\\\\/) ? ['']\n : (\n [\n // windows always checks the cwd first\n ...(isWindows ? [process.cwd()] : []),\n ...(opt.path || process.env.PATH ||\n /* istanbul ignore next: very unusual */ '').split(colon),\n ]\n )\n const pathExtExe = isWindows\n ? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'\n : ''\n const pathExt = isWindows ? pathExtExe.split(colon) : ['']\n\n if (isWindows) {\n if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')\n pathExt.unshift('')\n }\n\n return {\n pathEnv,\n pathExt,\n pathExtExe,\n }\n}\n\nconst which = (cmd, opt, cb) => {\n if (typeof opt === 'function') {\n cb = opt\n opt = {}\n }\n if (!opt)\n opt = {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n const step = i => new Promise((resolve, reject) => {\n if (i === pathEnv.length)\n return opt.all && found.length ? resolve(found)\n : reject(getNotFoundError(cmd))\n\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n resolve(subStep(p, i, 0))\n })\n\n const subStep = (p, i, ii) => new Promise((resolve, reject) => {\n if (ii === pathExt.length)\n return resolve(step(i + 1))\n const ext = pathExt[ii]\n isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {\n if (!er && is) {\n if (opt.all)\n found.push(p + ext)\n else\n return resolve(p + ext)\n }\n return resolve(subStep(p, i, ii + 1))\n })\n })\n\n return cb ? step(0).then(res => cb(null, res), cb) : step(0)\n}\n\nconst whichSync = (cmd, opt) => {\n opt = opt || {}\n\n const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)\n const found = []\n\n for (let i = 0; i < pathEnv.length; i ++) {\n const ppRaw = pathEnv[i]\n const pathPart = /^\".*\"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw\n\n const pCmd = path.join(pathPart, cmd)\n const p = !pathPart && /^\\.[\\\\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd\n : pCmd\n\n for (let j = 0; j < pathExt.length; j ++) {\n const cur = p + pathExt[j]\n try {\n const is = isexe.sync(cur, { pathExt: pathExtExe })\n if (is) {\n if (opt.all)\n found.push(cur)\n else\n return cur\n }\n } catch (ex) {}\n }\n }\n\n if (opt.all && found.length)\n return found\n\n if (opt.nothrow)\n return null\n\n throw getNotFoundError(cmd)\n}\n\nmodule.exports = which\nwhich.sync = whichSync\n"],"names":["require$$1"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import require$$0 from "path";
|
|
2
|
-
import isexe_1 from "../isexe/index.js";
|
|
2
|
+
import { i as isexe_1 } from "../isexe/index.js";
|
|
3
3
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
4
4
|
const path = require$$0;
|
|
5
5
|
const COLON = isWindows ? ";" : ":";
|
|
@@ -91,6 +91,6 @@ const whichSync = (cmd, opt) => {
|
|
|
91
91
|
var which_1 = which;
|
|
92
92
|
which.sync = whichSync;
|
|
93
93
|
export {
|
|
94
|
-
which_1 as
|
|
94
|
+
which_1 as w
|
|
95
95
|
};
|
|
96
96
|
//# sourceMappingURL=which.js.map
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
4
|
+
function getDefaultExportFromCjs(x) {
|
|
5
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
6
|
+
}
|
|
4
7
|
exports.commonjsGlobal = commonjsGlobal;
|
|
8
|
+
exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
|
|
5
9
|
//# sourceMappingURL=_commonjsHelpers.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_commonjsHelpers.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_commonjsHelpers.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
2
|
+
function getDefaultExportFromCjs(x) {
|
|
3
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
4
|
+
}
|
|
2
5
|
export {
|
|
3
|
-
commonjsGlobal
|
|
6
|
+
commonjsGlobal,
|
|
7
|
+
getDefaultExportFromCjs
|
|
4
8
|
};
|
|
5
9
|
//# sourceMappingURL=_commonjsHelpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index.cjs
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
var crossSpawn = {
|
|
5
|
-
get exports() {
|
|
6
|
-
return exports.exports;
|
|
7
|
-
},
|
|
8
|
-
set exports(v) {
|
|
9
|
-
exports.exports = v;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
3
|
+
var crossSpawn = { exports: {} };
|
|
12
4
|
exports.__module = crossSpawn;
|
|
13
5
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var crossSpawn = {
|
|
3
|
-
get exports() {
|
|
4
|
-
return crossSpawnExports;
|
|
5
|
-
},
|
|
6
|
-
set exports(v) {
|
|
7
|
-
crossSpawnExports = v;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
1
|
+
var crossSpawn = { exports: {} };
|
|
10
2
|
export {
|
|
11
|
-
crossSpawn as __module
|
|
12
|
-
crossSpawnExports as exports
|
|
3
|
+
crossSpawn as __module
|
|
13
4
|
};
|
|
14
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/_virtual/index2.cjs
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
var signalExit = {
|
|
5
|
-
get exports() {
|
|
6
|
-
return exports.exports;
|
|
7
|
-
},
|
|
8
|
-
set exports(v) {
|
|
9
|
-
exports.exports = v;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
3
|
+
var signalExit = { exports: {} };
|
|
12
4
|
exports.__module = signalExit;
|
|
13
5
|
//# sourceMappingURL=index2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index2.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index2.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var signalExit = {
|
|
3
|
-
get exports() {
|
|
4
|
-
return signalExitExports;
|
|
5
|
-
},
|
|
6
|
-
set exports(v) {
|
|
7
|
-
signalExitExports = v;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
1
|
+
var signalExit = { exports: {} };
|
|
10
2
|
export {
|
|
11
|
-
signalExit as __module
|
|
12
|
-
signalExitExports as exports
|
|
3
|
+
signalExit as __module
|
|
13
4
|
};
|
|
14
5
|
//# sourceMappingURL=index2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/_virtual/index3.cjs
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
var getStream = {
|
|
5
|
-
get exports() {
|
|
6
|
-
return exports.exports;
|
|
7
|
-
},
|
|
8
|
-
set exports(v) {
|
|
9
|
-
exports.exports = v;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
3
|
+
var getStream = { exports: {} };
|
|
12
4
|
exports.__module = getStream;
|
|
13
5
|
//# sourceMappingURL=index3.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index3.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index3.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var getStream = {
|
|
3
|
-
get exports() {
|
|
4
|
-
return getStreamExports;
|
|
5
|
-
},
|
|
6
|
-
set exports(v) {
|
|
7
|
-
getStreamExports = v;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
1
|
+
var getStream = { exports: {} };
|
|
10
2
|
export {
|
|
11
|
-
getStream as __module
|
|
12
|
-
getStreamExports as exports
|
|
3
|
+
getStream as __module
|
|
13
4
|
};
|
|
14
5
|
//# sourceMappingURL=index3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/_virtual/index4.cjs
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
var pathKey = {
|
|
5
|
-
get exports() {
|
|
6
|
-
return exports.exports;
|
|
7
|
-
},
|
|
8
|
-
set exports(v) {
|
|
9
|
-
exports.exports = v;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
3
|
+
var pathKey = { exports: {} };
|
|
12
4
|
exports.__module = pathKey;
|
|
13
5
|
//# sourceMappingURL=index4.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index4.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index4.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/index4.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var pathKey = {
|
|
3
|
-
get exports() {
|
|
4
|
-
return pathKeyExports;
|
|
5
|
-
},
|
|
6
|
-
set exports(v) {
|
|
7
|
-
pathKeyExports = v;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
1
|
+
var pathKey = { exports: {} };
|
|
10
2
|
export {
|
|
11
|
-
pathKey as __module
|
|
12
|
-
pathKeyExports as exports
|
|
3
|
+
pathKey as __module
|
|
13
4
|
};
|
|
14
5
|
//# sourceMappingURL=index4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index4.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
var ponyfill_es2018 = {
|
|
5
|
-
get exports() {
|
|
6
|
-
return exports.exports;
|
|
7
|
-
},
|
|
8
|
-
set exports(v) {
|
|
9
|
-
exports.exports = v;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
3
|
+
var ponyfill_es2018 = { exports: {} };
|
|
12
4
|
exports.__module = ponyfill_es2018;
|
|
13
5
|
//# sourceMappingURL=ponyfill.es2018.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ponyfill.es2018.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ponyfill.es2018.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var ponyfill_es2018 = {
|
|
3
|
-
get exports() {
|
|
4
|
-
return ponyfill_es2018Exports;
|
|
5
|
-
},
|
|
6
|
-
set exports(v) {
|
|
7
|
-
ponyfill_es2018Exports = v;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
1
|
+
var ponyfill_es2018 = { exports: {} };
|
|
10
2
|
export {
|
|
11
|
-
ponyfill_es2018 as __module
|
|
12
|
-
ponyfill_es2018Exports as exports
|
|
3
|
+
ponyfill_es2018 as __module
|
|
13
4
|
};
|
|
14
5
|
//# sourceMappingURL=ponyfill.es2018.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ponyfill.es2018.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ponyfill.es2018.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
|
|
4
|
-
var signals = {
|
|
5
|
-
get exports() {
|
|
6
|
-
return exports.exports;
|
|
7
|
-
},
|
|
8
|
-
set exports(v) {
|
|
9
|
-
exports.exports = v;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
3
|
+
var signals = { exports: {} };
|
|
12
4
|
exports.__module = signals;
|
|
13
5
|
//# sourceMappingURL=signals.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signals.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"signals.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/_virtual/signals.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var signals = {
|
|
3
|
-
get exports() {
|
|
4
|
-
return signalsExports;
|
|
5
|
-
},
|
|
6
|
-
set exports(v) {
|
|
7
|
-
signalsExports = v;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
1
|
+
var signals = { exports: {} };
|
|
10
2
|
export {
|
|
11
|
-
signals as __module
|
|
12
|
-
signalsExports as exports
|
|
3
|
+
signals as __module
|
|
13
4
|
};
|
|
14
5
|
//# sourceMappingURL=signals.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signals.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"signals.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -4,12 +4,12 @@ const ni = require("@antfu/ni");
|
|
|
4
4
|
const index = require('./../_node_modules/execa/index.cjs');
|
|
5
5
|
const EXTRA_INSTALL_FLAGS = {
|
|
6
6
|
npm: ["--color=always", "--loglevel=info"],
|
|
7
|
-
pnpm: [
|
|
8
|
-
yarn: [
|
|
9
|
-
"yarn@berry": [
|
|
10
|
-
"pnpm@6": [
|
|
11
|
-
bun: [
|
|
12
|
-
// TODO:
|
|
7
|
+
pnpm: [],
|
|
8
|
+
yarn: [],
|
|
9
|
+
"yarn@berry": [],
|
|
10
|
+
"pnpm@6": [],
|
|
11
|
+
bun: []
|
|
12
|
+
// TODO: Add the correct options.
|
|
13
13
|
};
|
|
14
14
|
const installDependencies = async (args) => {
|
|
15
15
|
const commandArgs = Object.entries(args.dependencies).map(([pkg, range]) => `${pkg}@${range}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installDependencies.cjs","sources":["../../../src/lib/installDependencies.ts"],"sourcesContent":["import { parseNi } from \"@antfu/ni\";\nimport {\n\tExecaChildProcess,\n\texecaCommand,\n\tOptions as ExacaOptions,\n} from \"execa\";\n\nimport { PackageManager } from \"../types\";\n\nconst EXTRA_INSTALL_FLAGS: Record<PackageManager, string[]> = {\n\tnpm: [\"--color=always\", \"--loglevel=info\"]
|
|
1
|
+
{"version":3,"file":"installDependencies.cjs","sources":["../../../src/lib/installDependencies.ts"],"sourcesContent":["import { parseNi } from \"@antfu/ni\";\nimport {\n\tExecaChildProcess,\n\texecaCommand,\n\tOptions as ExacaOptions,\n} from \"execa\";\n\nimport { PackageManager } from \"../types\";\n\nconst EXTRA_INSTALL_FLAGS: Record<PackageManager, string[]> = {\n\tnpm: [\"--color=always\", \"--loglevel=info\"], // Default: `--color=true --loglevel=notice`.\n\tpnpm: [], // Default: `--color=auto --loglevel=info`.\n\tyarn: [], // TODO: Add the correct options.\n\t\"yarn@berry\": [], // TODO: Add the correct options.\n\t\"pnpm@6\": [], // // TODO: Add the correct options.\n\tbun: [], // TODO: Add the correct options.\n};\n\ntype InstallDependenciesArgs = {\n\tpackageManager: PackageManager;\n\tdependencies: Record<string, string>;\n\tdev?: boolean;\n\texeca?: ExacaOptions;\n};\n\ntype InstallDependenciesReturnType = {\n\texecaProcess: ExecaChildProcess;\n};\n\nexport const installDependencies = async (\n\targs: InstallDependenciesArgs,\n): Promise<InstallDependenciesReturnType> => {\n\tconst commandArgs = Object.entries(args.dependencies).map(\n\t\t([pkg, range]) => `${pkg}@${range}`,\n\t);\n\n\tif (commandArgs.length && args.dev) {\n\t\tcommandArgs.unshift(\"-D\");\n\t}\n\n\tcommandArgs.push(...EXTRA_INSTALL_FLAGS[args.packageManager]);\n\n\tconst command = await parseNi(args.packageManager, commandArgs);\n\n\tif (!command) {\n\t\tthrow new Error(\n\t\t\t\"Failed to begin dependency installation (could not parse command)\",\n\t\t);\n\t}\n\n\tconst execaProcess = execaCommand(command, {\n\t\tencoding: \"utf-8\",\n\t\t...args.execa,\n\t});\n\n\treturn {\n\t\texecaProcess,\n\t};\n};\n"],"names":["parseNi","execaCommand"],"mappings":";;;;AASA,MAAM,sBAAwD;AAAA,EAC7D,KAAK,CAAC,kBAAkB,iBAAiB;AAAA,EACzC,MAAM,CAAE;AAAA,EACR,MAAM,CAAE;AAAA,EACR,cAAc,CAAE;AAAA,EAChB,UAAU,CAAE;AAAA,EACZ,KAAK,CAAE;AAAA;;AAcK,MAAA,sBAAsB,OAClC,SAC2C;AAC3C,QAAM,cAAc,OAAO,QAAQ,KAAK,YAAY,EAAE,IACrD,CAAC,CAAC,KAAK,KAAK,MAAM,GAAG,OAAO,OAAO;AAGhC,MAAA,YAAY,UAAU,KAAK,KAAK;AACnC,gBAAY,QAAQ,IAAI;AAAA,EACxB;AAED,cAAY,KAAK,GAAG,oBAAoB,KAAK,cAAc,CAAC;AAE5D,QAAM,UAAU,MAAMA,GAAQ,QAAA,KAAK,gBAAgB,WAAW;AAE9D,MAAI,CAAC,SAAS;AACP,UAAA,IAAI,MACT,mEAAmE;AAAA,EAEpE;AAEK,QAAA,eAAeC,mBAAa,SAAS;AAAA,IAC1C,UAAU;AAAA,IACV,GAAG,KAAK;AAAA,EAAA,CACR;AAEM,SAAA;AAAA,IACN;AAAA,EAAA;AAEF;;"}
|
|
@@ -2,12 +2,12 @@ import { parseNi } from "@antfu/ni";
|
|
|
2
2
|
import { execaCommand } from './../_node_modules/execa/index.js';
|
|
3
3
|
const EXTRA_INSTALL_FLAGS = {
|
|
4
4
|
npm: ["--color=always", "--loglevel=info"],
|
|
5
|
-
pnpm: [
|
|
6
|
-
yarn: [
|
|
7
|
-
"yarn@berry": [
|
|
8
|
-
"pnpm@6": [
|
|
9
|
-
bun: [
|
|
10
|
-
// TODO:
|
|
5
|
+
pnpm: [],
|
|
6
|
+
yarn: [],
|
|
7
|
+
"yarn@berry": [],
|
|
8
|
+
"pnpm@6": [],
|
|
9
|
+
bun: []
|
|
10
|
+
// TODO: Add the correct options.
|
|
11
11
|
};
|
|
12
12
|
const installDependencies = async (args) => {
|
|
13
13
|
const commandArgs = Object.entries(args.dependencies).map(([pkg, range]) => `${pkg}@${range}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installDependencies.js","sources":["../../../src/lib/installDependencies.ts"],"sourcesContent":["import { parseNi } from \"@antfu/ni\";\nimport {\n\tExecaChildProcess,\n\texecaCommand,\n\tOptions as ExacaOptions,\n} from \"execa\";\n\nimport { PackageManager } from \"../types\";\n\nconst EXTRA_INSTALL_FLAGS: Record<PackageManager, string[]> = {\n\tnpm: [\"--color=always\", \"--loglevel=info\"]
|
|
1
|
+
{"version":3,"file":"installDependencies.js","sources":["../../../src/lib/installDependencies.ts"],"sourcesContent":["import { parseNi } from \"@antfu/ni\";\nimport {\n\tExecaChildProcess,\n\texecaCommand,\n\tOptions as ExacaOptions,\n} from \"execa\";\n\nimport { PackageManager } from \"../types\";\n\nconst EXTRA_INSTALL_FLAGS: Record<PackageManager, string[]> = {\n\tnpm: [\"--color=always\", \"--loglevel=info\"], // Default: `--color=true --loglevel=notice`.\n\tpnpm: [], // Default: `--color=auto --loglevel=info`.\n\tyarn: [], // TODO: Add the correct options.\n\t\"yarn@berry\": [], // TODO: Add the correct options.\n\t\"pnpm@6\": [], // // TODO: Add the correct options.\n\tbun: [], // TODO: Add the correct options.\n};\n\ntype InstallDependenciesArgs = {\n\tpackageManager: PackageManager;\n\tdependencies: Record<string, string>;\n\tdev?: boolean;\n\texeca?: ExacaOptions;\n};\n\ntype InstallDependenciesReturnType = {\n\texecaProcess: ExecaChildProcess;\n};\n\nexport const installDependencies = async (\n\targs: InstallDependenciesArgs,\n): Promise<InstallDependenciesReturnType> => {\n\tconst commandArgs = Object.entries(args.dependencies).map(\n\t\t([pkg, range]) => `${pkg}@${range}`,\n\t);\n\n\tif (commandArgs.length && args.dev) {\n\t\tcommandArgs.unshift(\"-D\");\n\t}\n\n\tcommandArgs.push(...EXTRA_INSTALL_FLAGS[args.packageManager]);\n\n\tconst command = await parseNi(args.packageManager, commandArgs);\n\n\tif (!command) {\n\t\tthrow new Error(\n\t\t\t\"Failed to begin dependency installation (could not parse command)\",\n\t\t);\n\t}\n\n\tconst execaProcess = execaCommand(command, {\n\t\tencoding: \"utf-8\",\n\t\t...args.execa,\n\t});\n\n\treturn {\n\t\texecaProcess,\n\t};\n};\n"],"names":[],"mappings":";;AASA,MAAM,sBAAwD;AAAA,EAC7D,KAAK,CAAC,kBAAkB,iBAAiB;AAAA,EACzC,MAAM,CAAE;AAAA,EACR,MAAM,CAAE;AAAA,EACR,cAAc,CAAE;AAAA,EAChB,UAAU,CAAE;AAAA,EACZ,KAAK,CAAE;AAAA;;AAcK,MAAA,sBAAsB,OAClC,SAC2C;AAC3C,QAAM,cAAc,OAAO,QAAQ,KAAK,YAAY,EAAE,IACrD,CAAC,CAAC,KAAK,KAAK,MAAM,GAAG,OAAO,OAAO;AAGhC,MAAA,YAAY,UAAU,KAAK,KAAK;AACnC,gBAAY,QAAQ,IAAI;AAAA,EACxB;AAED,cAAY,KAAK,GAAG,oBAAoB,KAAK,cAAc,CAAC;AAE5D,QAAM,UAAU,MAAM,QAAQ,KAAK,gBAAgB,WAAW;AAE9D,MAAI,CAAC,SAAS;AACP,UAAA,IAAI,MACT,mEAAmE;AAAA,EAEpE;AAEK,QAAA,eAAe,aAAa,SAAS;AAAA,IAC1C,UAAU;AAAA,IACV,GAAG,KAAK;AAAA,EAAA,CACR;AAEM,SAAA;AAAA,IACN;AAAA,EAAA;AAEF;"}
|
|
@@ -28,7 +28,6 @@ var __publicField = (obj, key, value) => {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
30
30
|
const t = require("io-ts");
|
|
31
|
-
require("node:buffer");
|
|
32
31
|
require("readable-web-to-node-stream");
|
|
33
32
|
const core = require('./../../_node_modules/file-type/core.cjs');
|
|
34
33
|
const fetch = require("../../lib/fetch.cjs");
|
|
@@ -44,6 +43,7 @@ require("node:http");
|
|
|
44
43
|
require("node:https");
|
|
45
44
|
require("node:zlib");
|
|
46
45
|
require("node:stream");
|
|
46
|
+
require("node:buffer");
|
|
47
47
|
require("node:fs");
|
|
48
48
|
require("node:path");
|
|
49
49
|
require('./../../_node_modules/node-domexception/index.cjs');
|
|
@@ -5,7 +5,6 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
import * as t from "io-ts";
|
|
8
|
-
import "node:buffer";
|
|
9
8
|
import "readable-web-to-node-stream";
|
|
10
9
|
import { fileTypeFromBuffer } from './../../_node_modules/file-type/core.js';
|
|
11
10
|
import fetch from "../../lib/fetch.js";
|
|
@@ -21,6 +20,7 @@ import "node:http";
|
|
|
21
20
|
import "node:https";
|
|
22
21
|
import "node:zlib";
|
|
23
22
|
import "node:stream";
|
|
23
|
+
import "node:buffer";
|
|
24
24
|
import "node:fs";
|
|
25
25
|
import "node:path";
|
|
26
26
|
import './../../_node_modules/node-domexception/index.js';
|