From 79a4fede91195e18a85db0eacd106784e7e5d7b1 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Mon, 10 Feb 2025 20:48:52 -0800 Subject: [PATCH] feat: include types in build (#3) ### Explanation _No response_ ### Issue _No response_ ### Attestations - [x] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/) - [x] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/). - [x] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/). ### Dependencies - [ ] I have pinned the dependencies to a specific patch version. ### Style - [x] I have run the linter and resolved any errors. - [x] My pull request uses an appropriate title, matching the conventional commit standards. - [x] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request. ### Tests - [ ] My contribution adds new code, and I have added tests to cover it. - [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes. - [ ] All new and existing tests pass locally with my changes. - [ ] Code coverage remains at or above the configured threshold. ### Documentation _No response_ ### Versioning Minor - My pull request introduces a new non-breaking feature. Reviewed-on: https://git.nhcarrigan.com/nhcarrigan/eslint-config/pulls/3 Co-authored-by: Naomi Carrigan Co-committed-by: Naomi Carrigan --- 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"] }