@involvex/emoji-cli 2.2.2 → 2.2.4
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.
|
@@ -85,11 +85,11 @@ const COMMANDS: Command[] = [
|
|
|
85
85
|
|
|
86
86
|
// Error handling
|
|
87
87
|
class CLIError extends Error {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
) {
|
|
88
|
+
code: number
|
|
89
|
+
|
|
90
|
+
constructor(message: string, code: number) {
|
|
92
91
|
super(message)
|
|
92
|
+
this.code = code
|
|
93
93
|
this.name = 'CLIError'
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -379,6 +379,7 @@ async function run(): Promise<void> {
|
|
|
379
379
|
if (!command) {
|
|
380
380
|
throw new CLIError(
|
|
381
381
|
`Unknown command: ${commandInput}. Use --help for available commands.`,
|
|
382
|
+
1,
|
|
382
383
|
)
|
|
383
384
|
}
|
|
384
385
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@involvex/emoji-cli",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.4",
|
|
4
4
|
"description": "Friendly emoji lookups and parsing utilities for Node.js. 💖",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"emoji",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"build:cli": "bun build --target=node bin/emoji-cli-improved.ts --outdir=dist",
|
|
54
54
|
"dev": "bun run bin/emoji-cli-improved.ts",
|
|
55
55
|
"format": "prettier . --write",
|
|
56
|
-
"lint": "eslint .
|
|
56
|
+
"lint": "eslint . -c eslint.config.ts",
|
|
57
57
|
"lint:knip": "knip",
|
|
58
58
|
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
|
|
59
59
|
"lint:package-json": "npmPkgJsonLint .",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"lint:spelling": "cspell \"**\" \".github/**/*\"",
|
|
62
62
|
"prepare": "husky install",
|
|
63
63
|
"should-semantic-release": "should-semantic-release --verbose",
|
|
64
|
-
"start": "node dist/emoji-cli.js",
|
|
64
|
+
"start": "node dist/emoji-cli-improved.js",
|
|
65
65
|
"test": "vitest",
|
|
66
66
|
"test:cjs": "node ./src/e2e.cjs",
|
|
67
67
|
"tsc": "tsc"
|