@promptster/cli 0.2.4 → 0.2.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.
- package/README.md +3 -3
- package/bin/promptster.js +7 -0
- package/binaries/promptster-darwin-arm64 +0 -0
- package/binaries/promptster-darwin-x64 +0 -0
- package/binaries/promptster-linux-arm64 +0 -0
- package/binaries/promptster-linux-x64 +0 -0
- package/binaries/promptster-win32-x64.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,19 +42,19 @@ From the repo root:
|
|
|
42
42
|
```bash
|
|
43
43
|
# 1. Build binaries with the target version
|
|
44
44
|
cd apps/promptster-cli-npm
|
|
45
|
-
node scripts/build.js 2.
|
|
45
|
+
node scripts/build.js 0.2.5 # replace with your version
|
|
46
46
|
|
|
47
47
|
# 2. Update package.json version
|
|
48
48
|
# Edit version field in apps/promptster-cli-npm/package.json
|
|
49
49
|
|
|
50
50
|
# 3. Verify
|
|
51
|
-
node bin/promptster.js version # should print 2.
|
|
51
|
+
node bin/promptster.js version # should print 0.2.5
|
|
52
52
|
|
|
53
53
|
# 4. Publish (pnpm workspace-safe)
|
|
54
54
|
pnpm publish --access public --no-git-checks
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
Or push a `cli-
|
|
57
|
+
Or push a `cli-v0.2.5` git tag — CI will build + publish automatically.
|
|
58
58
|
|
|
59
59
|
## License
|
|
60
60
|
|
package/bin/promptster.js
CHANGED
|
@@ -43,6 +43,13 @@ if (!fs.existsSync(binaryPath)) {
|
|
|
43
43
|
process.exit(1);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
// Ensure the binary is executable (npm doesn't always preserve permissions)
|
|
47
|
+
try {
|
|
48
|
+
fs.chmodSync(binaryPath, 0o755);
|
|
49
|
+
} catch (_) {
|
|
50
|
+
// Ignore — may fail on Windows or read-only FS, exec will catch it
|
|
51
|
+
}
|
|
52
|
+
|
|
46
53
|
try {
|
|
47
54
|
execFileSync(binaryPath, process.argv.slice(2), { stdio: "inherit" });
|
|
48
55
|
} catch (err) {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|