@diggerhq/catty 0.2.30 → 0.2.32
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/bin/catty +9 -0
- package/package.json +2 -1
- package/scripts/release.js +15 -5
package/bin/catty
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Placeholder entrypoint so npm reliably creates the global `catty` shim.
|
|
3
|
+
// `npm/scripts/install.js` downloads the real platform binary and overwrites this file.
|
|
4
|
+
|
|
5
|
+
console.error("catty: install incomplete (postinstall did not download the binary).");
|
|
6
|
+
console.error("Try: npm config set ignore-scripts false && npm install -g @diggerhq/catty --foreground-scripts");
|
|
7
|
+
process.exit(1);
|
|
8
|
+
|
|
9
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@diggerhq/catty",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.32",
|
|
4
4
|
"description": "Run Claude Code sessions remotely",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"postinstall": "node scripts/install.js",
|
|
24
24
|
"release": "node scripts/release.js patch",
|
|
25
|
+
"release:ci": "node scripts/release.js --no-bump",
|
|
25
26
|
"release:patch": "node scripts/release.js patch",
|
|
26
27
|
"release:minor": "node scripts/release.js minor",
|
|
27
28
|
"release:major": "node scripts/release.js major"
|
package/scripts/release.js
CHANGED
|
@@ -11,14 +11,24 @@ function run(cmd, cwd = rootDir) {
|
|
|
11
11
|
execSync(cmd, { cwd, stdio: 'inherit' });
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
console.
|
|
14
|
+
const args = process.argv.slice(2);
|
|
15
|
+
if (args.includes('--help') || args.includes('-h')) {
|
|
16
|
+
console.log('Usage: node scripts/release.js [patch|minor|major] [--no-bump|ci]');
|
|
17
|
+
process.exit(0);
|
|
18
|
+
}
|
|
19
|
+
const noBump = args.includes('--no-bump') || args.includes('ci');
|
|
20
|
+
const filtered = args.filter((a) => a !== '--no-bump' && a !== 'ci');
|
|
21
|
+
|
|
22
|
+
const versionType = filtered[0] || 'patch';
|
|
23
|
+
if (!noBump && !['patch', 'minor', 'major'].includes(versionType)) {
|
|
24
|
+
console.error('Usage: node scripts/release.js [patch|minor|major] [--no-bump|ci]');
|
|
17
25
|
process.exit(1);
|
|
18
26
|
}
|
|
19
27
|
|
|
20
|
-
// 1. Bump version
|
|
21
|
-
|
|
28
|
+
// 1. Bump version (unless running in CI mode)
|
|
29
|
+
if (!noBump) {
|
|
30
|
+
run(`npm version ${versionType} --no-git-tag-version`, npmDir);
|
|
31
|
+
}
|
|
22
32
|
|
|
23
33
|
// 2. Get new version
|
|
24
34
|
const packageJson = require('../package.json');
|