From d2dc3754d2cc8d0750f48c9f7203c96d56b9637e Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Mon, 10 Feb 2025 20:46:45 -0800 Subject: [PATCH] feat: include types in build --- package.json | 2 +- tsconfig.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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"] }