From 9b0501b55baa5c25303c408c759cbc0f4e8242cb Mon Sep 17 00:00:00 2001 From: Hyeseong Kim Date: Sat, 18 Mar 2023 00:46:34 +0900 Subject: [PATCH] TypeScript v5 introduce moduleResolution: bundler --- .yarn/sdks/typescript/package.json | 2 +- package.json | 4 ++-- tsconfig.json | 4 ++-- yarn.lock | 18 +++++++++--------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.yarn/sdks/typescript/package.json b/.yarn/sdks/typescript/package.json index a25b128..2cf6563 100644 --- a/.yarn/sdks/typescript/package.json +++ b/.yarn/sdks/typescript/package.json @@ -1,6 +1,6 @@ { "name": "typescript", - "version": "4.8.3-sdk", + "version": "5.0.2-sdk", "main": "./lib/typescript.js", "type": "commonjs" } diff --git a/package.json b/package.json index 52abc28..9dd4e57 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "./platform": "./sources/platform/node.ts" }, "resolutions": { - "typescript": "4.8.3" + "typescript": "5.0.2" }, "dependencies": { "typanion": "^3.8.0" @@ -63,7 +63,7 @@ "ts-mocha": "^10.0.0", "ts-node": "^10.9.1", "tslib": "^2.0.0", - "typescript": "^4.9.5" + "typescript": "^5.0.2" }, "scripts": { "prepack": "rm -rf lib && rollup -c", diff --git a/tsconfig.json b/tsconfig.json index 2360def..da954c3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,8 +7,8 @@ "DOM", "ES2018" ], - "module": "commonjs", - "moduleResolution": "nodenext", + "module": "esnext", + "moduleResolution": "bundler", "noEmit": true, "skipLibCheck": true, "strict": true, diff --git a/yarn.lock b/yarn.lock index 5263461..d97ea03 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1235,7 +1235,7 @@ __metadata: ts-node: ^10.9.1 tslib: ^2.0.0 typanion: ^3.8.0 - typescript: ^4.9.5 + typescript: ^5.0.2 peerDependencies: typanion: "*" languageName: unknown @@ -4360,23 +4360,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:4.8.3": - version: 4.8.3 - resolution: "typescript@npm:4.8.3" +"typescript@npm:5.0.2": + version: 5.0.2 + resolution: "typescript@npm:5.0.2" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 8286a5edcaf3d68e65c451aa1e7150ad1cf53ee0813c07ec35b7abdfdb10f355ecaa13c6a226a694ae7a67785fd7eeebf89f845da0b4f7e4a35561ddc459aba0 + checksum: bef1dcd166acfc6934b2ec4d72f93edb8961a5fab36b8dd2aaf6f4f4cd5c0210f2e0850aef4724f3b4913d5aef203a94a28ded731b370880c8bcff7e4ff91fc1 languageName: node linkType: hard -"typescript@patch:typescript@npm%3A4.8.3#~builtin": - version: 4.8.3 - resolution: "typescript@patch:typescript@npm%3A4.8.3#~builtin::version=4.8.3&hash=aae4e6" +"typescript@patch:typescript@npm%3A5.0.2#~builtin": + version: 5.0.2 + resolution: "typescript@patch:typescript@npm%3A5.0.2#~builtin::version=5.0.2&hash=d73830" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 2222d2382fb3146089b1d27ce2b55e9d1f99cc64118f1aba75809b693b856c5d3c324f052f60c75b577947fc538bc1c27bad0eb76cbdba9a63a253489504ba7e + checksum: bdbf3d0aac0d6cf010fbe0536753dc19f278eb4aba88140dcd25487dfe1c56ca8b33abc0dcd42078790a939b08ebc4046f3e9bb961d77d3d2c3cfa9829da4d53 languageName: node linkType: hard