diff --git a/package.json b/package.json index f1e5f44..c93100f 100644 --- a/package.json +++ b/package.json @@ -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": [], diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..6e92df2 --- /dev/null +++ b/tsconfig.build.json @@ -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/*"] +}