build(http): compile to dist with declarations and inline sourcemaps

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-12 22:44:03 +00:00
parent 4741a6f267
commit 178d71178c
2 changed files with 18 additions and 4 deletions
+10 -2
View File
@@ -3,10 +3,18 @@
"version": "0.1.0",
"description": "HTTP/1.1 server over Tailscale WASM networking",
"type": "module",
"main": "src/index.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"scripts": {
"build": "tsc --project tsconfig.json",
"test": "tsx --test 'src/**/*.test.ts'",
"typecheck": "tsc --project tsconfig.json"
"typecheck": "tsc --project tsconfig.json --noEmit"
},
"devDependencies": {
"@types/node": "^25.6.0",
+8 -2
View File
@@ -8,7 +8,13 @@
"skipLibCheck": true,
"lib": ["ES2022"],
"types": ["node"],
"noEmit": true
"outDir": "dist",
"rootDir": "src",
"declaration": true,
"declarationMap": true,
"inlineSourceMap": true,
"inlineSources": true
},
"include": ["src/**/*"]
"include": ["src/**/*"],
"exclude": ["src/**/*.test.ts"]
}