prjct-cli 0.29.8 → 0.29.10
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.
|
@@ -428,3 +428,13 @@ function showResults(results: SetupResults): void {
|
|
|
428
428
|
|
|
429
429
|
console.log('')
|
|
430
430
|
}
|
|
431
|
+
|
|
432
|
+
// Auto-execute when run directly (for bun/node CLI usage)
|
|
433
|
+
// This enables: bun core/infrastructure/setup.ts
|
|
434
|
+
const isDirectRun = process.argv[1]?.includes('setup.ts') || process.argv[1]?.includes('setup.js')
|
|
435
|
+
if (isDirectRun) {
|
|
436
|
+
run().catch((error) => {
|
|
437
|
+
console.error('Setup error:', error.message)
|
|
438
|
+
process.exit(1)
|
|
439
|
+
})
|
|
440
|
+
}
|
package/dist/bin/prjct.mjs
CHANGED
|
@@ -2096,7 +2096,7 @@ function showResults(results) {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
console.log("");
|
|
2098
2098
|
}
|
|
2099
|
-
var GREEN, YELLOW, DIM, NC, setup_default;
|
|
2099
|
+
var GREEN, YELLOW, DIM, NC, setup_default, isDirectRun;
|
|
2100
2100
|
var init_setup = __esm({
|
|
2101
2101
|
"core/infrastructure/setup.ts"() {
|
|
2102
2102
|
"use strict";
|
|
@@ -2117,6 +2117,13 @@ var init_setup = __esm({
|
|
|
2117
2117
|
__name(installStatusLineModules, "installStatusLineModules");
|
|
2118
2118
|
__name(ensureStatusLineSymlink, "ensureStatusLineSymlink");
|
|
2119
2119
|
__name(showResults, "showResults");
|
|
2120
|
+
isDirectRun = process.argv[1]?.includes("setup.ts") || process.argv[1]?.includes("setup.js");
|
|
2121
|
+
if (isDirectRun) {
|
|
2122
|
+
run().catch((error) => {
|
|
2123
|
+
console.error("Setup error:", error.message);
|
|
2124
|
+
process.exit(1);
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2120
2127
|
}
|
|
2121
2128
|
});
|
|
2122
2129
|
|
|
@@ -12534,7 +12541,7 @@ var require_package = __commonJS({
|
|
|
12534
12541
|
"package.json"(exports, module) {
|
|
12535
12542
|
module.exports = {
|
|
12536
12543
|
name: "prjct-cli",
|
|
12537
|
-
version: "0.29.
|
|
12544
|
+
version: "0.29.10",
|
|
12538
12545
|
description: "Built for Claude - Ship fast, track progress, stay focused. Developer momentum tool for indie hackers.",
|
|
12539
12546
|
main: "core/index.ts",
|
|
12540
12547
|
bin: {
|
|
@@ -880,6 +880,13 @@ function showResults(results) {
|
|
|
880
880
|
console.log("");
|
|
881
881
|
}
|
|
882
882
|
__name(showResults, "showResults");
|
|
883
|
+
var isDirectRun = process.argv[1]?.includes("setup.ts") || process.argv[1]?.includes("setup.js");
|
|
884
|
+
if (isDirectRun) {
|
|
885
|
+
run().catch((error) => {
|
|
886
|
+
console.error("Setup error:", error.message);
|
|
887
|
+
process.exit(1);
|
|
888
|
+
});
|
|
889
|
+
}
|
|
883
890
|
// Annotate the CommonJS export names for ESM import in node:
|
|
884
891
|
0 && (module.exports = {
|
|
885
892
|
run
|