From 3960ad64e5b95bed88734082b5d71fb14423a381 Mon Sep 17 00:00:00 2001 From: Kam Date: Wed, 3 Jun 2026 20:57:53 +0300 Subject: [PATCH] docs: bump schematics-for-libraries example peer deps to v22 The my-lib schematics-for-libraries example still declared `^21.0.0` peerDependencies, the only adev example left on the previous major. Bumps `@angular/common`/`@angular/core` to `^22.0.0`, matching the current major and this file's stable-`^N.0.0` bump pattern. Also adds this example's package.json to .prettierignore: it contains `// #docregion` markers consumed by the schematics-for-libraries guide, and Prettier's json-stringify parser (used for any package.json) rejects those as invalid JSON. Editing the file surfaced this pre-existing incompatibility in the format check. --- .prettierignore | 4 ++++ .../schematics-for-libraries/projects/my-lib/package.json | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.prettierignore b/.prettierignore index 07f2d18df45..a3406c27066 100644 --- a/.prettierignore +++ b/.prettierignore @@ -38,6 +38,10 @@ adev/src/content/aria/**/*.json adev/src/content/cli/**/*.json adev/src/content/cdk/**/*.json +# Example package.json containing docregion (`// #docregion`) markers, which are +# not valid JSON and cannot be processed by Prettier's json-stringify parser. +adev/src/content/examples/schematics-for-libraries/projects/my-lib/package.json + # Antigravity rules .agent/rules/agents.md diff --git a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/package.json b/adev/src/content/examples/schematics-for-libraries/projects/my-lib/package.json index 4bdab6c3488..1d4d218716d 100644 --- a/adev/src/content/examples/schematics-for-libraries/projects/my-lib/package.json +++ b/adev/src/content/examples/schematics-for-libraries/projects/my-lib/package.json @@ -9,8 +9,8 @@ "postbuild": "copyfiles schematics/*/schema.json schematics/*/files/** schematics/collection.json ../../dist/my-lib/" }, "peerDependencies": { - "@angular/common": "^21.0.0", - "@angular/core": "^21.0.0" + "@angular/common": "^22.0.0", + "@angular/core": "^22.0.0" }, // #docregion collection "schematics": "./schematics/collection.json",