From 4fa98eae1f571f1de84cd84605d1a0235fff7044 Mon Sep 17 00:00:00 2001 From: Hezekiah Hendry Date: Sat, 6 Apr 2024 13:51:42 -0400 Subject: [PATCH] feat!: update Node to v20 --- package.json | 2 +- tsconfig.base.json | 5 ++++- tsup.config.ts | 2 +- vitest.config.ts | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index b52e674..6b0af64 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "!dist/*.tsbuildinfo" ], "engines": { - "node": ">=16", + "node": ">=20", "npm": ">=6" }, "keywords": [], diff --git a/tsconfig.base.json b/tsconfig.base.json index a14c24d..858eeeb 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1,3 +1,6 @@ { - "extends": ["@sapphire/ts-config", "@sapphire/ts-config/extra-strict", "@sapphire/ts-config/bundler", "@sapphire/ts-config/verbatim"] + "extends": ["@sapphire/ts-config", "@sapphire/ts-config/extra-strict", "@sapphire/ts-config/bundler", "@sapphire/ts-config/verbatim"], + "compilerOptions": { + "target": "ES2022" + } } diff --git a/tsup.config.ts b/tsup.config.ts index 4f780df..68c43c8 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -10,7 +10,7 @@ export default defineConfig({ minify: false, skipNodeModulesBundle: true, sourcemap: true, - target: 'es2021', + target: 'es2022', tsconfig: relative(__dirname, resolve(process.cwd(), 'src', 'tsconfig.json')), keepNames: true, treeshake: true diff --git a/vitest.config.ts b/vitest.config.ts index 1a8676c..bbcb4e1 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -6,10 +6,10 @@ export default defineConfig({ coverage: { enabled: true, reporter: ['text', 'lcov', 'clover'], - exclude: ['**/node_modules/**', '**/dist/**', '**/tests/**'] + exclude: ['**/node_modules/**', '**/dist/**', '**/tests/**', '**/.yarn/**'] } }, esbuild: { - target: 'es2021' + target: 'es2022' } });