@fern-api/generator-cli 0.1.3 → 0.1.5

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/dist/cli.cjs +2 -2
  2. package/package.json +1 -1
package/dist/cli.cjs CHANGED
@@ -11974,7 +11974,7 @@ var ClonedRepository = class {
11974
11974
  }
11975
11975
  async restoreFiles({ files, staged }) {
11976
11976
  await this.git.cwd(this.clonePath);
11977
- const args = ["restore --source=HEAD"];
11977
+ const args = ["restore", "--source=HEAD"];
11978
11978
  if (staged) {
11979
11979
  args.push("--staged");
11980
11980
  }
@@ -12185,7 +12185,7 @@ var GitHub = class {
12185
12185
  const fernignoreFiles = [];
12186
12186
  for (const line of fernignoreLines) {
12187
12187
  const trimmedLine = line.trim();
12188
- if (!trimmedLine.startsWith("#") && trimmedLine.length > 0 && !await repository.fileExists({ relativeFilePath: trimmedLine })) {
12188
+ if (!trimmedLine.startsWith("#") && trimmedLine.length > 0 && await repository.fileExists({ relativeFilePath: trimmedLine })) {
12189
12189
  fernignoreFiles.push(trimmedLine);
12190
12190
  }
12191
12191
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/generator-cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "main": "dist/cli.cjs",
6
6
  "source": "src/index.ts",