fern-api 0.37.12 → 0.37.13

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/bundle.cjs +18 -5
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -1215536,7 +1215536,7 @@ var AccessTokenPosthogManager = class {
1215536
1215536
  properties: {
1215537
1215537
  ...event,
1215538
1215538
  ...event.properties,
1215539
- version: "0.37.12",
1215539
+ version: "0.37.13",
1215540
1215540
  usingAccessToken: true
1215541
1215541
  }
1215542
1215542
  });
@@ -1215598,7 +1215598,7 @@ var UserPosthogManager = class {
1215598
1215598
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1215599
1215599
  event: "CLI",
1215600
1215600
  properties: {
1215601
- version: "0.37.12",
1215601
+ version: "0.37.13",
1215602
1215602
  ...event,
1215603
1215603
  ...event.properties
1215604
1215604
  }
@@ -1229958,6 +1229958,9 @@ var FernWorkspace = class extends AbstractAPIWorkspace {
1229958
1229958
  async toFernWorkspace() {
1229959
1229959
  return this;
1229960
1229960
  }
1229961
+ getAbsoluteFilepaths() {
1229962
+ return [this.absoluteFilepath];
1229963
+ }
1229961
1229964
  };
1229962
1229965
  var LazyFernWorkspace = class extends AbstractAPIWorkspace {
1229963
1229966
  type = "fern";
@@ -1230033,6 +1230036,9 @@ var LazyFernWorkspace = class extends AbstractAPIWorkspace {
1230033
1230036
  }
1230034
1230037
  return workspace;
1230035
1230038
  }
1230039
+ getAbsoluteFilepaths() {
1230040
+ return [this.absoluteFilepath];
1230041
+ }
1230036
1230042
  };
1230037
1230043
 
1230038
1230044
  // pnp:/home/runner/work/fern/fern/packages/cli/openapi-ir-sdk/lib/sdk/index.js
@@ -1240340,6 +1240346,12 @@ var OSSWorkspace = class extends AbstractAPIWorkspace {
1240340
1240346
  changelog: this.changelog
1240341
1240347
  });
1240342
1240348
  }
1240349
+ getAbsoluteFilepaths() {
1240350
+ return [
1240351
+ this.absoluteFilepath,
1240352
+ ...this.specs.flatMap((spec) => [spec.absoluteFilepath, spec.absoluteFilepathToOverrides]).filter(isNonNullish)
1240353
+ ];
1240354
+ }
1240343
1240355
  };
1240344
1240356
  function getOSSWorkspaceSettingsFromGeneratorInvocation(generatorInvocation) {
1240345
1240357
  if (generatorInvocation.settings == null) {
@@ -1244577,10 +1244589,10 @@ var CliContext = class {
1244577
1244589
  return "fern-api";
1244578
1244590
  }
1244579
1244591
  getPackageVersion() {
1244580
- if ("0.37.12" == null) {
1244592
+ if ("0.37.13" == null) {
1244581
1244593
  this.logger.error("CLI_VERSION is not defined");
1244582
1244594
  }
1244583
- return "0.37.12";
1244595
+ return "0.37.13";
1244584
1244596
  }
1244585
1244597
  getCliName() {
1244586
1244598
  if ("fern" == null) {
@@ -1256922,7 +1256934,8 @@ async function runPreviewServer({ initialProject, reloadProject, validateProject
1256922
1256934
  }
1256923
1256935
  };
1256924
1256936
  docsDefinition = await reloadDocsDefinition();
1256925
- const watcher = new watcher_default(absoluteFilePathToFern, {
1256937
+ const additionalFilepaths = project.apiWorkspaces.flatMap((workspace) => workspace.getAbsoluteFilepaths());
1256938
+ const watcher = new watcher_default([absoluteFilePathToFern, ...additionalFilepaths], {
1256926
1256939
  recursive: true,
1256927
1256940
  ignoreInitial: true,
1256928
1256941
  debounce: 1e3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.37.12",
3
+ "version": "0.37.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",