Skip to content

Commit

Permalink
fix: cli version view and fucking packages
Browse files Browse the repository at this point in the history
  • Loading branch information
BIYUEHU committed Feb 21, 2024
1 parent 4a144fa commit cbaf26d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
"devDependencies": {
"@manypkg/get-packages": "^2.2.0",
"@types/inquirer": "^9.0.7",
"@types/js-beautify": "^1.14.3",
"@types/node": "^20.8.7",
"conventional-changelog-cli": "^4.1.0",
"eslint": "^8.47.0",
Expand Down
5 changes: 2 additions & 3 deletions packages/kotori/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@
"dependencies": {
"@kotori-bot/core": "workspace:^",
"@kotori-bot/loader": "workspace:^",
"cac": "^6.7.14",
"commander": "^12.0.0"
"cac": "^6.7.14"
},
"devDependencies": {
"ts-node": "^10.9.2",
"typescript": "^5.1.3"
}
}
}
4 changes: 2 additions & 2 deletions packages/kotori/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { resolve } from 'path';

const program = cac();

const pkg = JSON.parse(readFileSync(`${__dirname}/../package.json`).toString());
program.version(pkg.verion, '-v, --version');
const { version } = JSON.parse(readFileSync(`${__dirname}/../package.json`).toString());
program.version(version, '-v, --version');
program.help();

program
Expand Down

0 comments on commit cbaf26d

Please sign in to comment.