@fern-api/fern-api-dev 4.71.4 → 4.71.5-10-g03878fd7592
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.cjs +31 -8
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -345300,7 +345300,8 @@ var require_GithubStep = __commonJS({
|
|
|
345300
345300
|
}
|
|
345301
345301
|
}
|
|
345302
345302
|
const finalCommitMessage = this.config.commitMessage ?? "SDK Generation";
|
|
345303
|
-
const
|
|
345303
|
+
const headSha = await repository.getHeadSha();
|
|
345304
|
+
const changelogUrl = this.config.changelogEntry ? `https://github.com/${this.config.uri}/blob/${headSha}/changelog.md` : void 0;
|
|
345304
345305
|
const { prTitle, prBody } = (0, parseCommitMessage_1.parseCommitMessageForPR)(finalCommitMessage, this.config.changelogEntry, this.config.prDescription, this.config.versionBumpReason, this.config.previousVersion, this.config.newVersion, this.config.versionBump, changelogUrl);
|
|
345305
345306
|
const replaySection = (0, replay_summary_1.formatReplayPrBody)(replayResult, { branchName: prBranch, repoUri: this.config.uri });
|
|
345306
345307
|
let enrichedBody = replaySection != null ? prBody + "\n\n---\n\n" + replaySection : prBody;
|
|
@@ -621393,7 +621394,7 @@ var AccessTokenPosthogManager = class {
|
|
|
621393
621394
|
properties: {
|
|
621394
621395
|
...event,
|
|
621395
621396
|
...event.properties,
|
|
621396
|
-
version: "4.71.
|
|
621397
|
+
version: "4.71.5-10-g03878fd7592",
|
|
621397
621398
|
usingAccessToken: true
|
|
621398
621399
|
}
|
|
621399
621400
|
});
|
|
@@ -621447,7 +621448,7 @@ var UserPosthogManager = class {
|
|
|
621447
621448
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
621448
621449
|
event: "CLI",
|
|
621449
621450
|
properties: {
|
|
621450
|
-
version: "4.71.
|
|
621451
|
+
version: "4.71.5-10-g03878fd7592",
|
|
621451
621452
|
...event,
|
|
621452
621453
|
...event.properties,
|
|
621453
621454
|
usingAccessToken: false,
|
|
@@ -838546,7 +838547,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
838546
838547
|
var LOGS_FOLDER_NAME = "logs";
|
|
838547
838548
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
838548
838549
|
function getCliSource() {
|
|
838549
|
-
const version7 = "4.71.
|
|
838550
|
+
const version7 = "4.71.5-10-g03878fd7592";
|
|
838550
838551
|
return `cli@${version7}`;
|
|
838551
838552
|
}
|
|
838552
838553
|
var DebugLogger = class {
|
|
@@ -849793,7 +849794,7 @@ var LegacyDocsPublisher = class {
|
|
|
849793
849794
|
previewId,
|
|
849794
849795
|
disableTemplates: void 0,
|
|
849795
849796
|
skipUpload,
|
|
849796
|
-
cliVersion: "4.71.
|
|
849797
|
+
cliVersion: "4.71.5-10-g03878fd7592"
|
|
849797
849798
|
});
|
|
849798
849799
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
849799
849800
|
return { success: false };
|
|
@@ -924146,7 +924147,7 @@ var CliContext = class _CliContext {
|
|
|
924146
924147
|
if (false) {
|
|
924147
924148
|
this.logger.error("CLI_VERSION is not defined");
|
|
924148
924149
|
}
|
|
924149
|
-
return "4.71.
|
|
924150
|
+
return "4.71.5-10-g03878fd7592";
|
|
924150
924151
|
}
|
|
924151
924152
|
getCliName() {
|
|
924152
924153
|
if (false) {
|
|
@@ -934227,6 +934228,26 @@ function getExcludeRules(brokenLinks, strictBrokenLinks) {
|
|
|
934227
934228
|
return excludeRules;
|
|
934228
934229
|
}
|
|
934229
934230
|
|
|
934231
|
+
// src/commands/generate/shouldSkipGenerator.ts
|
|
934232
|
+
function shouldSkipGenerator({
|
|
934233
|
+
generator,
|
|
934234
|
+
rootAutorelease
|
|
934235
|
+
}) {
|
|
934236
|
+
if (!generator.automation.generate) {
|
|
934237
|
+
return true;
|
|
934238
|
+
}
|
|
934239
|
+
if (generator.absolutePathToLocalOutput != null) {
|
|
934240
|
+
return true;
|
|
934241
|
+
}
|
|
934242
|
+
if (generator.raw?.autorelease === false) {
|
|
934243
|
+
return true;
|
|
934244
|
+
}
|
|
934245
|
+
if (generator.raw?.autorelease == null && rootAutorelease === false) {
|
|
934246
|
+
return true;
|
|
934247
|
+
}
|
|
934248
|
+
return false;
|
|
934249
|
+
}
|
|
934250
|
+
|
|
934230
934251
|
// src/commands/generate-dynamic-ir/generateDynamicIrForWorkspaces.ts
|
|
934231
934252
|
init_lib6();
|
|
934232
934253
|
var import_path83 = __toESM(require("path"), 1);
|
|
@@ -944503,14 +944524,16 @@ function addAutomationsListGenerateCommand(cli, cliContext) {
|
|
|
944503
944524
|
});
|
|
944504
944525
|
const commands = [];
|
|
944505
944526
|
for (const workspace of project.apiWorkspaces) {
|
|
944506
|
-
const
|
|
944527
|
+
const generatorsConfiguration = workspace.generatorsConfiguration;
|
|
944528
|
+
const groups2 = generatorsConfiguration?.groups ?? [];
|
|
944529
|
+
const rootAutorelease = generatorsConfiguration?.rawConfiguration.autorelease;
|
|
944507
944530
|
for (const group of groups2) {
|
|
944508
944531
|
if (argv.group != null && group.groupName !== argv.group) {
|
|
944509
944532
|
continue;
|
|
944510
944533
|
}
|
|
944511
944534
|
for (let i11 = 0; i11 < group.generators.length; i11++) {
|
|
944512
944535
|
const generator = group.generators[i11];
|
|
944513
|
-
if (generator == null ||
|
|
944536
|
+
if (generator == null || shouldSkipGenerator({ generator, rootAutorelease })) {
|
|
944514
944537
|
continue;
|
|
944515
944538
|
}
|
|
944516
944539
|
const parts = ["fern", "automations", "generate"];
|
package/package.json
CHANGED