From 9beb1f92184ce99ed27e6c18f2057bd63309139a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Verit=C3=A9=20Mugabo?= Date: Fri, 24 May 2024 04:11:00 -0400 Subject: [PATCH] chore(deps): correctly resolve peer dependancies (#457) --- .eslintrc.json | 11 ----------- package.json | 3 ++- tsconfig.json | 12 ++++-------- unbuild.config.ts | 3 ++- 4 files changed, 8 insertions(+), 21 deletions(-) delete mode 100644 .eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 8ab6533..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "extends": [ "@veritem" ], - "rules": { - "indent": [ 0, "tab" ], - "no-case-declarations": 0, - "no-tabs": "off", - "no-mixed-spaces-and-tabs": "off", - "vitest/unbound-method": "off" - } -} - diff --git a/package.json b/package.json index 08f8eba..314a571 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,8 @@ }, "peerDependencies": { "eslint": ">= 8.57.0", - "vitest": "*" + "vitest": "*", + "typescript": ">= 5.0.0" }, "peerDependenciesMeta": { "vitest": { diff --git a/tsconfig.json b/tsconfig.json index 0f87a04..7266f22 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,20 +1,16 @@ { "compilerOptions": { - "target": "es2020", + "target": "es5", "lib": ["esnext"], "module": "esnext", "moduleResolution": "Bundler", - "resolveJsonModule": true, "types": [ "vitest/globals" ], "strict": true, - "strictNullChecks": true, - "esModuleInterop": true, - "skipDefaultLibCheck": true, - "skipLibCheck": true - }, + "sourceMap": true + }, "include": [ - "src" + "src/**/*.ts" ] } diff --git a/unbuild.config.ts b/unbuild.config.ts index 08b1331..316e536 100644 --- a/unbuild.config.ts +++ b/unbuild.config.ts @@ -9,5 +9,6 @@ export default defineBuildConfig({ esbuild: { minify: true } - } + }, + peerDependencies: ["typescript"] })