@fern-api/fern-api-dev 4.106.2 → 4.106.3
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 +14 -16
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -344254,7 +344254,7 @@ var require_fernignore = __commonJS({
|
|
|
344254
344254
|
"../../generator-cli/lib/replay/fernignore.js"(exports2) {
|
|
344255
344255
|
"use strict";
|
|
344256
344256
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
344257
|
-
exports2.REPLAY_FERNIGNORE_ENTRIES = void 0;
|
|
344257
|
+
exports2.GITATTRIBUTES_ENTRIES = exports2.REPLAY_FERNIGNORE_ENTRIES = void 0;
|
|
344258
344258
|
exports2.ensureReplayFernignoreEntries = ensureReplayFernignoreEntries;
|
|
344259
344259
|
exports2.ensureGitattributesEntries = ensureGitattributesEntries;
|
|
344260
344260
|
exports2.ensureReplayFernignoreEntriesSync = ensureReplayFernignoreEntriesSync;
|
|
@@ -344263,7 +344263,7 @@ var require_fernignore = __commonJS({
|
|
|
344263
344263
|
var promises_1 = require("fs/promises");
|
|
344264
344264
|
var path_1 = require("path");
|
|
344265
344265
|
exports2.REPLAY_FERNIGNORE_ENTRIES = [".fern/replay.lock", ".fern/replay.yml", ".gitattributes"];
|
|
344266
|
-
|
|
344266
|
+
exports2.GITATTRIBUTES_ENTRIES = [".fern/replay.lock linguist-generated=true"];
|
|
344267
344267
|
async function ensureReplayFernignoreEntries(outputDir) {
|
|
344268
344268
|
const fernignorePath = (0, path_1.join)(outputDir, ".fernignore");
|
|
344269
344269
|
let content5 = "";
|
|
@@ -344288,7 +344288,7 @@ var require_fernignore = __commonJS({
|
|
|
344288
344288
|
} catch {
|
|
344289
344289
|
}
|
|
344290
344290
|
const lines = content5.split("\n");
|
|
344291
|
-
const toAdd = GITATTRIBUTES_ENTRIES.filter((entry) => !lines.some((line) => line.trim() === entry));
|
|
344291
|
+
const toAdd = exports2.GITATTRIBUTES_ENTRIES.filter((entry) => !lines.some((line) => line.trim() === entry));
|
|
344292
344292
|
if (toAdd.length > 0) {
|
|
344293
344293
|
const suffix = content5.length > 0 && !content5.endsWith("\n") ? "\n" : "";
|
|
344294
344294
|
await (0, promises_1.writeFile)(gitattributesPath, content5 + suffix + toAdd.join("\n") + "\n", "utf-8");
|
|
@@ -344314,7 +344314,7 @@ var require_fernignore = __commonJS({
|
|
|
344314
344314
|
content5 = (0, fs_1.readFileSync)(gitattributesPath, "utf-8");
|
|
344315
344315
|
}
|
|
344316
344316
|
const lines = content5.split("\n");
|
|
344317
|
-
const toAdd = GITATTRIBUTES_ENTRIES.filter((entry) => !lines.some((line) => line.trim() === entry));
|
|
344317
|
+
const toAdd = exports2.GITATTRIBUTES_ENTRIES.filter((entry) => !lines.some((line) => line.trim() === entry));
|
|
344318
344318
|
if (toAdd.length > 0) {
|
|
344319
344319
|
const suffix = content5.length > 0 && !content5.endsWith("\n") ? "\n" : "";
|
|
344320
344320
|
(0, fs_1.writeFileSync)(gitattributesPath, content5 + suffix + toAdd.join("\n") + "\n", "utf-8");
|
|
@@ -344356,22 +344356,18 @@ var require_replay_init = __commonJS({
|
|
|
344356
344356
|
importHistory: params2.importHistory
|
|
344357
344357
|
});
|
|
344358
344358
|
if (!bootstrapResult.generationCommit) {
|
|
344359
|
-
return { bootstrap: bootstrapResult, fernignoreEntries: [] };
|
|
344359
|
+
return { bootstrap: bootstrapResult, fernignoreEntries: [], gitattributesEntries: [] };
|
|
344360
344360
|
}
|
|
344361
344361
|
if (dryRun) {
|
|
344362
|
-
return { bootstrap: bootstrapResult, fernignoreEntries: [] };
|
|
344362
|
+
return { bootstrap: bootstrapResult, fernignoreEntries: [], gitattributesEntries: [] };
|
|
344363
344363
|
}
|
|
344364
|
-
(0, fernignore_1.ensureReplayFernignoreEntriesSync)(repoPath);
|
|
344365
|
-
(0, fernignore_1.ensureGitattributesEntriesSync)(repoPath);
|
|
344366
344364
|
const lockfilePath = (0, path_1.join)(repoPath, ".fern", "replay.lock");
|
|
344367
344365
|
const lockfileContent = (0, fs_1.existsSync)(lockfilePath) ? (0, fs_1.readFileSync)(lockfilePath, "utf-8") : void 0;
|
|
344368
|
-
const replayYmlPath = (0, path_1.join)(repoPath, ".fern", "replay.yml");
|
|
344369
|
-
const replayYmlContent = (0, fs_1.existsSync)(replayYmlPath) ? (0, fs_1.readFileSync)(replayYmlPath, "utf-8") : void 0;
|
|
344370
344366
|
return {
|
|
344371
344367
|
bootstrap: bootstrapResult,
|
|
344372
344368
|
lockfileContent,
|
|
344373
|
-
replayYmlContent,
|
|
344374
344369
|
fernignoreEntries: fernignore_1.REPLAY_FERNIGNORE_ENTRIES,
|
|
344370
|
+
gitattributesEntries: fernignore_1.GITATTRIBUTES_ENTRIES,
|
|
344375
344371
|
prBody: buildPrBody(bootstrapResult)
|
|
344376
344372
|
};
|
|
344377
344373
|
}
|
|
@@ -344713,6 +344709,7 @@ var require_replay_submit_init = __commonJS({
|
|
|
344713
344709
|
repo,
|
|
344714
344710
|
lockfileContents: initResult.lockfileContent,
|
|
344715
344711
|
fernignoreEntries: initResult.fernignoreEntries,
|
|
344712
|
+
gitattributesEntries: initResult.gitattributesEntries,
|
|
344716
344713
|
prBody: initResult.prBody
|
|
344717
344714
|
})
|
|
344718
344715
|
});
|
|
@@ -621199,7 +621196,7 @@ var AccessTokenPosthogManager = class {
|
|
|
621199
621196
|
properties: {
|
|
621200
621197
|
...event,
|
|
621201
621198
|
...event.properties,
|
|
621202
|
-
version: "4.106.
|
|
621199
|
+
version: "4.106.3",
|
|
621203
621200
|
usingAccessToken: true
|
|
621204
621201
|
}
|
|
621205
621202
|
});
|
|
@@ -621253,7 +621250,7 @@ var UserPosthogManager = class {
|
|
|
621253
621250
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
621254
621251
|
event: "CLI",
|
|
621255
621252
|
properties: {
|
|
621256
|
-
version: "4.106.
|
|
621253
|
+
version: "4.106.3",
|
|
621257
621254
|
...event,
|
|
621258
621255
|
...event.properties,
|
|
621259
621256
|
usingAccessToken: false,
|
|
@@ -832894,7 +832891,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
832894
832891
|
var LOGS_FOLDER_NAME = "logs";
|
|
832895
832892
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
832896
832893
|
function getCliSource() {
|
|
832897
|
-
const version7 = "4.106.
|
|
832894
|
+
const version7 = "4.106.3";
|
|
832898
832895
|
return `cli@${version7}`;
|
|
832899
832896
|
}
|
|
832900
832897
|
var DebugLogger = class {
|
|
@@ -845303,7 +845300,7 @@ var LegacyDocsPublisher = class {
|
|
|
845303
845300
|
previewId,
|
|
845304
845301
|
disableTemplates: void 0,
|
|
845305
845302
|
skipUpload,
|
|
845306
|
-
cliVersion: "4.106.
|
|
845303
|
+
cliVersion: "4.106.3",
|
|
845307
845304
|
loginCommand: "fern auth login"
|
|
845308
845305
|
});
|
|
845309
845306
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -919404,7 +919401,7 @@ var CliContext = class _CliContext {
|
|
|
919404
919401
|
if (false) {
|
|
919405
919402
|
this.logger.error("CLI_VERSION is not defined");
|
|
919406
919403
|
}
|
|
919407
|
-
return "4.106.
|
|
919404
|
+
return "4.106.3";
|
|
919408
919405
|
}
|
|
919409
919406
|
getCliName() {
|
|
919410
919407
|
if (false) {
|
|
@@ -941793,6 +941790,7 @@ function addReplayInitCommand(cli, cliContext) {
|
|
|
941793
941790
|
repo,
|
|
941794
941791
|
lockfileContents: result.lockfileContent,
|
|
941795
941792
|
fernignoreEntries: result.fernignoreEntries,
|
|
941793
|
+
gitattributesEntries: result.gitattributesEntries,
|
|
941796
941794
|
prBody: result.prBody
|
|
941797
941795
|
})
|
|
941798
941796
|
});
|
package/package.json
CHANGED