From bd1593d87d1cdfb05e49a66eafb5bad10d144849 Mon Sep 17 00:00:00 2001 From: Naomi Carrigan Date: Mon, 10 Feb 2025 20:41:00 -0800 Subject: [PATCH] feat: include source maps in build --- package.json | 4 ++-- tsconfig.json | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f70d9eb..e77bcc7 100644 --- a/package.json +++ b/package.json @@ -3,10 +3,10 @@ "version": "0.0.0", "description": "Our custom logging package, which pipes logs to our alerts server.", "type": "module", - "main": "index.js", + "main": "prod/index.js", "scripts": { "lint": "eslint src --max-warnings 0", - "build": "tsc", + "build": "rm -rf prod && tsc", "test": "echo \"Error: no test specified\" && exit 0" }, "repository": { diff --git a/tsconfig.json b/tsconfig.json index 9950c12..ccd7f4d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,9 @@ "extends": "@nhcarrigan/typescript-config", "compilerOptions": { "rootDir": "./src", - "outDir": "./prod" + "outDir": "./prod", + "sourceMap": true, + "declaration": true }, "exclude": ["test/**/*.ts", "vitest.config.ts"] } \ No newline at end of file