diff --git a/package.json b/package.json index 5cb0054..9a95816 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "type": "module", "scripts": { "prepublish": "pnpm format && pnpm test", - "build": "tsc", + "build": "rm -rf prod && tsc", "format": "pnpm build && eslint src test --max-warnings 0 --fix", "lint": "pnpm build && eslint src test --max-warnings 0", "test": "vitest run", diff --git a/tsconfig.json b/tsconfig.json index c89814b..8d1f678 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,7 +17,9 @@ "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "rootDir": "src", - "outDir": "prod" + "outDir": "prod", + "sourceMap": true, + "declaration": true, }, "exclude": ["./test", "vitest.config.ts"] }