feat: include source maps in build

This commit is contained in:
Naomi Carrigan 2025-02-10 20:41:00 -08:00
parent a72ceaccd1
commit bd1593d87d
Signed by: naomi
SSH Key Fingerprint: SHA256:rca1iUI2OhAM6n4FIUaFcZcicmri0jgocqKiTTAfrt8
2 changed files with 5 additions and 3 deletions

View File

@ -3,10 +3,10 @@
"version": "0.0.0", "version": "0.0.0",
"description": "Our custom logging package, which pipes logs to our alerts server.", "description": "Our custom logging package, which pipes logs to our alerts server.",
"type": "module", "type": "module",
"main": "index.js", "main": "prod/index.js",
"scripts": { "scripts": {
"lint": "eslint src --max-warnings 0", "lint": "eslint src --max-warnings 0",
"build": "tsc", "build": "rm -rf prod && tsc",
"test": "echo \"Error: no test specified\" && exit 0" "test": "echo \"Error: no test specified\" && exit 0"
}, },
"repository": { "repository": {

View File

@ -2,7 +2,9 @@
"extends": "@nhcarrigan/typescript-config", "extends": "@nhcarrigan/typescript-config",
"compilerOptions": { "compilerOptions": {
"rootDir": "./src", "rootDir": "./src",
"outDir": "./prod" "outDir": "./prod",
"sourceMap": true,
"declaration": true
}, },
"exclude": ["test/**/*.ts", "vitest.config.ts"] "exclude": ["test/**/*.ts", "vitest.config.ts"]
} }