added tsconfig.build
This commit is contained in:
@@ -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
12
tsconfig.build.json
Normal 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/*"]
|
||||
}
|
||||
Reference in New Issue
Block a user