From 70218e326eec3a384ad4a80fef9d041cef06a334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marin=20Petruni=C4=87?= Date: Thu, 3 Oct 2019 14:01:43 +0200 Subject: [PATCH] andable build chaching --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 34be5a4..fa476fe 100644 --- a/package.json +++ b/package.json @@ -17,10 +17,11 @@ "bls" ], "scripts": { - "prebuild": "rm -rf lib && rm -rf dist", - "build": "yarn build-lib && yarn build-web && yarn build-types", + "clean": "rm -rf lib && rm -rf dist && rm -f tsconfig.tsbuildinfo", + "build": "yarn build-lib && yarn build-types", + "build:release": "yarn clean && yarn build && yarn build-web", "build-lib": "babel src -x .ts -d lib", - "build-types": "tsc --declaration --outDir lib --emitDeclarationOnly", + "build-types": "tsc --declaration --incremental --outDir lib --emitDeclarationOnly", "build-web": "webpack --mode production --entry ./lib/web.js --output ./dist/bls.min.js", "check-types": "tsc --noEmit", "lint": "eslint --ext .ts src/",