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 },