@only1btayy/g2w 1.0.12 → 1.0.14
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 +1 -1
- package/bin/g2w.js +0 -1
- package/lib/install.js +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -141,7 +141,7 @@ Safe git operations — add, commit, push, status, log — run without approval
|
|
|
141
141
|
## How 2 Install
|
|
142
142
|
|
|
143
143
|
```bash
|
|
144
|
-
npm install -g @only1btayy/g2w
|
|
144
|
+
npm install -g @only1btayy/g2w && g2w
|
|
145
145
|
```
|
|
146
146
|
|
|
147
147
|
That's it. G2W installs globally into `~/.claude/` automatically — skills and hooks ready in every project, everywhere.
|
package/bin/g2w.js
CHANGED
package/lib/install.js
CHANGED
|
@@ -43,7 +43,7 @@ const G2W_HOOKS = {
|
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
function copySkills(targetBase) {
|
|
46
|
-
const dest = path.join(targetBase, '.claude', '
|
|
46
|
+
const dest = path.join(targetBase, '.claude', 'commands', 'g2w');
|
|
47
47
|
fs.mkdirSync(dest, { recursive: true });
|
|
48
48
|
const files = fs.readdirSync(SKILLS_SRC).filter(f => f.endsWith('.md'));
|
|
49
49
|
files.forEach(file => {
|
|
@@ -86,7 +86,7 @@ function mergeHooks(targetBase) {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
function removeSkills(targetBase) {
|
|
89
|
-
const dest = path.join(targetBase, '.claude', '
|
|
89
|
+
const dest = path.join(targetBase, '.claude', 'commands', 'g2w');
|
|
90
90
|
if (fs.existsSync(dest)) {
|
|
91
91
|
fs.rmSync(dest, { recursive: true, force: true });
|
|
92
92
|
return true;
|
|
@@ -129,7 +129,7 @@ async function run() {
|
|
|
129
129
|
writeTTY(`${LOGO}
|
|
130
130
|
\x1b[32m✅ G2W installed at ${label}\x1b[0m
|
|
131
131
|
|
|
132
|
-
${count} skills → ${path.join(label, '
|
|
132
|
+
${count} skills → ${path.join(label, 'commands/g2w/')}
|
|
133
133
|
Hooks → ${path.join(label, 'settings.json')}
|
|
134
134
|
|
|
135
135
|
Open any project with Claude Code and type:
|