|
10 | 10 | "start": "node core", |
11 | 11 | "dev": "yarn nodemon core.js -D", |
12 | 12 | "pnpify": "yarn dlx @yarnpkg/pnpify", |
| 13 | + "build:": "esbuild --bundle --minify --platform=node --outfile=dist/server.js core.js", |
13 | 14 | "lint": "eslint ./src/**/*.js ./adapter/**/*.js ./test/**/*.js core.js", |
14 | 15 | "watch": "yarn dlx supervisor --watch \".\" --extensions \"js,json\" --exec \"yarn\" -- \"start\"", |
15 | 16 | "test": "jest --verbose", |
16 | 17 | "commit": "yarn dlx git-cz", |
17 | 18 | "release": "yarn dlx release-it", |
18 | 19 | "changelog": "yarn dlx -p conventional-changelog-cli conventional-changelog -p conventionalcommits -i CHANGELOG.md -s -r 0 -n .changelog.config.js", |
19 | 20 | "prepare": "husky install", |
20 | | - "postinstall": "sh -c 'if [ command -v ./node_modules/.bin/husky ]; then ./node_modules/.bin/husky install; fi;'" |
| 21 | + "postinstall": "husky install" |
21 | 22 | }, |
22 | 23 | "repository": "https://github.com/hitokoto-osc/hitokoto-api", |
23 | 24 | "author": "a632079 <a632079@qq.com>", |
|
44 | 45 | "commitizen": "4.3.0", |
45 | 46 | "conventional-changelog-conventionalcommits": "7.0.2", |
46 | 47 | "cz-conventional-changelog": "3.3.0", |
| 48 | + "esbuild": "^0.19.5", |
47 | 49 | "eslint": "8.53.0", |
48 | 50 | "eslint-config-prettier": "9.0.0", |
49 | 51 | "eslint-config-standard": "17.1.0", |
|
63 | 65 | "regenerator-runtime": "0.13.11", |
64 | 66 | "release-it": "16.1.0", |
65 | 67 | "supertest": "6.3.3", |
66 | | - "supervisor": "0.12.0" |
| 68 | + "supervisor": "0.12.0", |
| 69 | + "webpack": "^5.89.0" |
67 | 70 | }, |
68 | 71 | "dependencies": { |
69 | 72 | "@hitokoto/koa-jsonp": "3.0.7", |
|
0 commit comments