Compare commits

...

9 Commits

Author SHA1 Message Date
di-sukharev
c50c416dfc 0.0.10 2023-03-06 19:22:34 +08:00
di-sukharev
f8720ff089 0.0.9 2023-03-06 19:22:14 +08:00
di-sukharev
afa5949c06 * 📦 chore(package.json): rename prepublish script to patch
The prepublish script has been renamed to patch to better reflect its purpose of incrementing the patch version of the package.
2023-03-06 19:22:11 +08:00
di-sukharev
b1ec69e4dd * 🐛 fix(githook.ts): change cli file extension from .mjs to .cjs
The file extension of the cli file was changed from .mjs to .cjs to ensure compatibility with Node.js versions that do not support ES modules.
2023-03-06 19:21:24 +08:00
di-sukharev
0061816b6a * 🐛 fix(TODO.md): add missing TODO item
* 🐛 fix(TODO.md): update existing TODO item
The first item is a fix for a missing TODO item. The second item is an update to an existing TODO item. The bundle size can be reduced by properly configuring esbuild. Additionally, small files can be batched together in a single request to further reduce the bundle size.
2023-03-06 19:20:42 +08:00
di-sukharev
352b81c6c6 * 🚀 chore(package.json): change 'publish' script to 'prepublish'
The 'publish' script has been changed to 'prepublish' to ensure that the version is updated before publishing the package. This is a best practice to ensure that the published package has the correct version number.
2023-03-06 19:09:27 +08:00
di-sukharev
430776af29 0.0.8 2023-03-06 19:09:04 +08:00
di-sukharev
c573edea97 0.0.7 2023-03-06 19:08:57 +08:00
di-sukharev
5282734583 * 🐛 fix(package.json): remove npm publish command from publish script
The npm publish command has been removed from the publish script. This is because the command should be run manually after bumping the version number.
2023-03-06 19:08:37 +08:00
4 changed files with 7 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
# TODOs
- [] [build for both mjs and cjs](https://snyk.io/blog/best-practices-create-modern-npm-package/)
- []
- [] make bundle smaller by properly configuring esbuild
- [] batch small files in one request

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "open-commit",
"version": "0.0.6",
"version": "0.0.10",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "open-commit",
"version": "0.0.6",
"version": "0.0.10",
"license": "ISC",
"dependencies": {
"@clack/prompts": "^0.6.1",

View File

@@ -1,6 +1,6 @@
{
"name": "opencommit",
"version": "0.0.6",
"version": "0.0.10",
"description": "AI generates conventional commits with mind-blowing accuracy.",
"keywords": [
"git",
@@ -37,7 +37,7 @@
"start": "node ./out/cli.cjs",
"dev": "ts-node ./src/cli.ts",
"build": "rimraf out && esbuild ./src/cli.ts --bundle --outfile=out/cli.cjs --format=cjs --platform=node",
"publish": "npm version patch && npm publish",
"patch": "npm version patch",
"lint": "eslint src --ext ts && tsc --noEmit"
},
"devDependencies": {

View File

@@ -20,7 +20,7 @@ export const hookCommand = command(
parameters: ['<set/unset>']
},
async (argv) => {
const HOOK_PATH = fileURLToPath(new URL('cli.mjs', import.meta.url));
const HOOK_PATH = fileURLToPath(new URL('cli.cjs', import.meta.url));
try {
await assertGitRepo();