diff --git a/package.json b/package.json index f391be8..6d42d9b 100644 --- a/package.json +++ b/package.json @@ -3,15 +3,13 @@ "version": "1.0.1", "description": "", "license": "MIT", - "private": true, "type": "module", "scripts": { "dev": "tsup --watch --onSuccess \"node ./dist/bin/pnpm-license-exporter.cjs\"", "build": "tsup", "prettier": "prettier --write --check src", "eslint": "eslint -c .eslintrc.cjs --max-warnings=0 --fix --ext .ts src", - "test": "vitest run --config vitest.config.js src", - "license": "node ./scripts/license.js", + "test": "vitest run --config vitest.config.ts src", "release": "np" }, "files": [ diff --git a/vitest.config.js b/vitest.config.js deleted file mode 100644 index 3a9039a..0000000 --- a/vitest.config.js +++ /dev/null @@ -1,16 +0,0 @@ -/** @type import('vitest/config').UserConfigExport */ -module.exports = { - test: { - globals: true, - coverage: { - enabled: true, - provider: 'v8', - statements: 85, - branches: 85, - functions: 85, - lines: 85, - thresholdAutoUpdate: true, - }, - clearMocks: true, - }, -}; diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..d4a97d4 --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,19 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + globals: true, + coverage: { + enabled: true, + provider: 'v8', + thresholds: { + statements: 83.99, + branches: 38.88, + functions: 25, + lines: 83.99, + autoUpdate: true, + }, + }, + clearMocks: true, + }, +}); \ No newline at end of file