mirror of
https://github.com/xxnuo/MTranServer.git
synced 2026-05-31 10:59:35 +08:00
Update Dockerfile Squashed commit of the following: Author: xxnuo <54252779+xxnuo@users.noreply.github.com> fix: Building Docker images using Node.js Author: xxnuo <54252779+xxnuo@users.noreply.github.com> feat: node docker version Author: xxnuo <54252779+xxnuo@users.noreply.github.com> fix: warn language detection failed
56 lines
1.7 KiB
JSON
56 lines
1.7 KiB
JSON
{
|
|
"name": "mtranserver",
|
|
"version": "4.0.13",
|
|
"type": "module",
|
|
"description": "Translation server",
|
|
"bin": {
|
|
"mtranserver": "./dist/main.js"
|
|
},
|
|
"files": [
|
|
"mtranserver",
|
|
"assets"
|
|
],
|
|
"scripts": {
|
|
"dev": "bun src/main.ts --log-level debug",
|
|
"build": "rm -rf dist && bun build src/main.ts --compile --outfile ./dist/mtranserver --minify --sourcemap",
|
|
"build:all": "bun scripts/build.ts",
|
|
"build:docker": "bun scripts/build.ts --docker",
|
|
"build:node": "bun run gen && rm -rf dist && bun build src/main.ts --outdir dist --target node --format esm --sourcemap --external zstd-wasm-decoder --external express",
|
|
"build:dev": "bun run gen && rm -rf dist && bun build src/main.ts --outdir dist --target node --format esm --sourcemap --external zstd-wasm-decoder --external express",
|
|
"start": "node dist/main.js",
|
|
"test": "bun test",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "echo 'No linter configured'",
|
|
"gen": "tsoa spec-and-routes",
|
|
"bump": "bun scripts/bump.ts"
|
|
},
|
|
"keywords": [
|
|
"translation",
|
|
"bergamot",
|
|
"wasm",
|
|
"machine-translation",
|
|
"translation-server"
|
|
],
|
|
"author": "xxnuo",
|
|
"license": "Apache-2.0",
|
|
"devDependencies": {
|
|
"@tsoa/runtime": "^7.0.0-alpha.0",
|
|
"@types/bun": "^1.3.5",
|
|
"@types/express": "^5.0.0",
|
|
"@types/node": "^22.10.5",
|
|
"@types/swagger-ui-express": "^4.1.8",
|
|
"tsoa": "^7.0.0-alpha.0",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "^5.7.2"
|
|
},
|
|
"dependencies": {
|
|
"express": "^4.21.2",
|
|
"express-validator": "^7.3.1",
|
|
"fzstd": "^0.1.1",
|
|
"lru-cache": "^11.2.4",
|
|
"swagger-ui-express": "^5.0.1"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
}
|
|
} |