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