@fern-api/fern-api-dev 3.35.2-9-g13793eddee → 3.36.0

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 +10 -4
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -1413767,7 +1413767,7 @@ var AccessTokenPosthogManager = class {
1413767
1413767
  properties: {
1413768
1413768
  ...event,
1413769
1413769
  ...event.properties,
1413770
- version: "3.35.2-9-g13793eddee",
1413770
+ version: "3.36.0",
1413771
1413771
  usingAccessToken: true
1413772
1413772
  }
1413773
1413773
  });
@@ -1413866,7 +1413866,7 @@ var UserPosthogManager = class {
1413866
1413866
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1413867
1413867
  event: "CLI",
1413868
1413868
  properties: {
1413869
- version: "3.35.2-9-g13793eddee",
1413869
+ version: "3.36.0",
1413870
1413870
  ...event,
1413871
1413871
  ...event.properties,
1413872
1413872
  usingAccessToken: false,
@@ -1418440,6 +1418440,7 @@ function constructAuth0LogoutUrl() {
1418440
1418440
 
1418441
1418441
  // ../init/lib/createFernDirectoryAndOrganization.js
1418442
1418442
  var import_promises19 = require("fs/promises");
1418443
+ var GITIGNORE_CONTENT = "**/.preview\n**/.definition\n";
1418443
1418444
  async function createFernDirectoryAndWorkspace({ organization, taskContext, versionOfCli }) {
1418444
1418445
  const pathToFernDirectory = join2(cwd(), RelativeFilePath2.of(FERN_DIRECTORY));
1418445
1418446
  if (!await doesPathExist(pathToFernDirectory)) {
@@ -1418473,6 +1418474,7 @@ async function createFernDirectoryAndWorkspace({ organization, taskContext, vers
1418473
1418474
  organization,
1418474
1418475
  versionOfCli
1418475
1418476
  });
1418477
+ await writeGitignore({ absolutePathToFernDirectory: pathToFernDirectory });
1418476
1418478
  } else {
1418477
1418479
  const projectConfig = await loadProjectConfig({
1418478
1418480
  directory: pathToFernDirectory,
@@ -1418492,6 +1418494,10 @@ async function writeProjectConfig({ organization, filepath, versionOfCli }) {
1418492
1418494
  };
1418493
1418495
  await (0, import_promises19.writeFile)(filepath, JSON.stringify(projectConfig, void 0, 4));
1418494
1418496
  }
1418497
+ async function writeGitignore({ absolutePathToFernDirectory }) {
1418498
+ const gitignorePath = join2(absolutePathToFernDirectory, RelativeFilePath2.of(".gitignore"));
1418499
+ await (0, import_promises19.writeFile)(gitignorePath, GITIGNORE_CONTENT);
1418500
+ }
1418495
1418501
 
1418496
1418502
  // ../fern-definition/formatter/lib/FernDefinitionFileFormatter.js
1418497
1418503
  var YAML = __toESM(require_dist4(), 1);
@@ -1493970,7 +1493976,7 @@ var CliContext = class {
1493970
1493976
  if (false) {
1493971
1493977
  this.logger.error("CLI_VERSION is not defined");
1493972
1493978
  }
1493973
- return "3.35.2-9-g13793eddee";
1493979
+ return "3.36.0";
1493974
1493980
  }
1493975
1493981
  getCliName() {
1493976
1493982
  if (false) {
@@ -1588918,7 +1588924,7 @@ var import_path35 = __toESM(require("path"), 1);
1588918
1588924
  var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
1588919
1588925
  var LOGS_FOLDER_NAME = "logs";
1588920
1588926
  function getCliSource() {
1588921
- const version6 = "3.35.2-9-g13793eddee";
1588927
+ const version6 = "3.36.0";
1588922
1588928
  return `cli@${version6}`;
1588923
1588929
  }
1588924
1588930
  var DebugLogger = class {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.35.2-9-g13793eddee",
2
+ "version": "3.36.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",