@jsdevtools/version-bump-prompt
Advanced tools
Comparing version 6.0.4 to 6.0.5
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.main = void 0; | ||
// tslint:disable: no-console | ||
const log_symbols_1 = require("log-symbols"); | ||
@@ -46,3 +45,2 @@ const manifest_1 = require("../manifest"); | ||
function progress({ event, script, updatedFiles, skippedFiles, newVersion }) { | ||
// tslint:disable-next-line: switch-default | ||
switch (event) { | ||
@@ -49,0 +47,0 @@ case "file updated" /* FileUpdated */: |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.parseArgs = void 0; | ||
// tslint:disable: no-console | ||
const commandLineArgs = require("command-line-args"); | ||
@@ -44,3 +43,3 @@ const semver = require("semver"); | ||
if (args.preid === null) { | ||
throw new Error(`The --preid option requires a value, such as "alpha", "beta", etc.`); | ||
throw new Error("The --preid option requires a value, such as \"alpha\", \"beta\", etc."); | ||
} | ||
@@ -47,0 +46,0 @@ // If --commit is used without an argument, then treat it as a boolean flag |
@@ -36,3 +36,2 @@ "use strict"; | ||
let filePath = path.join(cwd, name); | ||
// tslint:disable-next-line ban | ||
fs.readFile(filePath, "utf8", (err, text) => { | ||
@@ -57,3 +56,2 @@ if (err) { | ||
return new Promise((resolve, reject) => { | ||
// tslint:disable-next-line ban | ||
fs.writeFile(file.path, file.data, (err) => { | ||
@@ -60,0 +58,0 @@ if (err) { |
@@ -6,3 +6,3 @@ "use strict"; | ||
const semver = require("semver"); | ||
const semver_1 = require("semver"); // tslint:disable-line: no-duplicate-imports | ||
const semver_1 = require("semver"); | ||
const release_type_1 = require("./release-type"); | ||
@@ -44,3 +44,3 @@ /** | ||
// But the user probably expected it to be "1.23.456-beta.1" instead. | ||
// @ts-ignore | ||
// @ts-expect-error - TypeScript thinks this array is read-only | ||
newSemVer.prerelease[1] = "1"; | ||
@@ -47,0 +47,0 @@ newSemVer.format(); |
@@ -14,3 +14,2 @@ "use strict"; | ||
exports.versionBump = void 0; | ||
// tslint:disable: no-default-export | ||
const version_bump_1 = require("./version-bump"); | ||
@@ -24,4 +23,4 @@ Object.defineProperty(exports, "versionBump", { enumerable: true, get: function () { return version_bump_1.versionBump; } }); | ||
if (typeof module === "object" && typeof module.exports === "object") { | ||
module.exports = Object.assign(module.exports.default, module.exports); // tslint:disable-line: no-unsafe-any | ||
module.exports = Object.assign(module.exports.default, module.exports); | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -5,6 +5,5 @@ "use strict"; | ||
// NOTE: We can't `import` the package.json file because it's outside of the "src" directory. | ||
// tslint:disable-next-line: no-var-requires no-require-imports | ||
// eslint-disable-next-line @typescript-eslint/no-require-imports, @typescript-eslint/no-var-requires | ||
const manifest = require("../package.json"); | ||
exports.manifest = manifest; | ||
// tslint:disable: no-any no-unsafe-any | ||
/** | ||
@@ -11,0 +10,0 @@ * Determines whether the specified value is a package manifest. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.normalizeOptions = void 0; | ||
const globby = require("globby"); // tslint:disable-line: no-require-imports | ||
const globby = require("globby"); | ||
const globby_1 = require("globby"); | ||
@@ -69,3 +69,3 @@ const release_type_1 = require("./release-type"); | ||
if (release.type === "prompt" && !(ui.input && ui.output)) { | ||
throw new Error(`Cannot prompt for the version number because input or output has been disabled.`); | ||
throw new Error("Cannot prompt for the version number because input or output has been disabled."); | ||
} | ||
@@ -72,0 +72,0 @@ return { release, commit, tag, push, files, cwd, interface: ui }; |
@@ -51,3 +51,2 @@ "use strict"; | ||
let options = await normalize_options_1.normalizeOptions(input); | ||
// tslint:disable-next-line: no-unbound-method | ||
return new Operation(options, input.progress); | ||
@@ -54,0 +53,0 @@ } |
@@ -12,3 +12,2 @@ "use strict"; | ||
exports.releaseTypes = exports.prereleaseTypes.concat(["major", "minor", "patch"]); | ||
// tslint:disable: no-any no-unsafe-any | ||
/** | ||
@@ -15,0 +14,0 @@ * Determines whether the specified value is a pre-release. |
{ | ||
"name": "@jsdevtools/version-bump-prompt", | ||
"version": "6.0.4", | ||
"version": "6.0.5", | ||
"description": "Automatically (or with prompts) bump your version number, commit changes, tag, and push to Git", | ||
@@ -38,5 +38,3 @@ "keywords": [ | ||
"clean": "shx rm -rf .nyc_output coverage lib", | ||
"lint": "npm run lint:typescript && npm run lint:javascript", | ||
"lint:typescript": "tslint -p tsconfig.json", | ||
"lint:javascript": "eslint test", | ||
"lint": "eslint src test", | ||
"build": "tsc", | ||
@@ -52,4 +50,3 @@ "watch": "tsc --watch", | ||
"@jsdevtools/chai-exec": "^2.1.0", | ||
"@jsdevtools/eslint-config-modular": "^8.0.3", | ||
"@jsdevtools/tslint-modular": "^2.0.5", | ||
"@jsdevtools/eslint-config": "^1.0.1", | ||
"@types/chai": "^4.2.11", | ||
@@ -59,3 +56,3 @@ "@types/command-line-args": "^5.0.0", | ||
"@types/inquirer": "^6.5.0", | ||
"@types/mocha": "^7.0.1", | ||
"@types/mocha": "^8.0.0", | ||
"@types/node": "^14.0.22", | ||
@@ -71,5 +68,3 @@ "@types/semver": "^7.3.1", | ||
"strip-ansi": "^6.0.0", | ||
"tslint": "^6.1.2", | ||
"typescript": "^3.9.6", | ||
"typescript-tslint-plugin": "^0.5.5" | ||
"typescript": "^3.9.6" | ||
}, | ||
@@ -76,0 +71,0 @@ "dependencies": { |
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
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
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
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
18
94673
1422