From 9aa47b5e4ef4a301d831f377611669cde1dbeafa Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Mon, 27 Jan 2025 10:35:26 -0500 Subject: [PATCH] fix(@angular/build): allow tailwindcss 4.x as a peer dependency To support usage of the newly released Tailwind CSS 4.0.0, the peer dependency range has been update to include `^4.0.0`. This prevents potential installation warnings/error when using various package managers. Use of Tailwind CSS 4+ requires either the `application` (new project default) or `browser-esbuild` builder. Both of which support custom postcss configuration via a `.postcssrc.json` file. For instructions on the setup of Tailwind CSS with Angular, please see the Tailwind CSS documentation here: https://tailwindcss.com/docs/installation/framework-guides/angular (cherry picked from commit 694ef8e6e486ad66d19b831243193e0123a4b0b1) --- packages/angular/build/package.json | 2 +- packages/angular_devkit/build_angular/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/angular/build/package.json b/packages/angular/build/package.json index ac2ba4996adf..8ecc0201d937 100644 --- a/packages/angular/build/package.json +++ b/packages/angular/build/package.json @@ -57,7 +57,7 @@ "less": "^4.2.0", "ng-packagr": "^19.0.0", "postcss": "^8.4.0", - "tailwindcss": "^2.0.0 || ^3.0.0", + "tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0", "typescript": ">=5.5 <5.8" }, "peerDependenciesMeta": { diff --git a/packages/angular_devkit/build_angular/package.json b/packages/angular_devkit/build_angular/package.json index 1328eda21c75..d78c7d8aa694 100644 --- a/packages/angular_devkit/build_angular/package.json +++ b/packages/angular_devkit/build_angular/package.json @@ -81,7 +81,7 @@ "karma": "^6.3.0", "ng-packagr": "^19.0.0", "protractor": "^7.0.0", - "tailwindcss": "^2.0.0 || ^3.0.0", + "tailwindcss": "^2.0.0 || ^3.0.0 || ^4.0.0", "typescript": ">=5.5 <5.8" }, "peerDependenciesMeta": {