contribute-now 0.7.1-dev.89e23e2 → 0.7.1-staging.11cdf15

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
@@ -12825,7 +12825,7 @@ var import_picocolors11 = __toESM(require_picocolors(), 1);
12825
12825
  // package.json
12826
12826
  var package_default = {
12827
12827
  name: "contribute-now",
12828
- version: "0.7.1-dev.89e23e2",
12828
+ version: "0.7.1-staging.11cdf15",
12829
12829
  description: "Developer CLI that automates git workflows \u2014 branching, syncing, committing, and PRs \u2014 with multi-workflow and commit convention support.",
12830
12830
  type: "module",
12831
12831
  bin: {
@@ -13301,12 +13301,8 @@ if command -v contrib >/dev/null 2>&1; then
13301
13301
  contrib validate --file "$commit_msg_file"
13302
13302
  elif command -v bunx >/dev/null 2>&1; then
13303
13303
  bunx contrib validate --file "$commit_msg_file"
13304
- elif command -v pnpx >/dev/null 2>&1; then
13305
- pnpx contrib validate --file "$commit_msg_file"
13306
- elif command -v npx >/dev/null 2>&1; then
13307
- npx contrib validate --file "$commit_msg_file"
13308
13304
  else
13309
- echo "Warning: No package runner found. Skipping commit message validation."
13305
+ echo "Warning: Neither contrib nor bunx is available. Skipping commit message validation."
13310
13306
  exit 0
13311
13307
  fi
13312
13308
  `;
@@ -17340,6 +17336,4 @@ var main = defineCommand({
17340
17336
  }
17341
17337
  }
17342
17338
  });
17343
- runMain(main).then(() => {
17344
- process.exit(0);
17345
- });
17339
+ runMain(main);
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  function isNpxExecution() {
2
- if (process.argv.some((arg) => /(?:^|[\\/])npx(?:\.cmd)?$/i.test(arg))) {
2
+ if (process.argv.some((arg) => /(?:^|[\\/])(?:npx|pnpx)(?:\.cmd)?$/i.test(arg))) {
3
3
  return true;
4
4
  }
5
- const userAgent = process.env.npm_config_user_agent ?? "";
6
- if (userAgent.startsWith("npm/")) {
7
- const execPath = process.env.npm_execpath ?? "";
8
- const lifecycle = process.env.npm_lifecycle_event ?? "";
9
- return execPath.includes("npx") || lifecycle === "npx";
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
10
  }
11
11
  return false;
12
12
  }
13
13
  function getBunRuntimeGuardMessage() {
14
14
  const lines = ["contribute-now requires Bun at runtime.", ""];
15
15
  if (isNpxExecution()) {
16
- lines.push("You are running it with Node/npx. Use Bun instead:");
16
+ lines.push("You are running it with Node/npx or pnpx. Use Bun instead:");
17
17
  lines.push(" bunx contribute-now setup");
18
18
  lines.push("");
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contribute-now",
3
- "version": "0.7.1-dev.89e23e2",
3
+ "version": "0.7.1-staging.11cdf15",
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": {