Skip to content

Commit

Permalink
Improve CLI to replace po2mo.json (#40)
Browse files Browse the repository at this point in the history
* chore: move cli to bin for bunchee convention

* refactor: enhance cli
  • Loading branch information
devjiwonchoi authored Jan 19, 2024
1 parent 4137f01 commit cbb3f68
Show file tree
Hide file tree
Showing 7 changed files with 742 additions and 514 deletions.
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,33 @@
"version": "1.4.0",
"description": "po to mo, it's simple.",
"main": "./dist/index.js",
"bin": {
"po2mo": "./dist/cli.js"
},
"files": [
"dist"
],
"bin": "./dist/bin/cli.js",
"types": "./dist/index.d.ts",
"scripts": {
"build:exec": "pkg . --out-path exec --targets node18-linux-x64,node18-macos-x64,node18-win-x64 --overwrite",
"build:src": "bunchee ./src/index.ts -f cjs -o ./dist/index.js && bunchee ./src/cli.ts -f cjs -o ./dist/cli.js",
"build:src": "bunchee",
"build": "pnpm run build:src && pnpm run build:exec",
"clean": "rm -rf dist",
"test": "jest"
},
"dependencies": {
"gettext-parser": "^7.0.1"
"arg": "^5.0.2",
"gettext-parser": "^7.0.1",
"picocolors": "^1.0.0"
},
"devDependencies": {
"@types/gettext-parser": "^4.0.2",
"@types/jest": "^29.5.5",
"@types/node": "^20.7.0",
"bunchee": "^4.0.0",
"@types/gettext-parser": "^4.0.4",
"@types/jest": "^29.5.11",
"@types/node": "^20.11.5",
"bunchee": "^4.4.1",
"jest": "^29.7.0",
"pkg": "^5.8.1",
"ts-jest": "^29.1.1",
"typescript": "^5.2.2"
"typescript": "^5.3.3"
},
"files": [
"dist"
],
"jest": {
"testEnvironment": "node",
"preset": "ts-jest"
Expand Down
Loading

0 comments on commit cbb3f68

Please sign in to comment.