From 30a611257f643f5a44be52675631b6e2e25f9026 Mon Sep 17 00:00:00 2001 From: Victor Soares Date: Sun, 4 Sep 2022 22:14:09 -0300 Subject: [PATCH] :adhesive_bandage: fix(build): run type-check script before build --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 81fc9fa..2d330e0 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "prod:migration:revert": "cross-env NODE_ENV=production typeorm-ts-node-commonjs migration:revert -d src/database/index.ts", "typeorm": "typeorm-ts-node-commonjs", "migration:generate": "cross-env NODE_ENV=development typeorm-ts-node-commonjs migration:generate -d src/database/index.ts", + "prebuild": "yarn type-check", "build": "babel src --extensions \".js,.ts\" --out-dir dist --copy-files", "postbuild": "npm set-script prepare '' && cp -R src/views dist/ && cp package*json dist/ && cp -R src/assets dist/ && npm set-script prepare 'husky install'", "test": "cross-env NODE_ENV=test mocha",