npm-update-package 0.12.0 → 0.13.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.
package/README.md CHANGED
@@ -9,10 +9,6 @@ CLI tool for creating pull request to update npm packages
9
9
 
10
10
  This package is currently under development, so the major version is 0 yet.
11
11
 
12
- ## Requirements
13
-
14
- - Git v2.23.0 or higher
15
-
16
12
  ## Usage
17
13
 
18
14
  ```sh
package/dist/app.js CHANGED
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.app = void 0;
4
4
  exports.app = {
5
5
  name: 'npm-update-package',
6
- version: '0.12.0',
6
+ version: '0.13.0',
7
7
  web: 'https://github.com/npm-update-package/npm-update-package'
8
8
  };
package/dist/git/Git.js CHANGED
@@ -14,7 +14,7 @@ class Git {
14
14
  await this.terminal.run('git', 'commit', '--message', message);
15
15
  }
16
16
  async createBranch(branchName) {
17
- await this.terminal.run('git', 'switch', '-c', branchName);
17
+ await this.terminal.run('git', 'checkout', '-b', branchName);
18
18
  }
19
19
  async getConfig(key) {
20
20
  const { stdout } = await this.terminal.run('git', 'config', key);
@@ -39,13 +39,13 @@ class Git {
39
39
  await this.terminal.run('git', 'branch', '-D', branchName);
40
40
  }
41
41
  async restore(...files) {
42
- await this.terminal.run('git', 'restore', '--worktree', '--staged', ...files);
42
+ await this.terminal.run('git', 'checkout', ...files);
43
43
  }
44
44
  async setConfig(key, value) {
45
45
  await this.terminal.run('git', 'config', key, value);
46
46
  }
47
47
  async switch(branchName) {
48
- await this.terminal.run('git', 'switch', branchName);
48
+ await this.terminal.run('git', 'checkout', branchName);
49
49
  }
50
50
  }
51
51
  exports.Git = Git;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-update-package",
3
- "version": "0.12.0",
3
+ "version": "0.13.0",
4
4
  "description": "CLI tool for creating pull request to update npm packages",
5
5
  "scripts": {
6
6
  "build": "tsc --project tsconfig.build.json",