added tsconfig.build
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "hyperf-keybinds",
|
"name": "hyperf-keybinds",
|
||||||
"version": "0.1.4",
|
"version": "0.1.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
|
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "vitest",
|
"test": "vitest",
|
||||||
"build": "tsc",
|
"build": "tsc -p tsconfig.build.json",
|
||||||
"prepublishOnly": "npm run build"
|
"prepublishOnly": "npm run build"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"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