diff --git a/bun.lockb b/bun.lockb index d13b90c..e1af94e 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 1378002..52f382c 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@typescript-eslint/eslint-plugin": "^7.2.0", "@typescript-eslint/parser": "^7.2.0", "@vitest/coverage-v8": "^1.4.0", + "copyfiles": "^2.4.1", "del-cli": "^5.1.0", "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", @@ -41,7 +42,10 @@ }, "scripts": { "update-deps": "bunx npm-check-updates --root --format group -i", + "copy-package": "copyfiles package.json ./dist/", + "copy-readme": "copyfiles README.md ./dist/", "build": "del-cli ./dist && tsc --project tsconfig.prod.json", + "postbuild": "bun run copy-package && bun run copy-readme", "lint": "eslint ./src", "type-check": "tsc --noEmit", "test": "vitest", diff --git a/vite.config.mts b/vite.config.mts index e02b9ba..9eb9f13 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -3,7 +3,7 @@ import { defineConfig } from 'vitest/config'; export default defineConfig({ test: { coverage: { - reporter: ['text', 'json', 'html', 'lcov'], + reporter: ['text', 'json', 'html', 'lcov', 'json-summary'], all: true, include: ['src/**/*.ts'], exclude: [