@fern-api/fern-api-dev 3.95.4 → 3.95.5
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 +30 -26
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -577366,7 +577366,7 @@ var AccessTokenPosthogManager = class {
|
|
|
577366
577366
|
properties: {
|
|
577367
577367
|
...event,
|
|
577368
577368
|
...event.properties,
|
|
577369
|
-
version: "3.95.
|
|
577369
|
+
version: "3.95.5",
|
|
577370
577370
|
usingAccessToken: true
|
|
577371
577371
|
}
|
|
577372
577372
|
});
|
|
@@ -577475,7 +577475,7 @@ var UserPosthogManager = class {
|
|
|
577475
577475
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
577476
577476
|
event: "CLI",
|
|
577477
577477
|
properties: {
|
|
577478
|
-
version: "3.95.
|
|
577478
|
+
version: "3.95.5",
|
|
577479
577479
|
...event,
|
|
577480
577480
|
...event.properties,
|
|
577481
577481
|
usingAccessToken: false,
|
|
@@ -763360,7 +763360,7 @@ var import_path40 = __toESM(require("path"), 1);
|
|
|
763360
763360
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
763361
763361
|
var LOGS_FOLDER_NAME = "logs";
|
|
763362
763362
|
function getCliSource() {
|
|
763363
|
-
const version7 = "3.95.
|
|
763363
|
+
const version7 = "3.95.5";
|
|
763364
763364
|
return `cli@${version7}`;
|
|
763365
763365
|
}
|
|
763366
763366
|
var DebugLogger = class {
|
|
@@ -1085230,11 +1085230,6 @@ var LocalTaskHandler = class {
|
|
|
1085230
1085230
|
const absolutePathToFernignore = AbsoluteFilePath2.of(join4(this.absolutePathToLocalOutput, RelativeFilePath2.of(FERNIGNORE_FILENAME)));
|
|
1085231
1085231
|
const fernIgnorePaths = await getFernIgnorePaths({ absolutePathToFernignore });
|
|
1085232
1085232
|
const pathsToPreserve = await this.getPathsToPreserve(fernIgnorePaths);
|
|
1085233
|
-
const response = await this.runGitCommand(["config", "--list"], this.absolutePathToLocalOutput);
|
|
1085234
|
-
if (!response.includes("user.name")) {
|
|
1085235
|
-
await this.runGitCommand(["config", "user.name", "fern-api"], this.absolutePathToLocalOutput);
|
|
1085236
|
-
await this.runGitCommand(["config", "user.email", "info@buildwithfern.com"], this.absolutePathToLocalOutput);
|
|
1085237
|
-
}
|
|
1085238
1085233
|
await this.runGitCommand(["rm", "-rf", "."], this.absolutePathToLocalOutput);
|
|
1085239
1085234
|
await this.copyGeneratedFilesToDirectory(this.absolutePathToLocalOutput);
|
|
1085240
1085235
|
await this.runGitCommand(["add", "."], this.absolutePathToLocalOutput);
|
|
@@ -1085250,12 +1085245,19 @@ var LocalTaskHandler = class {
|
|
|
1085250
1085245
|
await (0, import_promises75.cp)(this.absolutePathToLocalOutput, tmpOutputResolutionDir, { recursive: true });
|
|
1085251
1085246
|
await this.runGitCommand(["init"], tmpOutputResolutionDir);
|
|
1085252
1085247
|
await this.runGitCommand(["add", "."], tmpOutputResolutionDir);
|
|
1085253
|
-
|
|
1085254
|
-
|
|
1085255
|
-
|
|
1085256
|
-
|
|
1085257
|
-
|
|
1085258
|
-
|
|
1085248
|
+
await this.runGitCommand([
|
|
1085249
|
+
"-c",
|
|
1085250
|
+
"user.name=fern",
|
|
1085251
|
+
"-c",
|
|
1085252
|
+
"user.email=hey@buildwithfern.com",
|
|
1085253
|
+
"-c",
|
|
1085254
|
+
"commit.gpgsign=false",
|
|
1085255
|
+
"commit",
|
|
1085256
|
+
"--allow-empty",
|
|
1085257
|
+
"--no-verify",
|
|
1085258
|
+
"-m",
|
|
1085259
|
+
"init"
|
|
1085260
|
+
], tmpOutputResolutionDir);
|
|
1085259
1085261
|
await this.runGitCommand(["rm", "-rf", "."], tmpOutputResolutionDir);
|
|
1085260
1085262
|
await this.copyGeneratedFilesToDirectory(tmpOutputResolutionDir);
|
|
1085261
1085263
|
await this.runGitCommand(["add", "."], tmpOutputResolutionDir);
|
|
@@ -1092677,11 +1092679,6 @@ async function runGitCommand(options2, cwd2, context2) {
|
|
|
1092677
1092679
|
async function downloadFilesWithFernIgnoreInExistingRepo({ s3PreSignedReadUrl, absolutePathToLocalOutput, context: context2 }) {
|
|
1092678
1092680
|
const absolutePathToFernignore = join4(absolutePathToLocalOutput, RelativeFilePath2.of(FERNIGNORE_FILENAME));
|
|
1092679
1092681
|
const fernIgnorePaths = await getFernIgnorePaths({ absolutePathToFernignore });
|
|
1092680
|
-
const gitConfigResponse = await runGitCommand(["config", "--list"], absolutePathToLocalOutput, context2);
|
|
1092681
|
-
if (!gitConfigResponse.includes("user.name")) {
|
|
1092682
|
-
await runGitCommand(["config", "user.name", "fern-api"], absolutePathToLocalOutput, context2);
|
|
1092683
|
-
await runGitCommand(["config", "user.email", "info@buildwithfern.com"], absolutePathToLocalOutput, context2);
|
|
1092684
|
-
}
|
|
1092685
1092682
|
await runGitCommand(["rm", "-rf", "."], absolutePathToLocalOutput, context2);
|
|
1092686
1092683
|
await downloadAndExtractZipToDirectory({ s3PreSignedReadUrl, outputPath: absolutePathToLocalOutput });
|
|
1092687
1092684
|
await runGitCommand(["add", "."], absolutePathToLocalOutput, context2);
|
|
@@ -1092695,12 +1092692,19 @@ async function downloadFilesWithFernIgnoreInTempRepo({ s3PreSignedReadUrl, absol
|
|
|
1092695
1092692
|
await (0, import_promises82.cp)(absolutePathToLocalOutput, tmpOutputResolutionDir, { recursive: true });
|
|
1092696
1092693
|
await runGitCommand(["init"], tmpOutputResolutionDir, context2);
|
|
1092697
1092694
|
await runGitCommand(["add", "."], tmpOutputResolutionDir, context2);
|
|
1092698
|
-
|
|
1092699
|
-
|
|
1092700
|
-
|
|
1092701
|
-
|
|
1092702
|
-
|
|
1092703
|
-
|
|
1092695
|
+
await runGitCommand([
|
|
1092696
|
+
"-c",
|
|
1092697
|
+
"user.name=fern",
|
|
1092698
|
+
"-c",
|
|
1092699
|
+
"user.email=hey@buildwithfern.com",
|
|
1092700
|
+
"-c",
|
|
1092701
|
+
"commit.gpgsign=false",
|
|
1092702
|
+
"commit",
|
|
1092703
|
+
"--allow-empty",
|
|
1092704
|
+
"--no-verify",
|
|
1092705
|
+
"-m",
|
|
1092706
|
+
"init"
|
|
1092707
|
+
], tmpOutputResolutionDir, context2);
|
|
1092704
1092708
|
await runGitCommand(["rm", "-rf", "."], tmpOutputResolutionDir, context2);
|
|
1092705
1092709
|
await downloadAndExtractZipToDirectory({ s3PreSignedReadUrl, outputPath: tmpOutputResolutionDir });
|
|
1092706
1092710
|
await runGitCommand(["add", "."], tmpOutputResolutionDir, context2);
|
|
@@ -1127062,7 +1127066,7 @@ var CliContext = class {
|
|
|
1127062
1127066
|
if (false) {
|
|
1127063
1127067
|
this.logger.error("CLI_VERSION is not defined");
|
|
1127064
1127068
|
}
|
|
1127065
|
-
return "3.95.
|
|
1127069
|
+
return "3.95.5";
|
|
1127066
1127070
|
}
|
|
1127067
1127071
|
getCliName() {
|
|
1127068
1127072
|
if (false) {
|
package/package.json
CHANGED