Skip to content

Commit

Permalink
Change tsconfig "module" to "NodeNext"
Browse files Browse the repository at this point in the history
This allows resolving package.json "exports" fields, which is needed for
the new prettier types, for instance.
  • Loading branch information
IanVS committed Sep 26, 2023
1 parent 1c6544c commit a0fff36
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 7 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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==
Expand Down

0 comments on commit a0fff36

Please sign in to comment.