@fern-api/fern-api-dev 4.80.2 → 4.80.3-2-g828a2bc5307

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.
Files changed (2) hide show
  1. package/cli.cjs +17 -6
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -614282,7 +614282,7 @@ var AccessTokenPosthogManager = class {
614282
614282
  properties: {
614283
614283
  ...event,
614284
614284
  ...event.properties,
614285
- version: "4.80.2",
614285
+ version: "4.80.3-2-g828a2bc5307",
614286
614286
  usingAccessToken: true
614287
614287
  }
614288
614288
  });
@@ -614336,7 +614336,7 @@ var UserPosthogManager = class {
614336
614336
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
614337
614337
  event: "CLI",
614338
614338
  properties: {
614339
- version: "4.80.2",
614339
+ version: "4.80.3-2-g828a2bc5307",
614340
614340
  ...event,
614341
614341
  ...event.properties,
614342
614342
  usingAccessToken: false,
@@ -831617,7 +831617,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
831617
831617
  var LOGS_FOLDER_NAME = "logs";
831618
831618
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
831619
831619
  function getCliSource() {
831620
- const version7 = "4.80.2";
831620
+ const version7 = "4.80.3-2-g828a2bc5307";
831621
831621
  return `cli@${version7}`;
831622
831622
  }
831623
831623
  var DebugLogger = class {
@@ -843131,7 +843131,7 @@ var LegacyDocsPublisher = class {
843131
843131
  previewId,
843132
843132
  disableTemplates: void 0,
843133
843133
  skipUpload,
843134
- cliVersion: "4.80.2"
843134
+ cliVersion: "4.80.3-2-g828a2bc5307"
843135
843135
  });
843136
843136
  if (taskContext.getResult() === TaskResult.Failure) {
843137
843137
  return { success: false };
@@ -896588,6 +896588,7 @@ async function runLocalGenerationForWorkspace({ token, projectConfig, workspace,
896588
896588
  generatorInvocation,
896589
896589
  org: organization.ok ? organization.body : void 0,
896590
896590
  version: version7,
896591
+ userProvidedVersion,
896591
896592
  packageName,
896592
896593
  context: interactiveTaskContext
896593
896594
  });
@@ -896768,7 +896769,7 @@ async function getWorkspaceTempDir() {
896768
896769
  prefix: "fern"
896769
896770
  });
896770
896771
  }
896771
- function getPublishConfig2({ generatorInvocation, org, version: version7, packageName, context: context3 }) {
896772
+ function getPublishConfig2({ generatorInvocation, org, version: version7, userProvidedVersion, packageName, context: context3 }) {
896772
896773
  if (generatorInvocation.raw?.github != null && isGithubSelfhosted2(generatorInvocation.raw.github)) {
896773
896774
  const parsed = parseRepository(generatorInvocation.raw.github.uri);
896774
896775
  const irMode = generatorInvocation.raw.github.mode === "pull-request" ? "pull-request" : void 0;
@@ -896790,6 +896791,16 @@ function getPublishConfig2({ generatorInvocation, org, version: version7, packag
896790
896791
  packageName
896791
896792
  });
896792
896793
  context3.logger.debug(`Created PyPiPublishTarget: version ${version7} package name: ${packageName}`);
896794
+ } else if (generatorInvocation.language === "typescript") {
896795
+ if (userProvidedVersion != null) {
896796
+ const tsPackageName = packageName ?? (typeof generatorInvocation.raw?.config === "object" && generatorInvocation.raw?.config !== null ? generatorInvocation.raw.config.packageJson?.name : void 0);
896797
+ publishTarget = PublishTarget.npm({
896798
+ version: userProvidedVersion,
896799
+ packageName: tsPackageName,
896800
+ tokenEnvironmentVariable: ""
896801
+ });
896802
+ context3.logger.debug(`Created NpmPublishTarget: version ${userProvidedVersion} package name: ${tsPackageName}`);
896803
+ }
896793
896804
  } else if (generatorInvocation.language === "rust") {
896794
896805
  publishTarget = PublishTarget.crates({
896795
896806
  version: version7,
@@ -918209,7 +918220,7 @@ var CliContext = class _CliContext {
918209
918220
  if (false) {
918210
918221
  this.logger.error("CLI_VERSION is not defined");
918211
918222
  }
918212
- return "4.80.2";
918223
+ return "4.80.3-2-g828a2bc5307";
918213
918224
  }
918214
918225
  getCliName() {
918215
918226
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.80.2",
2
+ "version": "4.80.3-2-g828a2bc5307",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",