contribute-now 0.7.4-dev.e1cbd66 → 0.7.4-dev.f12193e

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/cli.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env bun
1
2
  // @bun
2
3
  var __create = Object.create;
3
4
  var __getProtoOf = Object.getPrototypeOf;
@@ -12936,19 +12937,19 @@ var import_picocolors12 = __toESM(require_picocolors(), 1);
12936
12937
  // package.json
12937
12938
  var package_default = {
12938
12939
  name: "contribute-now",
12939
- version: "0.7.4-dev.e1cbd66",
12940
+ version: "0.7.4-dev.f12193e",
12940
12941
  description: "Developer CLI that automates git workflows \u2014 branching, syncing, committing, and PRs \u2014 with multi-workflow and commit convention support.",
12941
12942
  type: "module",
12942
12943
  bin: {
12943
- contrib: "dist/index.js",
12944
- contribute: "dist/index.js",
12945
- cn: "dist/index.js"
12944
+ contrib: "dist/cli.js",
12945
+ contribute: "dist/cli.js",
12946
+ cn: "dist/cli.js"
12946
12947
  },
12947
12948
  files: [
12948
12949
  "dist"
12949
12950
  ],
12950
12951
  scripts: {
12951
- build: "bun build src/cli.ts --outfile dist/cli.js --target bun && bun build src/index.ts --outfile dist/index.js --target node --no-bundle",
12952
+ build: "bun build src/cli.ts --outfile dist/cli.js --target bun && bun run scripts/add-shebang.mjs",
12952
12953
  cli: "bun run src/index.ts --",
12953
12954
  dev: "bun src/index.ts",
12954
12955
  test: "bun test",
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "contribute-now",
3
- "version": "0.7.4-dev.e1cbd66",
3
+ "version": "0.7.4-dev.f12193e",
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/index.js",
8
- "contribute": "dist/index.js",
9
- "cn": "dist/index.js"
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 build src/index.ts --outfile dist/index.js --target node --no-bundle",
15
+ "build": "bun build src/cli.ts --outfile dist/cli.js --target bun && bun run scripts/add-shebang.mjs",
16
16
  "cli": "bun run src/index.ts --",
17
17
  "dev": "bun src/index.ts",
18
18
  "test": "bun test",
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");