added tsconfig.build

This commit is contained in:
Ben
2025-08-22 15:40:58 +02:00
parent 4c53625357
commit 6b5f170aa9
2 changed files with 14 additions and 2 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "hyperf-keybinds",
"version": "0.1.4",
"version": "0.1.5",
"description": "",
"main": "dist/index.js",
"scripts": {
"test": "vitest",
"build": "tsc",
"build": "tsc -p tsconfig.build.json",
"prepublishOnly": "npm run build"
},
"keywords": [],

12
tsconfig.build.json Normal file
View File

@@ -0,0 +1,12 @@
// tsconfig.build.json
{
"extends": "./tsconfig.json",
"compilerOptions": {
"types": ["node"], // ✅ no vitest here
"declaration": true,
"declarationDir": "dist",
"emitDeclarationOnly": false,
"sourceMap": true
},
"exclude": ["src/test/*"]
}