gulp-shell
Advanced tools
Comparing version 0.7.1 to 0.8.0
"use strict"; | ||
var _this = this; | ||
var tslib_1 = require("tslib"); | ||
@@ -28,3 +27,3 @@ var chalk_1 = tslib_1.__importDefault(require("chalk")); | ||
var newPath = pathToBin + path.delimiter + process.env[pathName]; | ||
var env = tslib_1.__assign({}, process.env, (_a = {}, _a[pathName] = newPath, _a), options.env); | ||
var env = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, process.env), (_a = {}, _a[pathName] = newPath, _a)), options.env); | ||
return tslib_1.__assign({ cwd: process.cwd(), env: env, shell: true, quiet: false, verbose: false, ignoreErrors: false, errorMessage: 'Command `<%= command %>` failed with exit code <%= error.code %>', templateData: {} }, options); | ||
@@ -56,3 +55,3 @@ }; | ||
}; | ||
var runCommands = function (commands, options, file) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
var runCommands = function (commands, options, file) { return tslib_1.__awaiter(void 0, void 0, void 0, function () { | ||
var _i, commands_1, command; | ||
@@ -86,8 +85,7 @@ return tslib_1.__generator(this, function (_a) { | ||
_this.push(file); | ||
done(); | ||
}) | ||
.catch(function (error) { | ||
_this.emit('error', error); | ||
done(); | ||
}); | ||
}) | ||
.finally(done); | ||
}); | ||
@@ -97,6 +95,4 @@ stream.resume(); | ||
}; | ||
shell.task = function (commands, options) { return function () { | ||
return runCommands(normalizeCommands(commands), normalizeOptions(options), null); | ||
}; }; | ||
shell.task = function (commands, options) { return function () { return runCommands(normalizeCommands(commands), normalizeOptions(options), null); }; }; | ||
module.exports = shell; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "gulp-shell", | ||
"version": "0.7.1", | ||
"version": "0.8.0", | ||
"description": "A handy command line interface for gulp", | ||
"main": "./lib/index.js", | ||
"types": "./lib/index.d.ts", | ||
"main": "lib/index.js", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
"lib/index.*" | ||
"lib/index.d.ts", | ||
"lib/index.d.ts.map", | ||
"lib/index.js", | ||
"lib/index.js.map" | ||
], | ||
@@ -36,31 +39,31 @@ "scripts": { | ||
"@types/gulp": "^4.0.6", | ||
"@types/jest": "^24.0.13", | ||
"@types/jest": "^25.1.2", | ||
"@types/lodash.template": "^4.4.6", | ||
"@types/node": "^12.0.7", | ||
"@types/node": "^13.7.1", | ||
"@types/through2": "^2.0.34", | ||
"@typescript-eslint/eslint-plugin": "^1.9.0", | ||
"@typescript-eslint/parser": "^1.9.0", | ||
"coveralls": "^3.0.4", | ||
"eslint": "^5.16.0", | ||
"eslint-config-prettier": "^4.3.0", | ||
"eslint-plugin-jest": "^22.6.4", | ||
"@typescript-eslint/eslint-plugin": "^2.19.2", | ||
"@typescript-eslint/parser": "^2.19.2", | ||
"coveralls": "^3.0.9", | ||
"eslint": "^6.8.0", | ||
"eslint-config-prettier": "^6.10.0", | ||
"eslint-plugin-jest": "^23.7.0", | ||
"gulp": "^4.0.2", | ||
"jest": "^24.8.0", | ||
"prettier": "^1.18.0", | ||
"ts-jest": "^24.0.2", | ||
"ts-node": "^8.2.0", | ||
"typescript": "^3.5.1", | ||
"jest": "^25.1.0", | ||
"prettier": "^1.19.1", | ||
"ts-jest": "^25.2.0", | ||
"ts-node": "^8.6.2", | ||
"typescript": "^3.7.5", | ||
"vinyl": "^2.2.0" | ||
}, | ||
"dependencies": { | ||
"chalk": "^2.4.2", | ||
"chalk": "^3.0.0", | ||
"fancy-log": "^1.3.3", | ||
"lodash.template": "^4.4.0", | ||
"lodash.template": "^4.5.0", | ||
"plugin-error": "^1.0.1", | ||
"through2": "^3.0.1", | ||
"tslib": "^1.9.3" | ||
"tslib": "^1.10.0" | ||
}, | ||
"engines": { | ||
"node": ">=6.0.0" | ||
"node": ">=10.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14524
109
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@3.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedsupports-color@5.5.0(transitive)
Updatedchalk@^3.0.0
Updatedlodash.template@^4.5.0
Updatedtslib@^1.10.0