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.
This commit is contained in:
Franck Royer 2022-07-27 13:20:33 +10:00 committed by fryorcraken.eth
parent cc73ac0908
commit c3991a2987
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored
View File

@ -7,3 +7,5 @@ node_modules
src/**.js
coverage
*.log
/tsconfig.tsbuildinfo
/tsconfig.dev.tsbuildinfo

View File

@ -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",