Skip to content

Commit 05f4032

Browse files
chore: build dist (#739)
Build dist PR
1 parent 9997fc9 commit 05f4032

1 file changed

Lines changed: 24 additions & 16 deletions

File tree

dist/index.js

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86224,7 +86224,10 @@ const errors_1 = __nccwpck_require__(93637);
8622486224
const sentence_case_1 = __nccwpck_require__(36662);
8622586225
const group_priority_1 = __nccwpck_require__(83172);
8622686226
const pluginFactories = {
86227-
'linked-versions': options => new linked_versions_1.LinkedVersions(options.github, options.targetBranch, options.repositoryConfig, options.type.groupName, options.type.components),
86227+
'linked-versions': options => new linked_versions_1.LinkedVersions(options.github, options.targetBranch, options.repositoryConfig, options.type.groupName, options.type.components, {
86228+
...options,
86229+
...options.type,
86230+
}),
8622886231
'cargo-workspace': options => new cargo_workspace_1.CargoWorkspace(options.github, options.targetBranch, options.repositoryConfig, {
8622986232
...options,
8623086233
...options.type,
@@ -86379,7 +86382,7 @@ const python_1 = __nccwpck_require__(32109);
8637986382
const ruby_1 = __nccwpck_require__(68142);
8638086383
const ruby_yoshi_1 = __nccwpck_require__(72294);
8638186384
const rust_1 = __nccwpck_require__(43066);
86382-
const salesforce_1 = __nccwpck_require__(42085);
86385+
const sfdx_1 = __nccwpck_require__(87648);
8638386386
const simple_1 = __nccwpck_require__(10591);
8638486387
const terraform_module_1 = __nccwpck_require__(80908);
8638586388
const helm_1 = __nccwpck_require__(97687);
@@ -86432,7 +86435,8 @@ const releasers = {
8643286435
ruby: options => new ruby_1.Ruby(options),
8643386436
'ruby-yoshi': options => new ruby_yoshi_1.RubyYoshi(options),
8643486437
rust: options => new rust_1.Rust(options),
86435-
salesforce: options => new salesforce_1.Salesforce(options),
86438+
salesforce: options => new sfdx_1.Sfdx(options),
86439+
sfdx: options => new sfdx_1.Sfdx(options),
8643686440
simple: options => new simple_1.Simple(options),
8643786441
'terraform-module': options => new terraform_module_1.TerraformModule(options),
8643886442
helm: options => new helm_1.Helm(options),
@@ -88877,6 +88881,7 @@ const pull_request_body_1 = __nccwpck_require__(70774);
8887788881
const branch_name_1 = __nccwpck_require__(16344);
8887888882
const versioning_strategy_1 = __nccwpck_require__(41941);
8887988883
const cargo_lock_1 = __nccwpck_require__(68875);
88884+
const errors_1 = __nccwpck_require__(93637);
8888088885
/**
8888188886
* The plugin analyzed a cargo workspace and will bump dependencies
8888288887
* of managed packages if those dependencies are being updated.
@@ -88895,7 +88900,7 @@ class CargoWorkspace extends workspace_1.WorkspacePlugin {
8889588900
}
8889688901
const allCrates = [];
8889788902
const candidatesByPackage = {};
88898-
const members = cargoManifest.workspace.members;
88903+
const members = (await Promise.all(cargoManifest.workspace.members.map(member => this.github.findFilesByGlob(member)))).flat();
8889988904
members.push(manifest_1.ROOT_PROJECT_PATH);
8890088905
for (const path of members) {
8890188906
const manifestPath = (0, workspace_1.addPath)(path, 'Cargo.toml');
@@ -88915,7 +88920,10 @@ class CargoWorkspace extends workspace_1.WorkspacePlugin {
8891588920
}
8891688921
const version = (_d = manifest.package) === null || _d === void 0 ? void 0 : _d.version;
8891788922
if (!version) {
88918-
throw new Error(`package manifest at ${manifestPath} is missing [package.version]`);
88923+
throw new errors_1.ConfigurationError(`package manifest at ${manifestPath} is missing [package.version]`, 'cargo-workspace', `${this.github.repository.owner}/${this.github.repository.repo}`);
88924+
}
88925+
else if (typeof version !== 'string') {
88926+
throw new errors_1.ConfigurationError(`package manifest at ${manifestPath} has an invalid [package.version]`, 'cargo-workspace', `${this.github.repository.owner}/${this.github.repository.repo}`);
8891988927
}
8892088928
allCrates.push({
8892188929
path,
@@ -93523,7 +93531,7 @@ exports.Rust = Rust;
9352393531

9352493532
/***/ }),
9352593533

93526-
/***/ 42085:
93534+
/***/ 87648:
9352793535
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
9352893536

9352993537
"use strict";
@@ -93542,13 +93550,13 @@ exports.Rust = Rust;
9354293550
// See the License for the specific language governing permissions and
9354393551
// limitations under the License.
9354493552
Object.defineProperty(exports, "__esModule", ({ value: true }));
93545-
exports.Salesforce = void 0;
93553+
exports.Sfdx = void 0;
9354693554
const base_1 = __nccwpck_require__(95081);
9354793555
const changelog_1 = __nccwpck_require__(3325);
9354893556
const errors_1 = __nccwpck_require__(93637);
93549-
const sfdx_project_json_1 = __nccwpck_require__(618);
93557+
const sfdx_project_json_1 = __nccwpck_require__(15688);
9355093558
const sfdxProjectJsonFileName = 'sfdx-project.json';
93551-
class Salesforce extends base_1.BaseStrategy {
93559+
class Sfdx extends base_1.BaseStrategy {
9355293560
async buildUpdates(options) {
9355393561
const updates = [];
9355493562
const version = options.newVersion;
@@ -93583,16 +93591,16 @@ class Salesforce extends base_1.BaseStrategy {
9358393591
}
9358493592
catch (e) {
9358593593
if (e instanceof errors_1.FileNotFoundError) {
93586-
throw new errors_1.MissingRequiredFileError(this.addPath(sfdxProjectJsonFileName), 'salesforce', `${this.repository.owner}/${this.repository.repo}`);
93594+
throw new errors_1.MissingRequiredFileError(this.addPath(sfdxProjectJsonFileName), 'sfdx', `${this.repository.owner}/${this.repository.repo}`);
9358793595
}
9358893596
throw e;
9358993597
}
9359093598
}
9359193599
return this.sfdxProjectJsonContents;
9359293600
}
9359393601
}
93594-
exports.Salesforce = Salesforce;
93595-
//# sourceMappingURL=salesforce.js.map
93602+
exports.Sfdx = Sfdx;
93603+
//# sourceMappingURL=sfdx.js.map
9359693604

9359793605
/***/ }),
9359893606

@@ -96233,7 +96241,7 @@ exports.parseCargoLockfile = parseCargoLockfile;
9623396241

9623496242
/***/ }),
9623596243

