From e76d3f56c9ba27cf51b62d3a3f2c743e49bd98fd Mon Sep 17 00:00:00 2001 From: Fabian Mangold Date: Fri, 13 Oct 2023 22:13:12 +0200 Subject: [PATCH] feat(ignore): Enable incremental TSC builds --- .gitignore | 3 +++ .npmignore | 1 + package.json | 4 +++- tsconfig.json | 3 ++- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 2ce286a936..6b1bd6025e 100644 --- a/.gitignore +++ b/.gitignore @@ -48,6 +48,9 @@ typings/ # Optional eslint cache .eslintcache +# Build cache +tsconfig.tsbuildinfo + # Optional REPL history .node_repl_history diff --git a/.npmignore b/.npmignore index 1b4d40b546..aaaeaa6996 100644 --- a/.npmignore +++ b/.npmignore @@ -8,6 +8,7 @@ coverage .codeclimate.yml .github babel.config.js +tsconfig.tsbuildinfo #linters .jscsrc diff --git a/package.json b/package.json index d3609337d0..bbbc05c206 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,9 @@ "start": "node index.js", "test-with-coverage": "jest test --coverage", "test": "jest test", - "test-watch": "jest test --watch" + "test-watch": "jest test --watch", + "clean": "rimraf coverage dist tsconfig.tsbuildinfo", + "prepack": "npm run clean && npm run build" }, "author": "Koen Kanters", "license": "GPL-3.0", diff --git a/tsconfig.json b/tsconfig.json index 5b00b2a583..92c17644c0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,7 +15,8 @@ "rootDir": "lib", "inlineSourceMap": true, "resolveJsonModule": true, - "experimentalDecorators": true + "experimentalDecorators": true, + "incremental": true }, "include": [ "lib/**/*",