prjct-cli 0.29.4 → 0.29.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/dist/bin/prjct.mjs +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.js +13 -8
package/dist/bin/prjct.mjs
CHANGED
|
@@ -12508,7 +12508,7 @@ var require_package = __commonJS({
|
|
|
12508
12508
|
"package.json"(exports, module) {
|
|
12509
12509
|
module.exports = {
|
|
12510
12510
|
name: "prjct-cli",
|
|
12511
|
-
version: "0.29.
|
|
12511
|
+
version: "0.29.4",
|
|
12512
12512
|
description: "Built for Claude - Ship fast, track progress, stay focused. Developer momentum tool for indie hackers.",
|
|
12513
12513
|
main: "core/index.ts",
|
|
12514
12514
|
bin: {
|
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -154,10 +154,9 @@ function updateStatusLineVersion() {
|
|
|
154
154
|
* Main
|
|
155
155
|
*/
|
|
156
156
|
async function main() {
|
|
157
|
-
//
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
157
|
+
// ALWAYS run setup - don't try to detect global vs local
|
|
158
|
+
// Worst case: setup runs unnecessarily on local dev installs (harmless)
|
|
159
|
+
// Best case: setup actually works for all users
|
|
161
160
|
|
|
162
161
|
console.log('')
|
|
163
162
|
console.log(' prjct-cli postinstall')
|
|
@@ -169,17 +168,23 @@ async function main() {
|
|
|
169
168
|
}
|
|
170
169
|
|
|
171
170
|
// Run full setup
|
|
171
|
+
let success = false
|
|
172
172
|
if (hasBun()) {
|
|
173
|
-
await runSetupBun()
|
|
173
|
+
success = await runSetupBun()
|
|
174
174
|
} else {
|
|
175
|
-
await runSetupCompiled()
|
|
175
|
+
success = await runSetupCompiled()
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if (!success) {
|
|
179
|
+
console.log(' ⚠ Setup incomplete. Run: npx prjct-cli setup')
|
|
176
180
|
}
|
|
177
181
|
|
|
178
182
|
console.log('')
|
|
179
183
|
}
|
|
180
184
|
|
|
181
185
|
main().catch((error) => {
|
|
182
|
-
//
|
|
183
|
-
console.
|
|
186
|
+
// Log error but don't fail npm install
|
|
187
|
+
console.error(' postinstall error:', error.message)
|
|
188
|
+
console.log(' Run manually: npx prjct-cli setup')
|
|
184
189
|
process.exit(0)
|
|
185
190
|
})
|