@fern-api/fern-api-dev 3.49.8 → 3.50.0-6-g59ab04e2328

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 +20 -8
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -1430941,7 +1430941,7 @@ var AccessTokenPosthogManager = class {
1430941
1430941
  properties: {
1430942
1430942
  ...event,
1430943
1430943
  ...event.properties,
1430944
- version: "3.49.8",
1430944
+ version: "3.50.0-6-g59ab04e2328",
1430945
1430945
  usingAccessToken: true
1430946
1430946
  }
1430947
1430947
  });
@@ -1431040,7 +1431040,7 @@ var UserPosthogManager = class {
1431040
1431040
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1431041
1431041
  event: "CLI",
1431042
1431042
  properties: {
1431043
- version: "3.49.8",
1431043
+ version: "3.50.0-6-g59ab04e2328",
1431044
1431044
  ...event,
1431045
1431045
  ...event.properties,
1431046
1431046
  usingAccessToken: false,
@@ -1510475,7 +1510475,7 @@ var CliContext = class {
1510475
1510475
  if (false) {
1510476
1510476
  this.logger.error("CLI_VERSION is not defined");
1510477
1510477
  }
1510478
- return "3.49.8";
1510478
+ return "3.50.0-6-g59ab04e2328";
1510479
1510479
  }
1510480
1510480
  getCliName() {
1510481
1510481
  if (false) {
@@ -1611546,7 +1611546,7 @@ var import_path40 = __toESM(require("path"), 1);
1611546
1611546
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
1611547
1611547
  var LOGS_FOLDER_NAME = "logs";
1611548
1611548
  function getCliSource() {
1611549
- const version7 = "3.49.8";
1611549
+ const version7 = "3.50.0-6-g59ab04e2328";
1611550
1611550
  return `cli@${version7}`;
1611551
1611551
  }
1611552
1611552
  var DebugLogger = class {
@@ -1657325,7 +1657325,8 @@ async function generateAPIWorkspaces({
1657325
1657325
  inspect: inspect4,
1657326
1657326
  lfsOverride,
1657327
1657327
  fernignorePath,
1657328
- dynamicIrOnly
1657328
+ dynamicIrOnly,
1657329
+ outputDir
1657329
1657330
  }) {
1657330
1657331
  let token = void 0;
1657331
1657332
  if (!useLocalDocker) {
@@ -1657382,7 +1657383,7 @@ async function generateAPIWorkspaces({
1657382
1657383
  await Promise.all(
1657383
1657384
  project.apiWorkspaces.map(async (workspace) => {
1657384
1657385
  await cliContext.runTaskForWorkspace(workspace, async (context2) => {
1657385
- const absolutePathToPreview = preview ? join2(workspace.absoluteFilePath, RelativeFilePath2.of(PREVIEW_DIRECTORY)) : void 0;
1657386
+ const absolutePathToPreview = preview ? outputDir != null ? AbsoluteFilePath2.of(resolve5(cwd(), outputDir)) : join2(workspace.absoluteFilePath, RelativeFilePath2.of(PREVIEW_DIRECTORY)) : void 0;
1657386
1657387
  if (absolutePathToPreview != null) {
1657387
1657388
  context2.logger.info(`Writing preview to ${absolutePathToPreview}`);
1657388
1657389
  }
@@ -1664974,6 +1664975,9 @@ function addGenerateCommand2(cli, cliContext) {
1664974
1664975
  boolean: true,
1664975
1664976
  description: "Only upload dynamic IR for specified version, skip SDK generation (remote generation only)",
1664976
1664977
  default: false
1664978
+ }).option("output", {
1664979
+ type: "string",
1664980
+ description: "Custom output directory (currently only supported with --preview for SDK generation)"
1664977
1664981
  }),
1664978
1664982
  async (argv) => {
1664979
1664983
  if (argv.api != null && argv.docs != null) {
@@ -1665005,6 +1665009,12 @@ function addGenerateCommand2(cli, cliContext) {
1665005
1665009
  "The --dynamic-ir-only flag can only be used for API generation, not docs generation."
1665006
1665010
  );
1665007
1665011
  }
1665012
+ if (argv.output != null && !argv.preview) {
1665013
+ return cliContext.failWithoutThrowing("The --output flag currently only works with --preview.");
1665014
+ }
1665015
+ if (argv.output != null && argv.docs != null) {
1665016
+ return cliContext.failWithoutThrowing("The --output flag is not supported for docs generation.");
1665017
+ }
1665008
1665018
  if (argv.api != null) {
1665009
1665019
  return await generateAPIWorkspaces({
1665010
1665020
  project: await loadProjectAndRegisterWorkspacesWithContext(cliContext, {
@@ -1665024,7 +1665034,8 @@ function addGenerateCommand2(cli, cliContext) {
1665024
1665034
  inspect: false,
1665025
1665035
  lfsOverride: argv.lfsOverride,
1665026
1665036
  fernignorePath: argv.fernignore,
1665027
- dynamicIrOnly: argv["dynamic-ir-only"]
1665037
+ dynamicIrOnly: argv["dynamic-ir-only"],
1665038
+ outputDir: argv.output
1665028
1665039
  });
1665029
1665040
  }
1665030
1665041
  if (argv.docs != null) {
@@ -1665071,7 +1665082,8 @@ function addGenerateCommand2(cli, cliContext) {
1665071
1665082
  inspect: false,
1665072
1665083
  lfsOverride: argv.lfsOverride,
1665073
1665084
  fernignorePath: argv.fernignore,
1665074
- dynamicIrOnly: argv["dynamic-ir-only"]
1665085
+ dynamicIrOnly: argv["dynamic-ir-only"],
1665086
+ outputDir: argv.output
1665075
1665087
  });
1665076
1665088
  }
1665077
1665089
  );
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.49.8",
2
+ "version": "3.50.0-6-g59ab04e2328",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",