release-please
Advanced tools
Comparing version 13.18.1 to 13.18.2
@@ -19,2 +19,3 @@ "use strict"; | ||
const default_1 = require("../changelog-notes/default"); | ||
const errors_1 = require("../errors"); | ||
const changelogNotesFactories = { | ||
@@ -29,3 +30,3 @@ github: options => new github_1.GitHubChangelogNotes(options.github), | ||
} | ||
throw new Error(`Unknown changelog type: ${options.type}`); | ||
throw new errors_1.ConfigurationError(`Unknown changelog type: ${options.type}`, 'core', `${options.github.repository.owner}/${options.github.repository.repo}`); | ||
} | ||
@@ -32,0 +33,0 @@ exports.buildChangelogNotes = buildChangelogNotes; |
@@ -21,2 +21,3 @@ "use strict"; | ||
const maven_workspace_1 = require("../plugins/maven-workspace"); | ||
const errors_1 = require("../errors"); | ||
const pluginFactories = { | ||
@@ -34,3 +35,3 @@ 'linked-versions': options => new linked_versions_1.LinkedVersions(options.github, options.targetBranch, options.repositoryConfig, options.type.groupName, options.type.components), | ||
} | ||
throw new Error(`Unknown plugin type: ${options.type.type}`); | ||
throw new errors_1.ConfigurationError(`Unknown plugin type: ${options.type.type}`, 'core', `${options.github.repository.owner}/${options.github.repository.repo}`); | ||
} | ||
@@ -42,3 +43,3 @@ else { | ||
} | ||
throw new Error(`Unknown plugin type: ${options.type}`); | ||
throw new errors_1.ConfigurationError(`Unknown plugin type: ${options.type}`, 'core', `${options.github.repository.owner}/${options.github.repository.repo}`); | ||
} | ||
@@ -45,0 +46,0 @@ } |
import { VersioningStrategy } from '../versioning-strategy'; | ||
import { GitHub } from '../github'; | ||
export declare type VersioningStrategyType = string; | ||
@@ -7,2 +8,3 @@ export interface VersioningStrategyFactoryOptions { | ||
bumpPatchForMinorPreMajor?: boolean; | ||
github: GitHub; | ||
} | ||
@@ -9,0 +11,0 @@ export declare type VersioningStrategyBuilder = (options: VersioningStrategyFactoryOptions) => VersioningStrategy; |
@@ -20,2 +20,3 @@ "use strict"; | ||
const service_pack_1 = require("../versioning-strategies/service-pack"); | ||
const errors_1 = require("../errors"); | ||
const versioningTypes = { | ||
@@ -31,3 +32,3 @@ default: options => new default_1.DefaultVersioningStrategy(options), | ||
} | ||
throw new Error(`Unknown versioning strategy type: ${options.type}`); | ||
throw new errors_1.ConfigurationError(`Unknown versioning strategy type: ${options.type}`, 'core', `${options.github.repository.owner}/${options.github.repository.repo}`); | ||
} | ||
@@ -34,0 +35,0 @@ exports.buildVersioningStrategy = buildVersioningStrategy; |
@@ -56,2 +56,3 @@ "use strict"; | ||
const changelog_notes_factory_1 = require("./factories/changelog-notes-factory"); | ||
const errors_1 = require("./errors"); | ||
__exportStar(require("./factories/changelog-notes-factory"), exports); | ||
@@ -101,2 +102,3 @@ __exportStar(require("./factories/plugin-factory"), exports); | ||
const versioningStrategy = (0, versioning_strategy_factory_1.buildVersioningStrategy)({ | ||
github: options.github, | ||
type: options.versioning, | ||
@@ -122,3 +124,3 @@ bumpMinorPreMajor: options.bumpMinorPreMajor, | ||
} | ||
throw new Error(`Unknown release type: ${options.releaseType}`); | ||
throw new errors_1.ConfigurationError(`Unknown release type: ${options.releaseType}`, 'core', `${options.github.repository.owner}/${options.github.repository.repo}`); | ||
} | ||
@@ -125,0 +127,0 @@ exports.buildStrategy = buildStrategy; |
{ | ||
"name": "release-please", | ||
"version": "13.18.1", | ||
"version": "13.18.2", | ||
"description": "generate release PRs based on the conventionalcommits.org spec", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/index.js", |
Sorry, the diff of this file is too big to display
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
720516
13580