@@ -27331,7 +27331,7 @@ function G3(t2, e3) {
27331
27331
// package.json
27332
27332
var package_default = {
27333
27333
name: "opencommit",
27334
- version: "3.1.2 ",
27334
+ version: "3.2.1 ",
27335
27335
description: "Auto-generate impressive commits in 1 second. Killing lame commits with AI \u{1F92F}\u{1F52B}",
27336
27336
keywords: [
27337
27337
"git",
@@ -27377,8 +27377,9 @@ var package_default = {
27377
27377
"dev:gemini": "OCO_AI_PROVIDER='gemini' ts-node ./src/cli.ts",
27378
27378
build: "rimraf out && node esbuild.config.js",
27379
27379
"build:push": "npm run build && git add . && git commit -m 'build' && git push",
27380
- deploy: "npm run build:push && git push --tags && npm publish --tag latest",
27381
- "deploy:patch": "npm version patch && npm run deploy",
27380
+ deploy: "npm publish --tag latest",
27381
+ "deploy:build": "npm run build:push && git push --tags && npm run deploy",
27382
+ "deploy:patch": "npm version patch && npm run deploy:build",
27382
27383
lint: "eslint src --ext ts && tsc --noEmit",
27383
27384
format: "prettier --write src",
27384
27385
test: "node --no-warnings --experimental-vm-modules $( [ -f ./node_modules/.bin/jest ] && echo ./node_modules/.bin/jest || which jest ) test/unit",
@@ -45277,13 +45278,15 @@ ${source_default.grey("\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2
45277
45278
);
45278
45279
ce(stdout);
45279
45280
const remotes = await getGitRemotes();
45281
+ if (config6.OCO_GITPUSH === false)
45282
+ return;
45280
45283
if (!remotes.length) {
45281
45284
const { stdout: stdout2 } = await execa("git", ["push"]);
45282
45285
if (stdout2)
45283
45286
ce(stdout2);
45284
45287
process.exit(0);
45285
45288
}
45286
- if (remotes.length === 1 && config6.OCO_GITPUSH !== true ) {
45289
+ if (remotes.length === 1) {
45287
45290
const isPushConfirmedByUser = await Q3({
45288
45291
message: "Do you want to run `git push`?"
45289
45292
});
0 commit comments