@involvex/emoji-cli 2.2.2 → 2.2.3

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.
@@ -87,7 +87,7 @@ const COMMANDS: Command[] = [
87
87
  class CLIError extends Error {
88
88
  constructor(
89
89
  message: string,
90
- public code: number = 1,
90
+ public code: number,
91
91
  ) {
92
92
  super(message)
93
93
  this.name = 'CLIError'
@@ -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.2",
3
+ "version": "2.2.3",
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 . .*js --max-warnings 0 -c eslint.config.ts",
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"