From 7d8d6ef800595e5f09ded26cf05205713c3d98bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Fri, 9 Jun 2023 05:05:26 +0800 Subject: [PATCH] refactor!: drop node 14 --- LICENSE | 2 +- README.md | 2 +- package.json | 2 +- tsconfig.json | 4 ++-- tsup.config.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/LICENSE b/LICENSE index 8e4b50c..e3df341 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright © 2022 三咲智子 (https://github.com/sxzz) +Copyright © 2022-PRESENT 三咲智子 (https://github.com/sxzz) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index daf0afe..bc930cf 100644 --- a/README.md +++ b/README.md @@ -146,4 +146,4 @@ export const RemoveWrapperFunction = ( ## License -[MIT](./LICENSE) License © 2022 [三咲智子](https://github.com/sxzz) +[MIT](./LICENSE) License © 2022-PRESENT [三咲智子](https://github.com/sxzz) diff --git a/package.json b/package.json index 99941a4..6017350 100644 --- a/package.json +++ b/package.json @@ -106,6 +106,6 @@ "vitest": "^0.32.0" }, "engines": { - "node": ">=14.19.0" + "node": ">=16.14.0" } } diff --git a/tsconfig.json b/tsconfig.json index 90f34b3..dfe3da5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { - "target": "es2021", + "target": "es2022", "module": "esnext", - "lib": ["es2021"], + "lib": ["es2022"], "strict": true, "esModuleInterop": true, "moduleResolution": "bundler", diff --git a/tsup.config.ts b/tsup.config.ts index 18afd11..c89284b 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -3,7 +3,7 @@ import { defineConfig } from 'tsup' export default defineConfig({ entry: ['./src/*.ts'], format: ['cjs', 'esm'], - target: 'node14', + target: 'node16.14', splitting: true, clean: true, dts: true,