fern-api 0.15.0-rc83 → 0.15.0-rc87

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 +13 -13
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -2544,15 +2544,15 @@ var require_rimraf = __commonJS({
2544
2544
  if (er && er.code === "EPERM" && isWindows)
2545
2545
  fixWinEPERM(p2, options, er, cb);
2546
2546
  if (st && st.isDirectory())
2547
- return rmdir(p2, options, er, cb);
2547
+ return rmdir2(p2, options, er, cb);
2548
2548
  options.unlink(p2, (er2) => {
2549
2549
  if (er2) {
2550
2550
  if (er2.code === "ENOENT")
2551
2551
  return cb(null);
2552
2552
  if (er2.code === "EPERM")
2553
- return isWindows ? fixWinEPERM(p2, options, er2, cb) : rmdir(p2, options, er2, cb);
2553
+ return isWindows ? fixWinEPERM(p2, options, er2, cb) : rmdir2(p2, options, er2, cb);
2554
2554
  if (er2.code === "EISDIR")
2555
- return rmdir(p2, options, er2, cb);
2555
+ return rmdir2(p2, options, er2, cb);
2556
2556
  }
2557
2557
  return cb(er2);
2558
2558
  });
@@ -2570,7 +2570,7 @@ var require_rimraf = __commonJS({
2570
2570
  if (er3)
2571
2571
  cb(er3.code === "ENOENT" ? null : er);
2572
2572
  else if (stats.isDirectory())
2573
- rmdir(p2, options, er, cb);
2573
+ rmdir2(p2, options, er, cb);
2574
2574
  else
2575
2575
  options.unlink(p2, cb);
2576
2576
  });
@@ -2601,7 +2601,7 @@ var require_rimraf = __commonJS({
2601
2601
  else
2602
2602
  options.unlinkSync(p2);
2603
2603
  };
2604
- var rmdir = (p2, options, originalEr, cb) => {
2604
+ var rmdir2 = (p2, options, originalEr, cb) => {
2605
2605
  assert3(p2);
2606
2606
  assert3(options);
2607
2607
  assert3(typeof cb === "function");
@@ -707949,7 +707949,7 @@ var AccessTokenPosthogManager = class {
707949
707949
  properties: {
707950
707950
  ...event,
707951
707951
  ...event.properties,
707952
- version: "0.15.0-rc83",
707952
+ version: "0.15.0-rc87",
707953
707953
  usingAccessToken: true
707954
707954
  }
707955
707955
  });
@@ -708011,7 +708011,7 @@ var UserPosthogManager = class {
708011
708011
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
708012
708012
  event: "CLI",
708013
708013
  properties: {
708014
- version: "0.15.0-rc83",
708014
+ version: "0.15.0-rc87",
708015
708015
  ...event,
708016
708016
  ...event.properties
708017
708017
  }
@@ -732250,10 +732250,10 @@ var CliContext = class {
732250
732250
  return "fern-api";
732251
732251
  }
732252
732252
  getPackageVersion() {
732253
- if ("0.15.0-rc83" == null) {
732253
+ if ("0.15.0-rc87" == null) {
732254
732254
  this.logger.error("CLI_VERSION is not defined");
732255
732255
  }
732256
- return "0.15.0-rc83";
732256
+ return "0.15.0-rc87";
732257
732257
  }
732258
732258
  getCliName() {
732259
732259
  if ("fern" == null) {
@@ -745120,12 +745120,12 @@ var LocalTaskHandler = class {
745120
745120
  await (0, import_promises28.cp)(this.absolutePathToLocalOutput, tmpOutputResolutionDir, { recursive: true });
745121
745121
  await this.runGitCommand(["init"], tmpOutputResolutionDir);
745122
745122
  await this.runGitCommand(["add", "."], tmpOutputResolutionDir);
745123
- await this.runGitCommand(["commit", "-m", '"init"'], tmpOutputResolutionDir);
745123
+ await this.runGitCommand(["commit", "--allow-empty", "-m", '"init"'], tmpOutputResolutionDir);
745124
745124
  await this.runGitCommand(["rm", "-rf", "."], tmpOutputResolutionDir);
745125
745125
  await this.copyGeneratedFilesToDirectory(tmpOutputResolutionDir);
745126
745126
  await this.runGitCommand(["reset", "--", ...fernIngnorePaths], tmpOutputResolutionDir);
745127
745127
  await this.runGitCommand(["restore", "."], tmpOutputResolutionDir);
745128
- this.context.logger.debug(`rm -rf ${this.absolutePathToLocalOutput}`);
745128
+ await (0, import_promises28.rmdir)(this.absolutePathToLocalOutput, { recursive: true });
745129
745129
  await (0, import_promises28.cp)(tmpOutputResolutionDir, this.absolutePathToLocalOutput, { recursive: true });
745130
745130
  }
745131
745131
  async copyGeneratedFilesNoFernIgnore() {
@@ -745140,9 +745140,9 @@ var LocalTaskHandler = class {
745140
745140
  }
745141
745141
  this.context.logger.debug(`Copying generated files to ${outputPath}`);
745142
745142
  if (firstLocalOutputItem.endsWith(".zip") && remaininglocalOutputItems.length === 0) {
745143
- await (0, import_decompress.default)(join(this.absolutePathToTmpOutputDirectory, RelativeFilePath.of(firstLocalOutputItem)), this.absolutePathToLocalOutput);
745143
+ await (0, import_decompress.default)(join(this.absolutePathToTmpOutputDirectory, RelativeFilePath.of(firstLocalOutputItem)), outputPath);
745144
745144
  } else {
745145
- await (0, import_promises28.cp)(this.absolutePathToTmpOutputDirectory, this.absolutePathToLocalOutput, { recursive: true });
745145
+ await (0, import_promises28.cp)(this.absolutePathToTmpOutputDirectory, outputPath, { recursive: true });
745146
745146
  }
745147
745147
  }
745148
745148
  async copySnippetJSON(absolutePathToTmpSnippetJSON) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.15.0-rc83",
3
+ "version": "0.15.0-rc87",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",