web: build API during npm build

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-06-09 15:35:35 +02:00
parent 57f8b108c4
commit a6c214e8fa
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@
"license": "GNU GPLv3", "license": "GNU GPLv3",
"scripts": { "scripts": {
"extract": "lingui extract", "extract": "lingui extract",
"build": "lingui compile && rollup -c ./rollup.config.js", "build": "cd api && npx tsc && cd .. && lingui compile && rollup -c",
"watch": "lingui compile && rollup -c -w", "watch": "lingui compile && rollup -c -w",
"lint": "eslint . --max-warnings 0", "lint": "eslint . --max-warnings 0",
"lit-analyse": "lit-analyzer src" "lit-analyse": "lit-analyzer src"