@webywz/vibe-commit 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -7,7 +7,7 @@ Stage your files, run one command, get a commit message that looks like you mean
7
7
  一条命令,根据暂存区 diff 写出有品味的 [Conventional Commits](https://www.conventionalcommits.org/)。**无 API Key 也能用**,有 Key 时再可选 AI。
8
8
 
9
9
  [![CI](https://github.com/webywz/vibe-commit/actions/workflows/ci.yml/badge.svg)](https://github.com/webywz/vibe-commit/actions/workflows/ci.yml)
10
- [![npm](https://img.shields.io/npm/v/vibe-commit.svg)](https://www.npmjs.com/package/vibe-commit)
10
+ [![npm](https://img.shields.io/npm/v/@webywz/vibe-commit.svg)](https://www.npmjs.com/package/@webywz/vibe-commit)
11
11
  [![license](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
12
12
 
13
13
  ---
@@ -48,16 +48,16 @@ git commit -m "$(vibe-commit --dry-run)"
48
48
  ## Install · 安装
49
49
 
50
50
  ```bash
51
- npm install -g vibe-commit
51
+ npm install -g @webywz/vibe-commit
52
52
  # or, no install:
53
- npx vibe-commit
53
+ npx @webywz/vibe-commit
54
54
  ```
55
55
 
56
- Requires **Node.js 18.18+** and `git`.
56
+ Requires **Node.js 18.18+** and `git`. After install, the CLI binary is still `vibe-commit`.
57
57
 
58
58
  ```bash
59
- npm i -g vibe-commit # 全局安装
60
- npx vibe-commit # 一次性运行
59
+ npm i -g @webywz/vibe-commit # 全局安装
60
+ npx @webywz/vibe-commit # 一次性运行
61
61
  ```
62
62
 
63
63
  ---
@@ -128,7 +128,7 @@ Copy `.env.example` if you keep secrets in a file. vibe-commit never sends unsta
128
128
  ## Library
129
129
 
130
130
  ```ts
131
- import { proposeHeuristic, formatCommit } from "vibe-commit";
131
+ import { proposeHeuristic, formatCommit } from "@webywz/vibe-commit";
132
132
 
133
133
  const message = proposeHeuristic({ diff, vibe: "pro" });
134
134
  console.log(formatCommit(message));
@@ -151,7 +151,7 @@ node dist/cli.js --help
151
151
  | Script | |
152
152
  | --- | --- |
153
153
  | `npm test` | Unit + e2e tests (`node:test` + `tsx`) |
154
- | `npm run build` | Emit `dist/` |
154
+ | `npm run build` | Emit `dist/` (shebang + executable bit on `dist/cli.js`) |
155
155
  | `npm run typecheck` | `tsc --noEmit` |
156
156
 
157
157
  MIT © webywz — see [LICENSE](./LICENSE).
package/dist/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webywz/vibe-commit",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Stylish conventional commit messages with personality. Offline-first, AI-optional.",
5
5
  "keywords": [
6
6
  "git",
@@ -23,7 +23,10 @@
23
23
  "author": "webywz",
24
24
  "type": "module",
25
25
  "bin": {
26
- "vibe-commit": "./dist/cli.js"
26
+ "vibe-commit": "dist/cli.js"
27
+ },
28
+ "publishConfig": {
29
+ "access": "public"
27
30
  },
28
31
  "exports": {
29
32
  ".": {
@@ -43,7 +46,7 @@
43
46
  "node": ">=18.18"
44
47
  },
45
48
  "scripts": {
46
- "build": "tsc",
49
+ "build": "tsc && node -e \"require('fs').chmodSync('dist/cli.js', 0o755)\"",
47
50
  "clean": "rm -rf dist",
48
51
  "prepublishOnly": "npm run build",
49
52
  "test": "tsx --test test/*.test.ts",