From 886062dc2229102c30753d1c1f4835671cfb92cb Mon Sep 17 00:00:00 2001 From: Kipras Melnikovas Date: Sat, 2 Apr 2022 16:24:26 +0300 Subject: [PATCH] chore: run "test" script in "build" script Signed-off-by: Kipras Melnikovas --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d25ab2d3..06c6e78a 100644 --- a/package.json +++ b/package.json @@ -9,10 +9,11 @@ "git-stacked-rebase": "./dist/git-stacked-rebase.js" }, "scripts": { - "prebuild": "node ./script/prebuild.js", + "prebuild:lean": "node ./script/prebuild.js", "test": "ts-node-dev ./test/run.ts", - "build": "yarn tsc -b", - "postbuild": "node ./script/postbuild.js", + "build": "yarn test && yarn build:lean", + "build:lean": "yarn tsc -b", + "postbuild:lean": "node ./script/postbuild.js", "prepack": "yarn build" }, "devDependencies": {