Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
chore: build dist (#739)
Browse files Browse the repository at this point in the history
Build dist PR
  • Loading branch information
google-github-actions-bot authored Mar 28, 2023
1 parent 9997fc9 commit 05f4032
Showing 1 changed file with 24 additions and 16 deletions.
40 changes: 24 additions & 16 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86224,7 +86224,10 @@ const errors_1 = __nccwpck_require__(93637);
const sentence_case_1 = __nccwpck_require__(36662);
const group_priority_1 = __nccwpck_require__(83172);
const pluginFactories = {
'linked-versions': options => new linked_versions_1.LinkedVersions(options.github, options.targetBranch, options.repositoryConfig, options.type.groupName, options.type.components),
'linked-versions': options => new linked_versions_1.LinkedVersions(options.github, options.targetBranch, options.repositoryConfig, options.type.groupName, options.type.components, {
...options,
...options.type,
}),
'cargo-workspace': options => new cargo_workspace_1.CargoWorkspace(options.github, options.targetBranch, options.repositoryConfig, {
...options,
...options.type,
Expand Down Expand Up @@ -86379,7 +86382,7 @@ const python_1 = __nccwpck_require__(32109);
const ruby_1 = __nccwpck_require__(68142);
const ruby_yoshi_1 = __nccwpck_require__(72294);
const rust_1 = __nccwpck_require__(43066);
const salesforce_1 = __nccwpck_require__(42085);
const sfdx_1 = __nccwpck_require__(87648);
const simple_1 = __nccwpck_require__(10591);
const terraform_module_1 = __nccwpck_require__(80908);
const helm_1 = __nccwpck_require__(97687);
Expand Down Expand Up @@ -86432,7 +86435,8 @@ const releasers = {
ruby: options => new ruby_1.Ruby(options),
'ruby-yoshi': options => new ruby_yoshi_1.RubyYoshi(options),
rust: options => new rust_1.Rust(options),
salesforce: options => new salesforce_1.Salesforce(options),
salesforce: options => new sfdx_1.Sfdx(options),
sfdx: options => new sfdx_1.Sfdx(options),
simple: options => new simple_1.Simple(options),
'terraform-module': options => new terraform_module_1.TerraformModule(options),
helm: options => new helm_1.Helm(options),
Expand Down Expand Up @@ -88877,6 +88881,7 @@ const pull_request_body_1 = __nccwpck_require__(70774);
const branch_name_1 = __nccwpck_require__(16344);
const versioning_strategy_1 = __nccwpck_require__(41941);
const cargo_lock_1 = __nccwpck_require__(68875);
const errors_1 = __nccwpck_require__(93637);
/**
* The plugin analyzed a cargo workspace and will bump dependencies
* of managed packages if those dependencies are being updated.
Expand All @@ -88895,7 +88900,7 @@ class CargoWorkspace extends workspace_1.WorkspacePlugin {
}
const allCrates = [];
const candidatesByPackage = {};
const members = cargoManifest.workspace.members;
const members = (await Promise.all(cargoManifest.workspace.members.map(member => this.github.findFilesByGlob(member)))).flat();
members.push(manifest_1.ROOT_PROJECT_PATH);
for (const path of members) {
const manifestPath = (0, workspace_1.addPath)(path, 'Cargo.toml');
Expand All @@ -88915,7 +88920,10 @@ class CargoWorkspace extends workspace_1.WorkspacePlugin {
}
const version = (_d = manifest.package) === null || _d === void 0 ? void 0 : _d.version;
if (!version) {
throw new Error(`package manifest at ${manifestPath} is missing [package.version]`);
throw new errors_1.ConfigurationError(`package manifest at ${manifestPath} is missing [package.version]`, 'cargo-workspace', `${this.github.repository.owner}/${this.github.repository.repo}`);
}
else if (typeof version !== 'string') {
throw new errors_1.ConfigurationError(`package manifest at ${manifestPath} has an invalid [package.version]`, 'cargo-workspace', `${this.github.repository.owner}/${this.github.repository.repo}`);
}
allCrates.push({
path,
Expand Down Expand Up @@ -93523,7 +93531,7 @@ exports.Rust = Rust;

/***/ }),

/***/ 42085:
/***/ 87648:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {

"use strict";
Expand All @@ -93542,13 +93550,13 @@ exports.Rust = Rust;
// See the License for the specific language governing permissions and
// limitations under the License.
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.Salesforce = void 0;
exports.Sfdx = void 0;
const base_1 = __nccwpck_require__(95081);
const changelog_1 = __nccwpck_require__(3325);
const errors_1 = __nccwpck_require__(93637);
const sfdx_project_json_1 = __nccwpck_require__(618);
const sfdx_project_json_1 = __nccwpck_require__(15688);
const sfdxProjectJsonFileName = 'sfdx-project.json';
class Salesforce extends base_1.BaseStrategy {
class Sfdx extends base_1.BaseStrategy {
async buildUpdates(options) {
const updates = [];
const version = options.newVersion;
Expand Down Expand Up @@ -93583,16 +93591,16 @@ class Salesforce extends base_1.BaseStrategy {
}
catch (e) {
if (e instanceof errors_1.FileNotFoundError) {
throw new errors_1.MissingRequiredFileError(this.addPath(sfdxProjectJsonFileName), 'salesforce', `${this.repository.owner}/${this.repository.repo}`);
throw new errors_1.MissingRequiredFileError(this.addPath(sfdxProjectJsonFileName), 'sfdx', `${this.repository.owner}/${this.repository.repo}`);
}
throw e;
}
}
return this.sfdxProjectJsonContents;
}
}
exports.Salesforce = Salesforce;
//# sourceMappingURL=salesforce.js.map
exports.Sfdx = Sfdx;
//# sourceMappingURL=sfdx.js.map

/***/ }),

Expand Down Expand Up @@ -96233,7 +96241,7 @@ exports.parseCargoLockfile = parseCargoLockfile;

/***/ }),

/***/ 618:
/***/ 15688:
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {

"use strict";
Expand All @@ -96257,7 +96265,7 @@ const json_stringify_1 = __nccwpck_require__(69227);
const logger_1 = __nccwpck_require__(68809);
const default_1 = __nccwpck_require__(69995);
/**
* This updates a Salesfore sfdx-project.json file's main version.
* This updates a sfdx sfdx-project.json file's main version.
*/
class SfdxProjectJson extends default_1.DefaultUpdater {
/**
Expand Down Expand Up @@ -97163,7 +97171,7 @@ function generateMatchPattern(pullRequestTitlePattern, logger = logger_1.logger)
.replace('(', '\\(')
.replace(')', '\\)')
.replace('${scope}', '(\\((?<branch>[\\w-./]+)\\))?')
.replace('${component}', ' ?(?<component>[\\w-./]*)?')
.replace('${component}', ' ?(?<component>@?[\\w-./]*)?')
.replace('${version}', 'v?(?<version>[0-9].*)')
.replace('${branch}', '(?<branch>[\\w-./]+)?')}$`);
}
Expand Down Expand Up @@ -119567,7 +119575,7 @@ module.exports = {};
/***/ ((module) => {

"use strict";
module.exports = {"i8":"15.8.1"};
module.exports = {"i8":"15.9.1"};

/***/ }),

Expand Down

0 comments on commit 05f4032

Please sign in to comment.