fern-api 0.15.2-rc1 → 0.15.2
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/bundle.cjs +12 -6
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -705682,7 +705682,7 @@ var AccessTokenPosthogManager = class {
|
|
|
705682
705682
|
properties: {
|
|
705683
705683
|
...event,
|
|
705684
705684
|
...event.properties,
|
|
705685
|
-
version: "0.15.2
|
|
705685
|
+
version: "0.15.2",
|
|
705686
705686
|
usingAccessToken: true
|
|
705687
705687
|
}
|
|
705688
705688
|
});
|
|
@@ -705744,7 +705744,7 @@ var UserPosthogManager = class {
|
|
|
705744
705744
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
705745
705745
|
event: "CLI",
|
|
705746
705746
|
properties: {
|
|
705747
|
-
version: "0.15.2
|
|
705747
|
+
version: "0.15.2",
|
|
705748
705748
|
...event,
|
|
705749
705749
|
...event.properties
|
|
705750
705750
|
}
|
|
@@ -729983,10 +729983,10 @@ var CliContext = class {
|
|
|
729983
729983
|
return "fern-api";
|
|
729984
729984
|
}
|
|
729985
729985
|
getPackageVersion() {
|
|
729986
|
-
if ("0.15.2
|
|
729986
|
+
if ("0.15.2" == null) {
|
|
729987
729987
|
this.logger.error("CLI_VERSION is not defined");
|
|
729988
729988
|
}
|
|
729989
|
-
return "0.15.2
|
|
729989
|
+
return "0.15.2";
|
|
729990
729990
|
}
|
|
729991
729991
|
getCliName() {
|
|
729992
729992
|
if ("fern" == null) {
|
|
@@ -742853,7 +742853,12 @@ var LocalTaskHandler = class {
|
|
|
742853
742853
|
await (0, import_promises30.cp)(this.absolutePathToLocalOutput, tmpOutputResolutionDir, { recursive: true });
|
|
742854
742854
|
await this.runGitCommand(["init"], tmpOutputResolutionDir);
|
|
742855
742855
|
await this.runGitCommand(["add", "."], tmpOutputResolutionDir);
|
|
742856
|
-
await this.runGitCommand(["
|
|
742856
|
+
const response = await this.runGitCommand(["config", "--list"], tmpOutputResolutionDir);
|
|
742857
|
+
if (!response.includes("user.name")) {
|
|
742858
|
+
await this.runGitCommand(["config", "user.name", "fern-api"], tmpOutputResolutionDir);
|
|
742859
|
+
await this.runGitCommand(["config", "user.email", "info@buildwithfern.com"], tmpOutputResolutionDir);
|
|
742860
|
+
}
|
|
742861
|
+
await this.runGitCommand(["commit", "--allow-empty", "-m", '"init"'], tmpOutputResolutionDir);
|
|
742857
742862
|
await this.runGitCommand(["rm", "-rf", "."], tmpOutputResolutionDir);
|
|
742858
742863
|
await this.copyGeneratedFilesToDirectory(tmpOutputResolutionDir);
|
|
742859
742864
|
await this.runGitCommand(["reset", "--", ...fernIngnorePaths], tmpOutputResolutionDir);
|
|
@@ -742883,10 +742888,11 @@ var LocalTaskHandler = class {
|
|
|
742883
742888
|
await (0, import_promises30.cp)(AbsoluteFilePath.of(absolutePathToTmpSnippetJSON), absolutePathToSnippet);
|
|
742884
742889
|
}
|
|
742885
742890
|
async runGitCommand(options, cwd2) {
|
|
742886
|
-
await loggingExeca(this.context.logger, "git", options, {
|
|
742891
|
+
const response = await loggingExeca(this.context.logger, "git", options, {
|
|
742887
742892
|
cwd: cwd2,
|
|
742888
742893
|
doNotPipeOutput: true
|
|
742889
742894
|
});
|
|
742895
|
+
return response.stdout;
|
|
742890
742896
|
}
|
|
742891
742897
|
};
|
|
742892
742898
|
var NEW_LINE_REGEX = /\r?\n/;
|