From 0368b23f2e5d8ca9c6191a2db956dc6850daebfc Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Fri, 29 Sep 2023 15:14:41 +0200 Subject: [PATCH] fix(@schematics/angular): use @types/node v18 Currently, running a schematics that adds `@types/node` to a project, like `ng add @angular/ssr`, will add the v16 types. As nodejs v16 is now EOL, this PR updates the types to v18. --- .../schematics_cli/blank/project-files/package.json | 2 +- .../angular_devkit/schematics_cli/schematic/files/package.json | 2 +- .../schematics/angular/utility/latest-versions/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/angular_devkit/schematics_cli/blank/project-files/package.json b/packages/angular_devkit/schematics_cli/blank/project-files/package.json index 720d24137fa6..864402a39b89 100644 --- a/packages/angular_devkit/schematics_cli/blank/project-files/package.json +++ b/packages/angular_devkit/schematics_cli/blank/project-files/package.json @@ -18,7 +18,7 @@ "typescript": "~5.2.2" }, "devDependencies": { - "@types/node": "^16.11.7", + "@types/node": "^18.18.0", "@types/jasmine": "~4.3.0", "jasmine": "^5.0.0" } diff --git a/packages/angular_devkit/schematics_cli/schematic/files/package.json b/packages/angular_devkit/schematics_cli/schematic/files/package.json index 138076288a06..7a0fa3fd970b 100644 --- a/packages/angular_devkit/schematics_cli/schematic/files/package.json +++ b/packages/angular_devkit/schematics_cli/schematic/files/package.json @@ -18,7 +18,7 @@ "typescript": "~5.2.2" }, "devDependencies": { - "@types/node": "^16.11.7", + "@types/node": "^18.18.0", "@types/jasmine": "~4.3.0", "jasmine": "~5.1.0" } diff --git a/packages/schematics/angular/utility/latest-versions/package.json b/packages/schematics/angular/utility/latest-versions/package.json index 6f6fb87fb00d..a26a50f5fcbc 100644 --- a/packages/schematics/angular/utility/latest-versions/package.json +++ b/packages/schematics/angular/utility/latest-versions/package.json @@ -5,7 +5,7 @@ "dependencies": { "@types/express": "^4.17.17", "@types/jasmine": "~4.3.0", - "@types/node": "^16.11.7", + "@types/node": "^18.18.0", "express": "^4.18.2", "jasmine-core": "~5.1.0", "jasmine-spec-reporter": "~7.0.0",