Skip to content

Commit

Permalink
deps: upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed May 12, 2024
1 parent c0d4542 commit 6dbd300
Show file tree
Hide file tree
Showing 19 changed files with 272 additions and 255 deletions.
17 changes: 12 additions & 5 deletions .yarn/sdks/typescript/lib/tsserver.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsserver.js
require(absPnpApiPath).setup();
}
}

const moduleWrapper = tsserver => {
if (!process.versions.pnp) {
return tsserver;
Expand Down Expand Up @@ -214,11 +221,11 @@ const moduleWrapper = tsserver => {
return tsserver;
};

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsserver.js
require(absPnpApiPath).setup();
}
const [major, minor] = absRequire(`typescript/package.json`).version.split(`.`, 2).map(value => parseInt(value, 10));
// In TypeScript@>=5.5 the tsserver uses the public TypeScript API so that needs to be patched as well.
// Ref https://github.com/microsoft/TypeScript/pull/55326
if (major > 5 || (major === 5 && minor >= 5)) {
moduleWrapper(absRequire(`typescript`));
}

// Defer to the real typescript/lib/tsserver.js your application uses
Expand Down
17 changes: 12 additions & 5 deletions .yarn/sdks/typescript/lib/tsserverlibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ const relPnpApiPath = "../../../../.pnp.cjs";
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsserverlibrary.js
require(absPnpApiPath).setup();
}
}

const moduleWrapper = tsserver => {
if (!process.versions.pnp) {
return tsserver;
Expand Down Expand Up @@ -214,11 +221,11 @@ const moduleWrapper = tsserver => {
return tsserver;
};

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/lib/tsserverlibrary.js
require(absPnpApiPath).setup();
}
const [major, minor] = absRequire(`typescript/package.json`).version.split(`.`, 2).map(value => parseInt(value, 10));
// In TypeScript@>=5.5 the tsserver uses the public TypeScript API so that needs to be patched as well.
// Ref https://github.com/microsoft/TypeScript/pull/55326
if (major > 5 || (major === 5 && minor >= 5)) {
moduleWrapper(absRequire(`typescript`));
}

// Defer to the real typescript/lib/tsserverlibrary.js your application uses
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{"type": "chore", "section": "Miscellaneous Chores"},
{"type": "docs", "section": "Documentation", "hidden": true},
{"type": "doc", "section": "Documentation", "hidden": true},
{"type": "deps", "section": "Dependencies update", "hidden": true},
{"type": "deps", "section": "Dependencies update", "hidden": false},
{"type": "style", "section": "Styles", "hidden": true},
{"type": "test", "section": "Tests", "hidden": true},
{"type": "build", "section": "Build System", "hidden": true},
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
"@lerna-lite/run": "^3.3.3",
"@lerna-lite/version": "^3.3.3",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"conventional-changelog-conventionalcommits": "^7.0.2",
"eslint": "^8.57.0",
"eslint-import-resolver-typescript": "^3.6.1",
Expand All @@ -58,5 +58,5 @@
"prettier": "^3.2.5",
"typescript": "^5.4.5"
},
"packageManager": "yarn@4.1.1"
"packageManager": "yarn@4.2.2"
}
2 changes: 1 addition & 1 deletion packages/async-queue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@alwatr/type-helper": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"jest": "^29.7.0",
"typescript": "^5.4.5"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/dedupe/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@alwatr/type-helper": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"typescript": "^5.4.5"
}
}
4 changes: 2 additions & 2 deletions packages/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@
"devDependencies": {
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"@typescript-eslint/parser": "^7.8.0",
"eslint": "^8.57.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/exit-hook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@alwatr/nano-build": "workspace:^",
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"typescript": "^5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@alwatr/type-helper": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"jest": "^29.7.0",
"typescript": "^5.4.5"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/flatomise/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"@alwatr/nano-build": "workspace:^",
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"typescript": "^5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/global-scope/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"@alwatr/nano-build": "workspace:^",
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"typescript": "^5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/is-number/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"@alwatr/nano-build": "workspace:^",
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"jest": "^29.7.0",
"typescript": "^5.4.5"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@alwatr/nano-build": "workspace:^",
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"typescript": "^5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/node-fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@alwatr/type-helper": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"typescript": "^5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/parse-duration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"@alwatr/nano-build": "workspace:^",
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"jest": "^29.7.0",
"typescript": "^5.4.5"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"@alwatr/nano-build": "workspace:^",
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"typescript": "^5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/polyfill-has-own/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"@alwatr/nano-build": "workspace:^",
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"typescript": "^5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/wait/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"@alwatr/prettier-config": "workspace:^",
"@alwatr/tsconfig-base": "workspace:^",
"@alwatr/type-helper": "workspace:^",
"@types/node": "^20.12.7",
"@types/node": "^20.12.11",
"typescript": "^5.4.5"
}
}
Loading

0 comments on commit 6dbd300

Please sign in to comment.