Skip to content

Commit 557ed8c

Browse files
authored
Add postcss as a dependency of @tailwindcss/postcss (#14750)
This PR adds `postcss` as a dependency of `@tailwindcss/postcss`. If you are in an environment with Next.js where you can use the `@tailwindcss/postcss` package, then `postcss` is required. If you have `postcss` in your `package.json`, then everything is fine, however if you don't then you will get an error that `postcss` cannot be found. Note: this only happens when you are using `npm`, if you are using `pnpm`, then the `postcss` package can be resolved correctly and you won't run into issues. This is also why the integration tests just worked (because we use `pnpm`). To make sure that this package works for most people in most environments, we explicitly add `postcss` as a dependency of `@tailwindcss/postcss`. --- I wanted to create an integration test for this to make sure this works, but we are currently using `pnpm` with some of `pnpm`'s features to make sure that we can override dependencies that point to `.tgz` files.
1 parent d2865c3 commit 557ed8c

File tree

3 files changed

+11
-25
lines changed

3 files changed

+11
-25
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1717
- Allow spaces spaces around operators in attribute selector variants ([#14703](https://github.com/tailwindlabs/tailwindcss/pull/14703))
1818
- Ensure color opacity modifiers work with OKLCH colors ([#14741](https://github.com/tailwindlabs/tailwindcss/pull/14741))
1919
- Ensure changes to the input CSS file result in a full rebuild ([#14744](https://github.com/tailwindlabs/tailwindcss/pull/14744))
20+
- Add `postcss` as a dependency of `@tailwindcss/postcss` ([#14750](https://github.com/tailwindlabs/tailwindcss/pull/14750))
2021
- _Upgrade (experimental)_: Migrate `flex-grow` to `grow` and `flex-shrink` to `shrink` ([#14721](https://github.com/tailwindlabs/tailwindcss/pull/14721))
2122
- _Upgrade (experimental)_: Minify arbitrary values when printing candidates ([#14720](https://github.com/tailwindlabs/tailwindcss/pull/14720))
2223
- _Upgrade (experimental)_: Ensure legacy theme values ending in `1` (like `theme(spacing.1)`) are correctly migrated to custom properties ([#14724](https://github.com/tailwindlabs/tailwindcss/pull/14724))

packages/@tailwindcss-postcss/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
"@tailwindcss/node": "workspace:^",
3535
"@tailwindcss/oxide": "workspace:^",
3636
"lightningcss": "catalog:",
37+
"postcss": "^8.4.41",
3738
"tailwindcss": "workspace:^"
3839
},
3940
"devDependencies": {
4041
"@types/node": "catalog:",
4142
"@types/postcss-import": "14.0.3",
4243
"internal-example-plugin": "workspace:*",
43-
"postcss": "^8.4.41",
4444
"postcss-import": "^16.1.0"
4545
}
4646
}

pnpm-lock.yaml

Lines changed: 9 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)