From c3991a29874fedb007744479a1b7e68af450d524 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Wed, 27 Jul 2022 13:20:33 +1000 Subject: [PATCH] fix: fix tsc incremental build feature dist folder is deleted automatically but not tsbuildinfo file so nothing is built as it is assumed already built by tsc. --- .gitignore | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 643d204d8c..96d4f47e9b 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,5 @@ node_modules src/**.js coverage *.log +/tsconfig.tsbuildinfo +/tsconfig.dev.tsbuildinfo diff --git a/package.json b/package.json index c14865068a..d0b4e445f7 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ ], "scripts": { "prepare": "husky install", - "build": "rimraf ./dist; run-s build:**", + "build": "run-s build:**", "build:esm": "tsc && node build-scripts/fix-imports.js", "build:bundle": "rollup --config rollup.config.js -- dist/index.js", "build:bundle:min": "terser --ecma 11 --compress --mangle -o dist/bundle.min.js -- dist/bundle.js && gzip -9 -c dist/bundle.min.js > dist/bundle.min.js.gz",