From a0fff36f0820ebe5f30cde7e3bb89720fabc3b6d Mon Sep 17 00:00:00 2001 From: Ian VanSchooten Date: Tue, 26 Sep 2023 14:32:46 -0400 Subject: [PATCH] Change tsconfig "module" to "NodeNext" This allows resolving package.json "exports" fields, which is needed for the new prettier types, for instance. --- package.json | 2 +- tsconfig.json | 3 +-- yarn.lock | 12 +++++++----- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 6924fb1..d480841 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "@types/babel__generator": "^7.6.5", "@types/babel__traverse": "^7.20.2", "@types/node": "^18.15.13", - "@types/prettier": "^2.7.3", + "@types/prettier": "^3.0.0", "@types/semver": "^7.5.3", "@vue/compiler-sfc": "3.3.4", "prettier": "^3.0.3", diff --git a/tsconfig.json b/tsconfig.json index 8ec1c7b..d35129d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,12 +4,11 @@ "display": "Node 16", "compilerOptions": { "target": "es2021", - "module": "commonjs", + "module": "NodeNext", "allowJs": true, "outDir": "./lib", "rootDir": "./", "strict": true, - "moduleResolution": "node", "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true diff --git a/yarn.lock b/yarn.lock index d5463ac..a29ede1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -396,10 +396,12 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.16.7.tgz#86d0ba2541f808cb78d4dc5d3e40242a349d6db8" integrity sha512-MFg7ua/bRtnA1hYE3pVyWxGd/r7aMqjNOdHvlSsXV3n8iaeGKkOaPzpJh6/ovf4bEXWcojkeMJpTsq3mzXW4IQ== -"@types/prettier@^2.7.3": - version "2.7.3" - resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.7.3.tgz#3e51a17e291d01d17d3fc61422015a933af7a08f" - integrity sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA== +"@types/prettier@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-3.0.0.tgz#e9bc8160230d3a461dab5c5b41cceef1ef723057" + integrity sha512-mFMBfMOz8QxhYVbuINtswBp9VL2b4Y0QqYHwqLz3YbgtfAcat2Dl6Y1o4e22S/OVE6Ebl9m7wWiMT2lSbAs1wA== + dependencies: + prettier "*" "@types/semver@^7.5.3": version "7.5.3" @@ -844,7 +846,7 @@ postcss@^8.4.27: picocolors "^1.0.0" source-map-js "^1.0.2" -prettier@^3.0.3: +prettier@*, prettier@^3.0.3: version "3.0.3" resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.3.tgz#432a51f7ba422d1469096c0fdc28e235db8f9643" integrity sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==