From 3c9b872752633f6906346e25f8017d11107969a2 Mon Sep 17 00:00:00 2001 From: chimurai <655241+chimurai@users.noreply.github.com> Date: Sun, 15 May 2022 12:13:39 +0200 Subject: [PATCH] build(typescript): enable incremental build (#247) --- package.json | 4 ++-- tsconfig.json | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e4114f5..4959828 100644 --- a/package.json +++ b/package.json @@ -31,8 +31,8 @@ "requirements": "./bin/requirements.js" }, "scripts": { - "clean": "rm -rf dist && rm -rf coverage", - "build": "tsc", + "clean": "rm -rf dist coverage tsconfig.tsbuildinfo", + "build": "tsc --build", "lint": "prettier --check \"**/*.{js,ts,md}\" || echo '🔧 Run: \"npm run lint:fix\" to fix issues'", "lint:fix": "prettier --write \"**/*.{js,ts,md}\"", "test": "NODE_OPTIONS=--experimental-vm-modules jest", diff --git a/tsconfig.json b/tsconfig.json index 7061ce5..64afa4c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,12 @@ { "compilerOptions": { + "rootDir": "./src", "outDir": "./dist", "lib": ["ES2020"], "module": "ES2020", "moduleResolution": "node", "target": "ES2020", + "incremental": true, "declaration": true, "allowSyntheticDefaultImports": true },