From e8ff57faacd4e7d51037d5c7d59df99de08c836d Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Tue, 17 Oct 2023 09:25:15 +0200 Subject: [PATCH] Use nodenext instead of node16 --- package.json | 2 +- packages/react-async-button/package.json | 4 ++-- .../{tsconfig.node16.json => tsconfig.nodenext.json} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename packages/react-async-button/{tsconfig.node16.json => tsconfig.nodenext.json} (70%) diff --git a/package.json b/package.json index fbfeb17..4a79bbc 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "prettier": "yarn workspaces foreach --all run prettier", "test": "yarn workspaces foreach --all run test", "tsc": "yarn workspaces foreach --all run tsc", - "tsc:node16": "yarn workspaces foreach --all run tsc:node16", + "tsc:nodenext": "yarn workspaces foreach --all run tsc:nodenext", "unit": "yarn workspaces foreach --all run unit" }, "devDependencies": { diff --git a/packages/react-async-button/package.json b/packages/react-async-button/package.json index d559b92..e61838c 100644 --- a/packages/react-async-button/package.json +++ b/packages/react-async-button/package.json @@ -21,9 +21,9 @@ "lint": "eslint . --ext .js,.jsx,.ts,.tsx", "prepack": "yarn clean && yarn build", "prettier": "prettier --check . --cache", - "test": "yarn lint && yarn tsc && yarn tsc:node16 && yarn prettier && yarn unit", + "test": "yarn lint && yarn tsc && yarn tsc:nodenext && yarn prettier && yarn unit", "tsc": "tsc", - "tsc:node16": "tsc --project tsconfig.node16.json", + "tsc:nodenext": "tsc --project tsconfig.nodenext.json", "unit": "vitest", "watch": "yarn build-esm --watch & yarn build-cjs --watch & yarn build-cjs-package" }, diff --git a/packages/react-async-button/tsconfig.node16.json b/packages/react-async-button/tsconfig.nodenext.json similarity index 70% rename from packages/react-async-button/tsconfig.node16.json rename to packages/react-async-button/tsconfig.nodenext.json index bee6752..c1fdaf2 100644 --- a/packages/react-async-button/tsconfig.node16.json +++ b/packages/react-async-button/tsconfig.nodenext.json @@ -1,7 +1,7 @@ { "extends": "./tsconfig.json", "compilerOptions": { - "moduleResolution": "node16", + "moduleResolution": "nodenext", "skipLibCheck": true } } -- 2.54.0