@fern-api/fern-api-dev 3.95.3 → 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 +48 -28
- 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,
|
|
@@ -659634,6 +659634,14 @@ async function loadRawGeneratorsConfiguration({ absolutePathToWorkspace, context
|
|
|
659634
659634
|
${e6.mark.snippet}`;
|
|
659635
659635
|
}
|
|
659636
659636
|
}
|
|
659637
|
+
if (e6.mark != null && (e6.reason === "bad indentation of a mapping entry" || e6.reason === "unexpected end of the stream within a flow collection")) {
|
|
659638
|
+
const fileContent = contentsStr.toString();
|
|
659639
|
+
const lines = fileContent.split("\n");
|
|
659640
|
+
const errorLine = e6.mark.line >= 0 && e6.mark.line < lines.length ? lines[e6.mark.line] : void 0;
|
|
659641
|
+
if (errorLine != null && /:\s+@/.test(errorLine)) {
|
|
659642
|
+
errorMessage += '\n\nHint: Values starting with "@" (such as scoped npm packages) must be wrapped in quotes.\n Example: package-name: "@scope/package"';
|
|
659643
|
+
}
|
|
659644
|
+
}
|
|
659637
659645
|
context2.failAndThrow(errorMessage);
|
|
659638
659646
|
} else {
|
|
659639
659647
|
throw e6;
|
|
@@ -709789,8 +709797,9 @@ var GeneratorsYmlMigrator = class {
|
|
|
709789
709797
|
]
|
|
709790
709798
|
};
|
|
709791
709799
|
}
|
|
709800
|
+
let content5;
|
|
709792
709801
|
try {
|
|
709793
|
-
|
|
709802
|
+
content5 = await (0, import_promises50.readFile)(absoluteFilePath, "utf-8");
|
|
709794
709803
|
const config3 = jsYaml.load(content5);
|
|
709795
709804
|
if (config3 == null || typeof config3 !== "object") {
|
|
709796
709805
|
return {
|
|
@@ -709830,7 +709839,14 @@ var GeneratorsYmlMigrator = class {
|
|
|
709830
709839
|
absoluteFilePath
|
|
709831
709840
|
};
|
|
709832
709841
|
} catch (error49) {
|
|
709833
|
-
|
|
709842
|
+
let message = error49 instanceof Error ? error49.message : String(error49);
|
|
709843
|
+
if (error49 instanceof jsYaml.YAMLException && error49.mark != null && content5 != null && (error49.reason === "bad indentation of a mapping entry" || error49.reason === "unexpected end of the stream within a flow collection")) {
|
|
709844
|
+
const lines = content5.split("\n");
|
|
709845
|
+
const errorLine = error49.mark.line >= 0 && error49.mark.line < lines.length ? lines[error49.mark.line] : void 0;
|
|
709846
|
+
if (errorLine != null && /:\s+@/.test(errorLine)) {
|
|
709847
|
+
message += '\n\nHint: Values starting with "@" (such as scoped npm packages) must be wrapped in quotes.\n Example: package-name: "@scope/package"';
|
|
709848
|
+
}
|
|
709849
|
+
}
|
|
709834
709850
|
return {
|
|
709835
709851
|
success: false,
|
|
709836
709852
|
warnings: [
|
|
@@ -763344,7 +763360,7 @@ var import_path40 = __toESM(require("path"), 1);
|
|
|
763344
763360
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
763345
763361
|
var LOGS_FOLDER_NAME = "logs";
|
|
763346
763362
|
function getCliSource() {
|
|
763347
|
-
const version7 = "3.95.
|
|
763363
|
+
const version7 = "3.95.5";
|
|
763348
763364
|
return `cli@${version7}`;
|
|
763349
763365
|
}
|
|
763350
763366
|
var DebugLogger = class {
|
|
@@ -1085214,11 +1085230,6 @@ var LocalTaskHandler = class {
|
|
|
1085214
1085230
|
const absolutePathToFernignore = AbsoluteFilePath2.of(join4(this.absolutePathToLocalOutput, RelativeFilePath2.of(FERNIGNORE_FILENAME)));
|
|
1085215
1085231
|
const fernIgnorePaths = await getFernIgnorePaths({ absolutePathToFernignore });
|
|
1085216
1085232
|
const pathsToPreserve = await this.getPathsToPreserve(fernIgnorePaths);
|
|
1085217
|
-
const response = await this.runGitCommand(["config", "--list"], this.absolutePathToLocalOutput);
|
|
1085218
|
-
if (!response.includes("user.name")) {
|
|
1085219
|
-
await this.runGitCommand(["config", "user.name", "fern-api"], this.absolutePathToLocalOutput);
|
|
1085220
|
-
await this.runGitCommand(["config", "user.email", "info@buildwithfern.com"], this.absolutePathToLocalOutput);
|
|
1085221
|
-
}
|
|
1085222
1085233
|
await this.runGitCommand(["rm", "-rf", "."], this.absolutePathToLocalOutput);
|
|
1085223
1085234
|
await this.copyGeneratedFilesToDirectory(this.absolutePathToLocalOutput);
|
|
1085224
1085235
|
await this.runGitCommand(["add", "."], this.absolutePathToLocalOutput);
|
|
@@ -1085234,12 +1085245,19 @@ var LocalTaskHandler = class {
|
|
|
1085234
1085245
|
await (0, import_promises75.cp)(this.absolutePathToLocalOutput, tmpOutputResolutionDir, { recursive: true });
|
|
1085235
1085246
|
await this.runGitCommand(["init"], tmpOutputResolutionDir);
|
|
1085236
1085247
|
await this.runGitCommand(["add", "."], tmpOutputResolutionDir);
|
|
1085237
|
-
|
|
1085238
|
-
|
|
1085239
|
-
|
|
1085240
|
-
|
|
1085241
|
-
|
|
1085242
|
-
|
|
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);
|
|
1085243
1085261
|
await this.runGitCommand(["rm", "-rf", "."], tmpOutputResolutionDir);
|
|
1085244
1085262
|
await this.copyGeneratedFilesToDirectory(tmpOutputResolutionDir);
|
|
1085245
1085263
|
await this.runGitCommand(["add", "."], tmpOutputResolutionDir);
|
|
@@ -1092661,11 +1092679,6 @@ async function runGitCommand(options2, cwd2, context2) {
|
|
|
1092661
1092679
|
async function downloadFilesWithFernIgnoreInExistingRepo({ s3PreSignedReadUrl, absolutePathToLocalOutput, context: context2 }) {
|
|
1092662
1092680
|
const absolutePathToFernignore = join4(absolutePathToLocalOutput, RelativeFilePath2.of(FERNIGNORE_FILENAME));
|
|
1092663
1092681
|
const fernIgnorePaths = await getFernIgnorePaths({ absolutePathToFernignore });
|
|
1092664
|
-
const gitConfigResponse = await runGitCommand(["config", "--list"], absolutePathToLocalOutput, context2);
|
|
1092665
|
-
if (!gitConfigResponse.includes("user.name")) {
|
|
1092666
|
-
await runGitCommand(["config", "user.name", "fern-api"], absolutePathToLocalOutput, context2);
|
|
1092667
|
-
await runGitCommand(["config", "user.email", "info@buildwithfern.com"], absolutePathToLocalOutput, context2);
|
|
1092668
|
-
}
|
|
1092669
1092682
|
await runGitCommand(["rm", "-rf", "."], absolutePathToLocalOutput, context2);
|
|
1092670
1092683
|
await downloadAndExtractZipToDirectory({ s3PreSignedReadUrl, outputPath: absolutePathToLocalOutput });
|
|
1092671
1092684
|
await runGitCommand(["add", "."], absolutePathToLocalOutput, context2);
|
|
@@ -1092679,12 +1092692,19 @@ async function downloadFilesWithFernIgnoreInTempRepo({ s3PreSignedReadUrl, absol
|
|
|
1092679
1092692
|
await (0, import_promises82.cp)(absolutePathToLocalOutput, tmpOutputResolutionDir, { recursive: true });
|
|
1092680
1092693
|
await runGitCommand(["init"], tmpOutputResolutionDir, context2);
|
|
1092681
1092694
|
await runGitCommand(["add", "."], tmpOutputResolutionDir, context2);
|
|
1092682
|
-
|
|
1092683
|
-
|
|
1092684
|
-
|
|
1092685
|
-
|
|
1092686
|
-
|
|
1092687
|
-
|
|
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);
|
|
1092688
1092708
|
await runGitCommand(["rm", "-rf", "."], tmpOutputResolutionDir, context2);
|
|
1092689
1092709
|
await downloadAndExtractZipToDirectory({ s3PreSignedReadUrl, outputPath: tmpOutputResolutionDir });
|
|
1092690
1092710
|
await runGitCommand(["add", "."], tmpOutputResolutionDir, context2);
|
|
@@ -1127046,7 +1127066,7 @@ var CliContext = class {
|
|
|
1127046
1127066
|
if (false) {
|
|
1127047
1127067
|
this.logger.error("CLI_VERSION is not defined");
|
|
1127048
1127068
|
}
|
|
1127049
|
-
return "3.95.
|
|
1127069
|
+
return "3.95.5";
|
|
1127050
1127070
|
}
|
|
1127051
1127071
|
getCliName() {
|
|
1127052
1127072
|
if (false) {
|
package/package.json
CHANGED