96236-
/***/ 618:
96244+
/***/ 15688:
9623796245
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
9623896246

9623996247
"use strict";
@@ -96257,7 +96265,7 @@ const json_stringify_1 = __nccwpck_require__(69227);
9625796265
const logger_1 = __nccwpck_require__(68809);
9625896266
const default_1 = __nccwpck_require__(69995);
9625996267
/**
96260-
* This updates a Salesfore sfdx-project.json file's main version.
96268+
* This updates a sfdx sfdx-project.json file's main version.
9626196269
*/
9626296270
class SfdxProjectJson extends default_1.DefaultUpdater {
9626396271
/**
@@ -97163,7 +97171,7 @@ function generateMatchPattern(pullRequestTitlePattern, logger = logger_1.logger)
9716397171
.replace('(', '\\(')
9716497172
.replace(')', '\\)')
9716597173
.replace('${scope}', '(\\((?<branch>[\\w-./]+)\\))?')
97166-
.replace('${component}', ' ?(?<component>[\\w-./]*)?')
97174+
.replace('${component}', ' ?(?<component>@?[\\w-./]*)?')
9716797175
.replace('${version}', 'v?(?<version>[0-9].*)')
9716897176
.replace('${branch}', '(?<branch>[\\w-./]+)?')}$`);
9716997177
}
@@ -119567,7 +119575,7 @@ module.exports = {};
119567119575
/***/ ((module) => {
119568119576

119569119577
"use strict";
119570-
module.exports = {"i8":"15.8.1"};
119578+
module.exports = {"i8":"15.9.1"};
119571119579

119572119580
/***/ }),
119573119581

0 commit comments

Comments
 (0)