flex-plugins-utils-spawn
Advanced tools
Comparing version 0.19.0 to 4.5.1-dev.202103291654
"use strict"; | ||
/* eslint-disable import/no-unused-modules */ | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.spawn = exports.default = exports.yarn = exports.npm = exports.node = void 0; | ||
var spawn_1 = require("./lib/spawn"); | ||
@@ -7,4 +12,4 @@ Object.defineProperty(exports, "node", { enumerable: true, get: function () { return spawn_1.node; } }); | ||
Object.defineProperty(exports, "yarn", { enumerable: true, get: function () { return spawn_1.yarn; } }); | ||
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return spawn_1.default; } }); | ||
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(spawn_1).default; } }); | ||
Object.defineProperty(exports, "spawn", { enumerable: true, get: function () { return spawn_1.spawn; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -12,6 +12,31 @@ /// <reference types="node" /> | ||
export declare type SpawnPromise = SPromise<SpawnReturn>; | ||
/** | ||
* A wrapper for spawn | ||
* | ||
* @param cmd the shell command node vs yarn to use | ||
* @param args the spawn arguments | ||
* @param options the spawn options | ||
*/ | ||
export declare const spawn: (cmd: string, args: string[], options?: object) => SpawnPromise; | ||
/** | ||
* Spawns a node | ||
* | ||
* @param args the spawn arguments | ||
* @param options the spawn options | ||
*/ | ||
export declare const node: (args: string[], options?: object) => SpawnPromise; | ||
/** | ||
* Spawns an npm | ||
* | ||
* @param args the spawn arguments | ||
* @param options the spawn options | ||
*/ | ||
export declare const npm: (args: string[], options?: object) => SpawnPromise; | ||
/** | ||
* Spawns a yarn | ||
* | ||
* @param args the spawn arguments | ||
* @param options the spawn options | ||
*/ | ||
export declare const yarn: (args: string[], options?: object) => SpawnPromise; | ||
export default spawn; |
"use strict"; | ||
/* eslint-disable import/no-unused-modules, @typescript-eslint/ban-types, @typescript-eslint/promise-function-async */ | ||
var __assign = (this && this.__assign) || function () { | ||
@@ -21,3 +22,10 @@ __assign = Object.assign || function(t) { | ||
var DefaultOptions = { stdio: 'inherit' }; | ||
exports.spawn = function (cmd, args, options) { | ||
/** | ||
* A wrapper for spawn | ||
* | ||
* @param cmd the shell command node vs yarn to use | ||
* @param args the spawn arguments | ||
* @param options the spawn options | ||
*/ | ||
var spawn = function (cmd, args, options) { | ||
if (options === void 0) { options = DefaultOptions; } | ||
@@ -51,15 +59,37 @@ var spawnOptions = __assign({ shell: process.env.SHELL }, options); | ||
}; | ||
exports.node = function (args, options) { | ||
exports.spawn = spawn; | ||
/** | ||
* Spawns a node | ||
* | ||
* @param args the spawn arguments | ||
* @param options the spawn options | ||
*/ | ||
var node = function (args, options) { | ||
if (options === void 0) { options = DefaultOptions; } | ||
return exports.spawn('node', args, options); | ||
}; | ||
exports.npm = function (args, options) { | ||
exports.node = node; | ||
/** | ||
* Spawns an npm | ||
* | ||
* @param args the spawn arguments | ||
* @param options the spawn options | ||
*/ | ||
var npm = function (args, options) { | ||
if (options === void 0) { options = DefaultOptions; } | ||
return exports.spawn('npm', args, options); | ||
}; | ||
exports.yarn = function (args, options) { | ||
exports.npm = npm; | ||
/** | ||
* Spawns a yarn | ||
* | ||
* @param args the spawn arguments | ||
* @param options the spawn options | ||
*/ | ||
var yarn = function (args, options) { | ||
if (options === void 0) { options = DefaultOptions; } | ||
return exports.spawn('yarn', args, options); | ||
}; | ||
exports.yarn = yarn; | ||
exports.default = exports.spawn; | ||
//# sourceMappingURL=spawn.js.map |
{ | ||
"name": "flex-plugins-utils-spawn", | ||
"version": "0.19.0", | ||
"version": "4.5.1-dev.202103291654", | ||
"description": "Flex Plugins Spawns", | ||
@@ -10,9 +10,9 @@ "keywords": [ | ||
], | ||
"homepage": "https://github.com/twilio/flex-plugins-utils-spawn#readme", | ||
"homepage": "https://github.com/twilio/flex-plugin-builder", | ||
"bugs": { | ||
"url": "https://github.com/twilio/flex-plugins-utils-spawn/issues" | ||
"url": "https://github.com/twilio/flex-plugin-builder/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/twilio/flex-plugins-utils-spawn.git" | ||
"url": "git+https://github.com/twilio/flex-plugin-builder.git" | ||
}, | ||
@@ -35,3 +35,3 @@ "license": "MIT", | ||
"prebuild": "npm run clean", | ||
"build": "tsc", | ||
"build": "../../node_modules/.bin/tsc", | ||
"clean": "rm -rf dist", | ||
@@ -41,10 +41,10 @@ "lint": "eslint --ext ts src/", | ||
"prepublish": "npm run build", | ||
"test": "cd ../.. && jest packages/flex-plugins-utils-spawn", | ||
"test:watch": "cd ../.. && jest packages/flex-plugins-utils-spawn --watch" | ||
"test": "cd ../.. && jest packages/flex-dev-utils --color", | ||
"test:watch": "cd ../.. && jest packages/flex-dev-utils --watch --color" | ||
}, | ||
"dependencies": { | ||
"execa": "^4.0.3", | ||
"flex-plugins-utils-logger": "^0.19.0" | ||
"flex-plugins-utils-logger": "^4.5.1-dev.202103291654" | ||
}, | ||
"gitHead": "c30bba85fc858f3833333201ea50a74a4b584702" | ||
"gitHead": "43ac792b54fcf24aba4a5c4dddfb47760ee5a5ce" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
11857
147
0
1
+ Addedflex-plugins-utils-env@4.5.1-nightly.20210409(transitive)
+ Addedflex-plugins-utils-logger@4.5.1-nightly.20210409(transitive)
- Removedflex-plugins-utils-env@0.19.0(transitive)
- Removedflex-plugins-utils-logger@0.19.0(transitive)