opencommit 1.1.1 → 1.1.2
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/out/cli.cjs +10 -4
- package/package.json +2 -2
package/out/cli.cjs
CHANGED
|
@@ -15453,7 +15453,7 @@ var package_default = {
|
|
|
15453
15453
|
start: "node ./out/cli.cjs",
|
|
15454
15454
|
dev: "ts-node ./src/cli.ts",
|
|
15455
15455
|
build: "rimraf out && esbuild ./src/cli.ts --bundle --outfile=out/cli.cjs --format=cjs --platform=node",
|
|
15456
|
-
deploy: "npm run build && npm version patch && npm publish",
|
|
15456
|
+
deploy: "npm run build && npm version patch && npm publish --tag latest",
|
|
15457
15457
|
lint: "eslint src --ext ts && tsc --noEmit"
|
|
15458
15458
|
},
|
|
15459
15459
|
devDependencies: {
|
|
@@ -17805,11 +17805,17 @@ Z2(
|
|
|
17805
17805
|
ignoreArgv: (type) => type === "unknown-flag" || type === "argument",
|
|
17806
17806
|
help: { description: package_default.description }
|
|
17807
17807
|
},
|
|
17808
|
-
() => {
|
|
17808
|
+
async () => {
|
|
17809
17809
|
if (isHookCalled) {
|
|
17810
|
-
prepareCommitMessageHook();
|
|
17810
|
+
await prepareCommitMessageHook();
|
|
17811
17811
|
} else {
|
|
17812
|
-
commit();
|
|
17812
|
+
await commit();
|
|
17813
|
+
const { stdout } = await execa("npm", ["view", "opencommit", "version"]);
|
|
17814
|
+
if (stdout !== package_default.version) {
|
|
17815
|
+
ce(
|
|
17816
|
+
"new opencommit version is available, update with `npm i -g opencommit`"
|
|
17817
|
+
);
|
|
17818
|
+
}
|
|
17813
17819
|
}
|
|
17814
17820
|
},
|
|
17815
17821
|
rawArgv
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencommit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "GPT CLI to auto-generate impressive commits in 1 second. Killing lame commits with AI 🤯🔫",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"start": "node ./out/cli.cjs",
|
|
42
42
|
"dev": "ts-node ./src/cli.ts",
|
|
43
43
|
"build": "rimraf out && esbuild ./src/cli.ts --bundle --outfile=out/cli.cjs --format=cjs --platform=node",
|
|
44
|
-
"deploy": "npm run build && npm version patch && npm publish",
|
|
44
|
+
"deploy": "npm run build && npm version patch && npm publish --tag latest",
|
|
45
45
|
"lint": "eslint src --ext ts && tsc --noEmit"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|