@boll/cli
Advanced tools
Comparing version 1.2.1 to 2.0.0
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -20,0 +20,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -17,3 +21,3 @@ if (k2 === undefined) k2 = k; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -37,3 +41,3 @@ return result; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -69,3 +73,3 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
var vso_formatter_1 = require("./lib/vso-formatter"); | ||
var fileExistsAsync = util_1.promisify(fs.exists); | ||
var fileExistsAsync = (0, util_1.promisify)(fs.exists); | ||
var parser = new argparse_1.ArgumentParser({ description: "@boll/cli" }); | ||
@@ -137,3 +141,3 @@ parser.addArgument("--azure-devops", { help: "Enable Azure DevOps pipeline output formatter.", action: "storeTrue" }); | ||
case 0: | ||
fullConfigPath = path_1.resolve(core_1.configFileName); | ||
fullConfigPath = (0, path_1.resolve)(core_1.configFileName); | ||
return [4 /*yield*/, fileExistsAsync(fullConfigPath)]; | ||
@@ -143,3 +147,3 @@ case 1: | ||
if (!exists) { | ||
this.logger.error("Unable to find " + fullConfigPath + "; consider running \"init\" to create example config."); | ||
this.logger.error("Unable to find ".concat(fullConfigPath, "; consider running \"init\" to create example config.")); | ||
} | ||
@@ -146,0 +150,0 @@ config = new core_1.Config(core_1.ConfigRegistryInstance, core_1.RuleRegistryInstance, this.logger); |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -47,3 +47,3 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
var fs_1 = require("fs"); | ||
var copyFileAsync = util_1.promisify(fs_1.copyFile); | ||
var copyFileAsync = (0, util_1.promisify)(fs_1.copyFile); | ||
var ConfigGenerator = /** @class */ (function () { | ||
@@ -50,0 +50,0 @@ function ConfigGenerator() { |
@@ -8,2 +8,3 @@ "use strict"; | ||
*/ | ||
exports.bootstrapConfigurations = function () { }; | ||
var bootstrapConfigurations = function () { }; | ||
exports.bootstrapConfigurations = bootstrapConfigurations; |
@@ -14,3 +14,3 @@ "use strict"; | ||
VsoFormatter.prototype.warn = function (str) { | ||
return "##[warning]" + str; | ||
return "##[warning]".concat(str); | ||
}; | ||
@@ -21,3 +21,3 @@ VsoFormatter.prototype.info = function (str) { | ||
VsoFormatter.prototype.error = function (str) { | ||
return "##[error]" + str; | ||
return "##[error]".concat(str); | ||
}; | ||
@@ -24,0 +24,0 @@ return VsoFormatter; |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -17,3 +21,3 @@ if (k2 === undefined) k2 = k; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -37,3 +41,3 @@ return result; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -65,3 +69,3 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
var path_1 = require("path"); | ||
var fileExistsAsync = util_1.promisify(fs.exists); | ||
var fileExistsAsync = (0, util_1.promisify)(fs.exists); | ||
function buildSuite(logger) { | ||
@@ -73,3 +77,3 @@ return __awaiter(this, void 0, void 0, function () { | ||
case 0: | ||
fullConfigPath = path_1.resolve(core_1.configFileName); | ||
fullConfigPath = (0, path_1.resolve)(core_1.configFileName); | ||
return [4 /*yield*/, fileExistsAsync(fullConfigPath)]; | ||
@@ -79,3 +83,3 @@ case 1: | ||
if (!exists) { | ||
logger.error("Unable to find " + fullConfigPath + "; consider running \"init\" to create example config."); | ||
logger.error("Unable to find ".concat(fullConfigPath, "; consider running \"init\" to create example config.")); | ||
} | ||
@@ -82,0 +86,0 @@ config = new core_1.Config(core_1.ConfigRegistryInstance, core_1.RuleRegistryInstance, logger); |
@@ -1,4 +0,2 @@ | ||
declare const _exports: { | ||
extends: string; | ||
}; | ||
export = _exports; | ||
declare const _extends: string; | ||
export { _extends as extends }; |
@@ -5,2 +5,2 @@ "use strict"; | ||
var cli_test_1 = require("./cli.test"); | ||
test_internal_1.suite(cli_test_1.test); | ||
(0, test_internal_1.suite)(cli_test_1.test); |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -17,3 +21,3 @@ if (k2 === undefined) k2 = k; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
@@ -37,3 +41,3 @@ return result; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -71,8 +75,8 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
var util_1 = require("util"); | ||
var existsAsync = util_1.promisify(fs_1.exists); | ||
exports.test = baretest_1.default("CLI"); | ||
exports.test("should create example config file when invoked with `init`", function () { return __awaiter(void 0, void 0, void 0, function () { | ||
var existsAsync = (0, util_1.promisify)(fs_1.exists); | ||
exports.test = (0, baretest_1.default)("CLI"); | ||
(0, exports.test)("should create example config file when invoked with `init`", function () { return __awaiter(void 0, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, test_internal_1.inTmpDir(function () { return __awaiter(void 0, void 0, void 0, function () { | ||
case 0: return [4 /*yield*/, (0, test_internal_1.inTmpDir)(function () { return __awaiter(void 0, void 0, void 0, function () { | ||
var configExistsPrecondition, sut, configExistsExpected; | ||
@@ -79,0 +83,0 @@ return __generator(this, function (_a) { |
@@ -10,6 +10,6 @@ { | ||
"dependencies": { | ||
"@boll/core": "2.0.0", | ||
"@boll/core": "3.0.0", | ||
"argparse": "^1.0.10", | ||
"fast-glob": "^3.2.4", | ||
"typescript": "^3.9.7", | ||
"typescript": "^4.9.4", | ||
"yaml": "^1.10.0" | ||
@@ -24,3 +24,3 @@ }, | ||
"baretest": "^2.0.0", | ||
"prettier": "^2.0.5", | ||
"prettier": "^2.8.1", | ||
"rimraf": "^3.0.2", | ||
@@ -53,3 +53,3 @@ "ts-node-dev": "^1.0.0-pre.58", | ||
}, | ||
"version": "1.2.1" | ||
"version": "2.0.0" | ||
} |
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
31669
25
623
+ Added@boll/core@3.0.0(transitive)
+ Added@yarnpkg/lockfile@1.1.0(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedarray-union@2.1.0(transitive)
+ Addeddir-glob@3.0.1(transitive)
+ Addedgit-up@7.0.0(transitive)
+ Addedgit-url-parse@13.1.1(transitive)
+ Addedglobby@11.1.0(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedis-ssh@1.4.0(transitive)
+ Addedjju@1.4.0(transitive)
+ Addedjs-yaml@4.1.0(transitive)
+ Addedparse-path@7.0.0(transitive)
+ Addedparse-url@8.1.0(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedprotocols@2.0.1(transitive)
+ Addedslash@3.0.0(transitive)
+ Addedtypescript@4.9.5(transitive)
+ Addedworkspace-tools@0.29.1(transitive)
- Removed@boll/core@2.0.0(transitive)
- Removedtypescript@3.9.10(transitive)
Updated@boll/core@3.0.0
Updatedtypescript@^4.9.4