contribute-now 0.7.3 → 0.7.4-dev.ac68df0
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 +67 -64
- package/dist/cli.js +477 -1744
- package/package.json +7 -9
- package/dist/index.js +0 -35
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contribute-now",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4-dev.ac68df0",
|
|
4
4
|
"description": "Developer CLI that automates git workflows — branching, syncing, committing, and PRs — with multi-workflow and commit convention support.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"contrib": "dist/
|
|
8
|
-
"contribute": "dist/
|
|
9
|
-
"cn": "dist/
|
|
7
|
+
"contrib": "dist/cli.js",
|
|
8
|
+
"contribute": "dist/cli.js",
|
|
9
|
+
"cn": "dist/cli.js"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "bun build src/cli.ts --outfile dist/cli.js --target bun && bun
|
|
16
|
-
"cli": "bun run src/
|
|
17
|
-
"dev": "bun src/
|
|
15
|
+
"build": "bun build src/cli.ts --outfile dist/cli.js --target bun && bun run scripts/add-shebang.mjs",
|
|
16
|
+
"cli": "bun run src/cli.ts --",
|
|
17
|
+
"dev": "bun src/cli.ts",
|
|
18
18
|
"test": "bun test",
|
|
19
19
|
"lint": "biome check .",
|
|
20
20
|
"lint:fix": "biome check --write .",
|
|
@@ -49,13 +49,11 @@
|
|
|
49
49
|
"@github/copilot-sdk": "^0.1.25",
|
|
50
50
|
"@wgtechlabs/log-engine": "^2.3.1",
|
|
51
51
|
"citty": "^0.1.6",
|
|
52
|
-
"figlet": "^1.10.0",
|
|
53
52
|
"picocolors": "^1.1.1"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
56
55
|
"@biomejs/biome": "^2.4.4",
|
|
57
56
|
"@types/bun": "latest",
|
|
58
|
-
"@types/figlet": "^1.7.0",
|
|
59
57
|
"typescript": "^5.7.0"
|
|
60
58
|
}
|
|
61
59
|
}
|
package/dist/index.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
function isNpxExecution() {
|
|
2
|
-
if (process.argv.some((arg) => /(?:^|[\\/])(?:npx|pnpx)(?:\.cmd)?$/i.test(arg))) {
|
|
3
|
-
return true;
|
|
4
|
-
}
|
|
5
|
-
const userAgent = (process.env.npm_config_user_agent ?? "").toLowerCase();
|
|
6
|
-
if (userAgent.startsWith("npm/") || userAgent.startsWith("pnpm/")) {
|
|
7
|
-
const execPath = (process.env.npm_execpath ?? "").toLowerCase();
|
|
8
|
-
const lifecycle = (process.env.npm_lifecycle_event ?? "").toLowerCase();
|
|
9
|
-
return execPath.includes("npx") || execPath.includes("pnpx") || lifecycle === "npx" || lifecycle === "pnpx";
|
|
10
|
-
}
|
|
11
|
-
return false;
|
|
12
|
-
}
|
|
13
|
-
function getBunRuntimeGuardMessage() {
|
|
14
|
-
const lines = ["contribute-now requires Bun at runtime.", ""];
|
|
15
|
-
if (isNpxExecution()) {
|
|
16
|
-
lines.push("You are running it with Node/npx or pnpx. Use Bun instead:");
|
|
17
|
-
lines.push(" bunx contribute-now setup");
|
|
18
|
-
lines.push("");
|
|
19
|
-
}
|
|
20
|
-
lines.push("Install Bun first:");
|
|
21
|
-
lines.push(" npm install -g bun");
|
|
22
|
-
lines.push("");
|
|
23
|
-
lines.push("Then verify:");
|
|
24
|
-
lines.push(" bun --version");
|
|
25
|
-
lines.push("");
|
|
26
|
-
lines.push("Official install guide:");
|
|
27
|
-
lines.push(" https://bun.sh/docs/installation");
|
|
28
|
-
return lines.join(`
|
|
29
|
-
`);
|
|
30
|
-
}
|
|
31
|
-
if (typeof globalThis.Bun === "undefined") {
|
|
32
|
-
console.error(getBunRuntimeGuardMessage());
|
|
33
|
-
process.exit(1);
|
|
34
|
-
}
|
|
35
|
-
await import("./cli.js");
|