From 195fe6a8d6b4ddab81bee78ac22fd12ecfc7211b Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Fri, 5 Jan 2024 10:39:36 +0100 Subject: [PATCH] Use recommended TypeScript config --- packages/react-pdf/package.json | 2 +- packages/react-pdf/tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-pdf/package.json b/packages/react-pdf/package.json index bc7ba95f1..5f3593028 100644 --- a/packages/react-pdf/package.json +++ b/packages/react-pdf/package.json @@ -32,7 +32,7 @@ "build": "yarn build-js && yarn copy-styles", "build-js": "yarn build-js-esm && yarn build-js-cjs && yarn build-js-cjs-package", "build-js-esm": "tsc --project tsconfig.build.json --outDir dist/esm", - "build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --verbatimModuleSyntax false", + "build-js-cjs": "tsc --project tsconfig.build.json --outDir dist/cjs --module commonjs --moduleResolution node --verbatimModuleSyntax false", "build-js-cjs-package": "echo '{\n \"type\": \"commonjs\"\n}' > dist/cjs/package.json", "clean": "rimraf dist", "copy-styles": "cpy 'src/**/*.css' dist/esm && cpy 'src/**/*.css' dist/cjs", diff --git a/packages/react-pdf/tsconfig.json b/packages/react-pdf/tsconfig.json index ab0af37c9..6cb6d1e10 100644 --- a/packages/react-pdf/tsconfig.json +++ b/packages/react-pdf/tsconfig.json @@ -4,8 +4,8 @@ "esModuleInterop": true, "isolatedModules": true, "jsx": "react", - "module": "esnext", - "moduleResolution": "node", + "module": "nodenext", + "moduleResolution": "nodenext", "noEmit": true, "noUncheckedIndexedAccess": true, "outDir": "dist",