Skip to content

Commit 8282aa0

Browse files
fix(deps): update dependency @astrojs/tailwind to v4 (#159)
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@astrojs/tailwind](https://docs.astro.build/en/guides/integrations-guide/tailwind/) ([source](https://togithub.com/withastro/astro)) | [`^3.1.1` -> `^4.0.0`](https://renovatebot.com/diffs/npm/@astrojs%2ftailwind/3.1.1/4.0.0) | [![age](https://badges.renovateapi.com/packages/npm/@astrojs%2ftailwind/4.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/@astrojs%2ftailwind/4.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/@astrojs%2ftailwind/4.0.0/compatibility-slim/3.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/@astrojs%2ftailwind/4.0.0/confidence-slim/3.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>withastro/astro</summary> ### [`v4.0.0`](https://togithub.com/withastro/astro/blob/HEAD/packages/integrations/tailwind/CHANGELOG.md#&#8203;400) [Compare Source](https://togithub.com/withastro/astro/compare/@astrojs/tailwind@3.1.3...@astrojs/tailwind@4.0.0) ##### Major Changes - [#&#8203;7391](https://togithub.com/withastro/astro/pull/7391) [`556fd694a`](https://togithub.com/withastro/astro/commit/556fd694a6672572caffce964b852d212d013ac8) Thanks [@&#8203;bluwy](https://togithub.com/bluwy)! - Rename options `config.path` to `configFile`, and `config.applyBaseStyles` to `applyBaseStyles`. If you are using these options, you need to migrate to the new names. ```diff // astro.config.mjs import { defineConfig } from 'astro/config'; import tailwind from '@&#8203;astrojs/tailwind'; export default defineConfig({ integrations: [ tailwind({ - config: { - path: '...', - applyBaseStyles: true, - }, + configFile: '...', + applyBaseStyles: true, }), ], }); ``` - [#&#8203;6724](https://togithub.com/withastro/astro/pull/6724) [`3f1cb6b1a`](https://togithub.com/withastro/astro/commit/3f1cb6b1a001fb03419a313f72c9f4846b890fe0) Thanks [@&#8203;TomPichaud](https://togithub.com/TomPichaud)! - Let the `tailwindcss` PostCSS plugin load its config file itself. This changes the Tailwind config loading behaviour where it is loaded from `process.cwd()` instead of the project `root`. If your Tailwind config file is not located in the current working directory, you will need to configure the integration's `configFile` option to load from a specific path: ```js // astro.config.mjs import { defineConfig } from 'astro/config'; import tailwind from '@&#8203;astrojs/tailwind'; import { fileURLToPath } from 'url'; export default defineConfig({ integrations: [ tailwind({ configFile: fileURLToPath(new URL('./tailwind.config.cjs', import.meta.url)), }), ], }); ``` This change also requires a Tailwind config file to exist in your project as a fallback config is no longer provided. It is set up automatically during `astro add tailwind`, but if it does not exist, you can manually create a `tailwind.config.cjs` file in your project root: ```js // tailwind.config.cjs /** @&#8203;type {import('tailwindcss').Config} */ module.exports = { content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'], theme: { extend: {}, }, plugins: [], }; ``` ##### Patch Changes - Updated dependencies \[[`bb644834e`](https://togithub.com/withastro/astro/commit/bb644834ef03bc00048c7381f20a1c01388438e2), [`d2020c29c`](https://togithub.com/withastro/astro/commit/d2020c29cf285e699f92143a70ffa30a85122bb4)]: - astro@2.6.5 ### [`v3.1.3`](https://togithub.com/withastro/astro/blob/HEAD/packages/integrations/tailwind/CHANGELOG.md#&#8203;313) [Compare Source](https://togithub.com/withastro/astro/compare/@astrojs/tailwind@3.1.2...@astrojs/tailwind@3.1.3) ##### Patch Changes - [#&#8203;7104](https://togithub.com/withastro/astro/pull/7104) [`826e02890`](https://togithub.com/withastro/astro/commit/826e0289005f645b902375b98d5549c6a95ccafa) Thanks [@&#8203;bluwy](https://togithub.com/bluwy)! - Specify `"files"` field to only publish necessary files - Updated dependencies \[[`4516d7b22`](https://togithub.com/withastro/astro/commit/4516d7b22c5979cde4537f196b53ae2826ba9561), [`e186ecc5e`](https://togithub.com/withastro/astro/commit/e186ecc5e292de8c6a2c441a2d588512c0813068), [`c6d7ebefd`](https://togithub.com/withastro/astro/commit/c6d7ebefdd554a9ef29cfeb426ac55cab80d6473), [`914c439bc`](https://togithub.com/withastro/astro/commit/914c439bccee9fec002c6d92beaa501c398e62ac), [`e9fc2c221`](https://togithub.com/withastro/astro/commit/e9fc2c2213036d47cd30a47a6cdad5633481a0f8), [`075eee08f`](https://togithub.com/withastro/astro/commit/075eee08f2e2b0baea008b97f3523f2cb937ee44), [`719002ca5`](https://togithub.com/withastro/astro/commit/719002ca5b128744fb4316d4a52c5dcd46a42759), [`fc52681ba`](https://togithub.com/withastro/astro/commit/fc52681ba2f8fe8bcd92eeedf3c6a52fd86a390e), [`fb84622af`](https://togithub.com/withastro/astro/commit/fb84622af04f795de8d17f24192de105f70fe910), [`cada10a46`](https://togithub.com/withastro/astro/commit/cada10a466f81f8edb0aa664f9cffdb6b5b8f307), [`cd410c5eb`](https://togithub.com/withastro/astro/commit/cd410c5eb71f825259279c27c4c39d0ad282c3f0), [`73ec6f6c1`](https://togithub.com/withastro/astro/commit/73ec6f6c16cadb71dafe9f664f0debde072c3173), [`410428672`](https://togithub.com/withastro/astro/commit/410428672ed97bba7ca0b3352c1a7ee564921462), [`763ff2d1e`](https://togithub.com/withastro/astro/commit/763ff2d1e44f54b899d7c65386f1b4b877c95737), [`c1669c001`](https://togithub.com/withastro/astro/commit/c1669c0011eecfe65a459d727848c18c189a54ca), [`3d525efc9`](https://togithub.com/withastro/astro/commit/3d525efc95cfb2deb5d9e04856d02965d66901c9)]: - astro@2.5.0 ### [`v3.1.2`](https://togithub.com/withastro/astro/blob/HEAD/packages/integrations/tailwind/CHANGELOG.md#&#8203;312) [Compare Source](https://togithub.com/withastro/astro/compare/@astrojs/tailwind@3.1.1...@astrojs/tailwind@3.1.2) ##### Patch Changes - [#&#8203;6930](https://togithub.com/withastro/astro/pull/6930) [`2dca81bf2`](https://togithub.com/withastro/astro/commit/2dca81bf2174cd5c27cb63cb0ae081ea2a1ac771) Thanks [@&#8203;bluwy](https://togithub.com/bluwy)! - Update dependencies - Updated dependencies \[[`a98df9374`](https://togithub.com/withastro/astro/commit/a98df9374dec65c678fa47319cb1481b1af123e2), [`50975f2ea`](https://togithub.com/withastro/astro/commit/50975f2ea3a59f9e023cc631a9372c0c7986eec9), [`ebae1eaf8`](https://togithub.com/withastro/astro/commit/ebae1eaf87f49399036033c673b513338f7d9c42), [`dc062f669`](https://togithub.com/withastro/astro/commit/dc062f6695ce577dc569781fc0678c903012c336)]: - astro@2.3.3 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/creatorsgarten/contentsgarten). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMzEuMCIsInVwZGF0ZWRJblZlciI6IjM1LjEzMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent d3bfe8a commit 8282aa0

File tree

2 files changed

+55
-20
lines changed

2 files changed

+55
-20
lines changed

pnpm-lock.yaml

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

wiki.creatorsgarten.org/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"dependencies": {
1414
"@astrojs/node": "^5.1.0",
1515
"@astrojs/react": "^2.1.0",
16-
"@astrojs/tailwind": "^3.1.1",
16+
"@astrojs/tailwind": "^4.0.0",
1717
"@babel/core": "^7.21.3",
1818
"@contentsgarten/client-utils": "workspace:*",
1919
"@contentsgarten/html": "workspace:*",

0 commit comments

Comments
 (0)