Skip to content

Commit 2b56b54

Browse files
authored
Merge pull request Homebrew#206393 from Homebrew/tailwindcss-livecheck
tailwindcss: keep tailwind-cli version in sync with formula
2 parents 9ae765c + 02b9e92 commit 2b56b54

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Formula/t/tailwindcss.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,15 @@ class Tailwindcss < Formula
2828
resource "tailwind-cli" do
2929
url "https://registry.npmjs.org/@tailwindcss/cli/-/cli-4.0.3.tgz"
3030
sha256 "d9df4e36cd823bbf90aeb9f7dc8e1bd1886501ef0ff51cba83526d29a41d5402"
31+
32+
livecheck do
33+
formula :parent
34+
end
3135
end
3236

3337
def install
38+
odie "tailwind-cli resource needs to be updated" if version != resource("tailwind-cli").version
39+
3440
# install the dedicated tailwind-cli package
3541
resource("tailwind-cli").stage do
3642
system "npm", "install", *std_npm_args

0 commit comments

Comments
 (0)