From fef06f3c5883525612cb12806658d541371643b7 Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Fri, 6 Dec 2024 13:16:24 +0100 Subject: [PATCH 1/3] Fix PostCSS watcher warnings on Windows --- CHANGELOG.md | 1 + packages/@tailwindcss-postcss/src/index.ts | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07fa9c953329..99753fab4788 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Ensure `@import "…" reference` never generates utilities ([#15307](https://github.com/tailwindlabs/tailwindcss/pull/15307)) +- Fix dependency related warnings when using `@tailwindcss/postcss` on Windows ## [4.0.0-beta.5] - 2024-12-04 diff --git a/packages/@tailwindcss-postcss/src/index.ts b/packages/@tailwindcss-postcss/src/index.ts index d40d34bc3d98..a58820e7140a 100644 --- a/packages/@tailwindcss-postcss/src/index.ts +++ b/packages/@tailwindcss-postcss/src/index.ts @@ -106,7 +106,7 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin { result.messages.push({ type: 'dependency', plugin: '@tailwindcss/postcss', - file, + file: path.resolve(file), parent: result.opts.from, }) } @@ -174,7 +174,7 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin { result.messages.push({ type: 'dependency', plugin: '@tailwindcss/postcss', - file, + file: path.resolve(file), parent: result.opts.from, }) } @@ -194,14 +194,14 @@ function tailwindcss(opts: PluginOptions = {}): AcceptedPlugin { result.messages.push({ type: 'dependency', plugin: '@tailwindcss/postcss', - file: globBase, + file: path.resolve(globBase), parent: result.opts.from, }) } else { result.messages.push({ type: 'dir-dependency', plugin: '@tailwindcss/postcss', - dir: globBase, + dir: path.resolve(globBase), glob: pattern, parent: result.opts.from, }) From 541c6711ee92626a6e5786773526b401f9ee33de Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Fri, 6 Dec 2024 13:24:18 +0100 Subject: [PATCH 2/3] Run CI on Windows --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d28a1e1e0660..a5114d54369b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,6 @@ jobs: on-next-branch: - ${{ github.ref == 'refs/heads/next' }} exclude: - - on-next-branch: false - runner: windows-latest - on-next-branch: false runner: macos-14 From 8a8be1ac09b4090996b963d0022a4c5acf450f9a Mon Sep 17 00:00:00 2001 From: Philipp Spiess Date: Fri, 6 Dec 2024 13:58:04 +0100 Subject: [PATCH 3/3] Revert "Run CI on Windows" This reverts commit 541c6711ee92626a6e5786773526b401f9ee33de. --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5114d54369b..d28a1e1e0660 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,8 @@ jobs: on-next-branch: - ${{ github.ref == 'refs/heads/next' }} exclude: + - on-next-branch: false + runner: windows-latest - on-next-branch: false runner: macos-14