ccommit 4.2.0-canary.2 → 4.2.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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "ccommit",
3
- "version": "4.2.0-canary.2",
3
+ "version": "4.2.1",
4
4
  "private": false,
5
- "description": "😜 ➕ 👔 🟰 ccommit \n Conventional Commit Generator that interprets commit types from gitmoji and conventional",
5
+ "description": "😜 ➕ 👔 🟰 ccommit \n Conventional Commit Generator that translates conventional commits to gitmoji.",
6
6
  "keywords": [
7
7
  "commit",
8
8
  "conventional changelog",
@@ -27,41 +27,14 @@
27
27
  "directory": "packages/ccommit"
28
28
  },
29
29
  "bin": {
30
- "ccommit": "./src/index.ts"
30
+ "ccommit": "./index.mjs"
31
31
  },
32
- "files": [
33
- "dist"
34
- ],
35
32
  "type": "module",
36
33
  "sideEffects": false,
37
34
  "exports": {
38
- ".": {
39
- "development": "./src/index.ts",
40
- "default": "./dist/index.mjs"
41
- },
35
+ ".": "./index.mjs",
42
36
  "./package.json": "./package.json"
43
37
  },
44
- "publishConfig": {
45
- "bin": {
46
- "ccommit": "./dist/index.mjs"
47
- },
48
- "exports": {
49
- ".": "./dist/index.mjs",
50
- "./package.json": "./package.json"
51
- },
52
- "provenance": true,
53
- "registry": "https://registry.npmjs.org/"
54
- },
55
- "scripts": {
56
- "build": "tsdown",
57
- "clean": "rm -rf .turbo && rm -rf dist",
58
- "clean:install": "pnpm run clean && rm -rf node_modules",
59
- "dev": "tsdown --watch",
60
- "dry:run": "pnpm run build && node ./dist/index.js -c -n",
61
- "lint:ts": "tsc --noEmit --declaration",
62
- "semantic-release": "semantic-release",
63
- "semantic-release:dry": "semantic-release --dry-run"
64
- },
65
38
  "dependencies": {
66
39
  "ansi-colors": "4.1.3",
67
40
  "enquirer": "2.4.1",
@@ -69,10 +42,6 @@
69
42
  "fuse.js": "7.4.2",
70
43
  "meow": "14.1.0"
71
44
  },
72
- "devDependencies": {
73
- "@types/node": "24.13.2",
74
- "is-in-ci": "2.0.0"
75
- },
76
45
  "engines": {
77
46
  "node": ">=24"
78
47
  }
package/src/index.ts DELETED
@@ -1,67 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- /*!
4
- * For license information please see index.js.LICENSE.txt
5
- */
6
- import meow from "meow";
7
-
8
- import { commit, list } from "./commands/index.ts";
9
- import { COMMANDS, COMMIT_FORMATS, FLAGS, OPTIONS } from "./lib/index.ts";
10
- import { findCommand } from "./utils/index.ts";
11
-
12
- const cli = meow(
13
- `
14
- Usage
15
- $ ccommit -c
16
-
17
- Flags
18
- --${FLAGS.BREAKING}, -b 💥 Breaking Change
19
- --${FLAGS.COMMIT}, -c 💽 Mode: Client
20
- --${FLAGS.DRYRUN}, -n 🎽 Mode: Dry Run
21
- --${FLAGS.EMOJI}, -e 😜 Emoji (default)
22
- --${FLAGS.HOOK}, -u 🪝 Mode: Hook
23
- --${FLAGS.LIST}, -l 📖 List all types
24
- --${FLAGS.VERSION}, -v 📦 Print installed version
25
-
26
- Options
27
- --${OPTIONS.FORMAT} 😜 Commit Format: conventional|gitmoji (default)
28
- --${OPTIONS.MESSAGE} 📝 Commit Message
29
- --${OPTIONS.SCOPE} 🔬 Commit Scope
30
- --${OPTIONS.TITLE} 📓 Commit Title
31
- --${OPTIONS.TYPE} ✨ Commit Type
32
-
33
- Notes
34
- - Pass any non-format options the following will be required: --title, --type
35
- - If you do not pass any options the Conventional Commit Generator prompt will run
36
- - Branch Name detection is enabled to pre-populate Issue Tracker information in prompt
37
- `,
38
- {
39
- flags: {
40
- // Flags
41
- [FLAGS.BREAKING]: { default: false, shortFlag: "b", type: "boolean" },
42
- [FLAGS.COMMIT]: { shortFlag: "c", type: "boolean" },
43
- [FLAGS.DRYRUN]: { shortFlag: "n", type: "boolean" },
44
- [FLAGS.EMOJI]: { default: true, shortFlag: "e", type: "boolean" },
45
- [FLAGS.HELP]: { shortFlag: "h", type: "boolean" },
46
- [FLAGS.HOOK]: { shortFlag: "u", type: "boolean" },
47
- [FLAGS.LIST]: { shortFlag: "l", type: "boolean" },
48
- [FLAGS.SKIP]: { default: false, type: "boolean" },
49
- [FLAGS.VERSION]: { shortFlag: "v", type: "boolean" },
50
- // Options
51
- [OPTIONS.FORMAT]: { default: COMMIT_FORMATS.GITMOJI, type: "string" },
52
- [OPTIONS.MESSAGE]: { type: "string" },
53
- [OPTIONS.SCOPE]: { type: "string" },
54
- [OPTIONS.TITLE]: { type: "string" },
55
- [OPTIONS.TYPE]: { type: "string" },
56
- },
57
- importMeta: import.meta,
58
- },
59
- );
60
-
61
- const commands = {
62
- [COMMANDS.COMMIT]: (options: any) => commit(options),
63
- [COMMANDS.HOOK]: (options: any) => commit(options),
64
- [COMMANDS.LIST]: () => list(),
65
- };
66
-
67
- findCommand(cli, commands);
File without changes
File without changes
File without changes