Skip to content

Commit 4df777f

Browse files
committed
fix(vite): accept @angular/build 22 as an optional peer
Angular 22 projects (`@angular-devkit/build-angular` 22 pulls `@angular/build` 22) could not install `@nativescript/vite` without `--legacy-peer-deps`: the optional peer range stopped at `^21.0.0` while the Angular flavor already runs on 22 (verified with the ns-apple-music Angular app on 8.0.7). [skip ci]
1 parent 927dd6f commit 4df777f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
},
118118
"peerDependencies": {
119119
"@analogjs/vite-plugin-angular": "^2.0.0",
120-
"@angular/build": "^21.0.0",
120+
"@angular/build": "^21.0.0 || ^22.0.0",
121121
"@vitejs/plugin-vue": "^6.0.5",
122122
"@vitejs/plugin-vue-jsx": "^5.1.5",
123123
"@vue/compiler-sfc": "^3.5.0",

0 commit comments

Comments
 (0)