hippofish/packages/backend/package.json

15 lines
553 B
JSON

{
"name": "backend",
"private": true,
"type": "module",
"scripts": {
"start": "cargo run --profile $( [ ${NODE_ENV:=dev} = 'production' ] && echo 'release' || echo $NODE_ENV )",
"start:test": "NODE_ENV=test pnpm node ./built/index.js",
"check": "cargo check",
"migrate": "cargo run --bin migrate",
"build": "cargo build --profile $( [ ${NODE_ENV:=dev} = 'production' ] && echo 'release' || echo $NODE_ENV )",
"revertmigration": "typeorm migration:revert -d ormconfig.js",
"lint": "cargo check",
"test": "cargo test --workspace"
}
}