diff --git a/package.json b/package.json index e600137..c6879b7 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "jsdelivr": "lib/browser/ISOToLanguage.js", "exports": { ".": { - "types": "./lib/cjs/esm/index.d.ts", + "types": "./lib/index.d.ts", "require": { "default": "./lib/index.cjs", "types": "./lib/index.d.cts" diff --git a/src/isoToLanguage.ts b/src/isoToLanguage.ts deleted file mode 100644 index f69edc4..0000000 --- a/src/isoToLanguage.ts +++ /dev/null @@ -1 +0,0 @@ -export * as isoToLanguage from "./index"; diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..9f932a0 --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,11 @@ +import { configDefaults, defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + include: ["**/?(*.)+(spec|test).ts"], + coverage: { + include: ["src/**/*.{ts,tsx}"], + reporter: ["text", "lcov"], + }, + }, +});