fix: build instructions

Massimo Melina committed Jan 2, 2022 at 00:35 UTC 9b284e7140f16e76c98d89c83fbbb9c95453f4e6
2 files changed +4 -3
README.md
+2 -1
@@ -76,7 +76,8 @@ As soon as the file is read HFS will encrypt passwords in a non-reversible way.
76 # Building instructions
77
78 0. Install [Node.js](https://nodejs.org/) 16+
79 -1. Launch `npm run build-all` in the root
79 +1. Launch `npm -g i typescript`
80 +3. Launch `npm run build-all` in the root
81
82 You'll find the output in `dist` folder.
83
package.json
+2 -2
@@ -13,8 +13,8 @@
13 "watch-server": "nodemon --ignore tests/ --watch src -e ts,tsx --exec ts-node src/index.ts",
14 "start-frontend": "cd frontend && npm run start",
15 "start": "node dist",
16 - "build": "node timestamp && tsc && cp package*.json *.yaml dist && cd dist && npm ci --production",
17 - "build-all": "npm run build && cd frontend && npm run build && cd ..",
16 + "build": "npm install && node timestamp && tsc && cp package*.json *.yaml dist && cd dist && npm ci --production",
17 + "build-all": "npm run build && cd frontend && npm install && npm run build && cd ..",
18 "test": "mocha -r ts-node/register 'tests/**/*.ts'",
19 "make-exe-after-build": "pkg . -C brotli"
20 },