diff --git a/package.json b/package.json index f6292a6..4c49007 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,8 @@ "version": "1.0.0", "description": "", "scripts": { - "build": "tsc -p tsconfig.json", + "clean": "rimraf dist", + "build": "npm run clean && tsc", "start": "node dist/index.js", "dev": "tsx watch src/index.ts" }, diff --git a/tsconfig.json b/tsconfig.json index f99fa03..8d6b9d0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,19 +1,19 @@ { - "$schema": "https://json.schemastore.org/tsconfig", "compilerOptions": { "target": "ES2022", "module": "ES2022", - "moduleResolution": "Node", - "strict": true, - "esModuleInterop": true, - "forceConsistentCasingInFileNames": true, - "skipLibCheck": true, - "isolatedModules": true, - "resolveJsonModule": true, + "lib": ["ES2022"], + "types": ["node"], + "declaration": true, + "declarationMap": true, "outDir": "./dist", "rootDir": "./src", - "types": ["node"], - "incremental": true + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "node", + "resolveJsonModule": true }, "include": ["src/**/*"], "exclude": ["node_modules", "dist"]