gitsu-cli 1.0.1 → 1.0.3
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.
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.0.3](https://github.com/jamieweavis/gitsu/compare/v1.0.2...v1.0.3) (2025-03-16)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* npm publish ([0f76e46](https://github.com/jamieweavis/gitsu/commit/0f76e463d8208811b07430a7a499988e67ca6e68))
|
|
7
|
+
|
|
8
|
+
## [1.0.2](https://github.com/jamieweavis/gitsu/compare/v1.0.1...v1.0.2) (2025-03-16)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* save git config globally ([d744f2f](https://github.com/jamieweavis/gitsu/commit/d744f2ff3c39187531c60d41df3269b8f4bd7d7e))
|
|
14
|
+
|
|
1
15
|
## [1.0.1](https://github.com/jamieweavis/gitsu/compare/v1.0.0...v1.0.1) (2025-03-15)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
[](https://github.com/jamieweavis/gitsu/releases)
|
|
8
8
|
[](https://github.com/jamieweavis/gitsu/blob/main/LICENSE)
|
|
9
9
|
|
|
10
|
+
<img width=678 alt="Screenshot" src="./.github/screenshot.png">
|
|
11
|
+
|
|
10
12
|
## Install
|
|
11
13
|
|
|
12
14
|
```sh
|
package/lib/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gitsu-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Command line util for quickly & easily switching git users",
|
|
5
5
|
"author": "Jamie Weavis",
|
|
6
6
|
"homepage": "https://github.com/jamieweavis/gitsu#readme",
|
|
@@ -65,7 +65,9 @@
|
|
|
65
65
|
"ts-node-dev": "^2.0.0"
|
|
66
66
|
},
|
|
67
67
|
"release": {
|
|
68
|
-
"branches": [
|
|
68
|
+
"branches": [
|
|
69
|
+
"main"
|
|
70
|
+
],
|
|
69
71
|
"plugins": [
|
|
70
72
|
"@semantic-release/changelog",
|
|
71
73
|
"@semantic-release/commit-analyzer",
|
|
@@ -76,9 +78,14 @@
|
|
|
76
78
|
]
|
|
77
79
|
},
|
|
78
80
|
"lint-staged": {
|
|
79
|
-
"*.ts": [
|
|
81
|
+
"*.ts": [
|
|
82
|
+
"biome format --write",
|
|
83
|
+
"biome lint --write"
|
|
84
|
+
]
|
|
80
85
|
},
|
|
81
86
|
"commitlint": {
|
|
82
|
-
"extends": [
|
|
87
|
+
"extends": [
|
|
88
|
+
"@commitlint/config-conventional"
|
|
89
|
+
]
|
|
83
90
|
}
|
|
84
91
|
}
|
|
@@ -16,7 +16,7 @@ const node_child_process_1 = __importDefault(require("node:child_process"));
|
|
|
16
16
|
const log_symbols_1 = __importDefault(require("log-symbols"));
|
|
17
17
|
exports.default = (user) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
18
|
try {
|
|
19
|
-
yield node_child_process_1.default.exec(`git config user.name "${user.name}" && git config user.email "${user.email}"`);
|
|
19
|
+
yield node_child_process_1.default.exec(`git config --global user.name "${user.name}" && git config --global user.email "${user.email}"`);
|
|
20
20
|
return true;
|
|
21
21
|
}
|
|
22
22
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import type { IUser } from '../types';
|
|
|
6
6
|
export default async (user: IUser): Promise<boolean> => {
|
|
7
7
|
try {
|
|
8
8
|
await child_process.exec(
|
|
9
|
-
`git config user.name "${user.name}" && git config user.email "${user.email}"`,
|
|
9
|
+
`git config --global user.name "${user.name}" && git config --global user.email "${user.email}"`,
|
|
10
10
|
);
|
|
11
11
|
|
|
12
12
|
return true;
|