Skip to content

Commit a659159

Browse files
authored
Bump and pin prettier (#16382)
This PR bumps the Prettier dependencies, and also pins the version. Noticed that a PR with a single empty commit started failing at the time of writing this (#16306). This is because prettier released a new minor version which results in slightly different output. Let's bump prettier and handle the differences, but also pin the version to avoid this in the future.
1 parent ad00119 commit a659159

File tree

8 files changed

+41
-46
lines changed

8 files changed

+41
-46
lines changed

integrations/upgrade/js-config.test.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,9 @@ test(
238238
--width-225px: 225px;
239239
240240
--font-sans: Inter, system-ui, sans-serif;
241-
--font-display: Cabinet Grotesk, ui-sans-serif, system-ui, sans-serif,
242-
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
241+
--font-display:
242+
Cabinet Grotesk, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
243+
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
243244
244245
--radius-4xl: 2rem;
245246

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@types/node": "catalog:",
5353
"postcss": "8.5.1",
5454
"postcss-import": "^16.1.0",
55-
"prettier": "^3.4.2",
55+
"prettier": "catalog:",
5656
"prettier-plugin-embed": "^0.4.15",
5757
"prettier-plugin-organize-imports": "^4.0.0",
5858
"tsup": "^8.3.6",

packages/@tailwindcss-upgrade/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"postcss": "^8.4.41",
4040
"postcss-import": "^16.1.0",
4141
"postcss-selector-parser": "^7.0.0",
42-
"prettier": "^3.4.2",
42+
"prettier": "catalog:",
4343
"tree-sitter": "^0.22.4",
4444
"tree-sitter-typescript": "^0.23.2",
4545
"tailwindcss": "workspace:*"

packages/tailwindcss/src/css-functions.test.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,9 @@ describe('theme(…)', () => {
476476
expect(
477477
await compileCss(css`
478478
@theme default reference {
479-
--font-family-sans: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji,
480-
Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
479+
--font-family-sans:
480+
ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji,
481+
Segoe UI Symbol, Noto Color Emoji;
481482
}
482483
.fam {
483484
font-family: theme(fontFamily.sans);

packages/tailwindcss/src/utilities.test.ts

+7-4
Original file line numberDiff line numberDiff line change
@@ -12545,7 +12545,8 @@ test('font', async () => {
1254512545
await compileCss(
1254612546
css`
1254712547
@theme {
12548-
--font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
12548+
--font-sans:
12549+
ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
1254912550
'Segoe UI Symbol', 'Noto Color Emoji';
1255012551
--font-weight-bold: 650;
1255112552
}
@@ -12617,7 +12618,8 @@ test('font', async () => {
1261712618
await compileCss(
1261812619
css`
1261912620
@theme reference {
12620-
--font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
12621+
--font-sans:
12622+
ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
1262112623
'Segoe UI Symbol', 'Noto Color Emoji';
1262212624
--font-weight-bold: 650;
1262312625
}
@@ -13820,8 +13822,9 @@ test('transition', async () => {
1382013822
@theme {
1382113823
--default-transition-timing-function: ease;
1382213824
--default-transition-duration: 100ms;
13823-
--transition-property: color, background-color, border-color, text-decoration-color, fill,
13824-
stroke, opacity, box-shadow, transform, filter, backdrop-filter;
13825+
--transition-property:
13826+
color, background-color, border-color, text-decoration-color, fill, stroke, opacity,
13827+
box-shadow, transform, filter, backdrop-filter;
1382513828
--transition-property-opacity: opacity;
1382613829
}
1382713830
@tailwind utilities;

packages/tailwindcss/theme.css

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
@theme default {
2-
--font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
3-
'Segoe UI Symbol', 'Noto Color Emoji';
2+
--font-sans:
3+
ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
4+
'Noto Color Emoji';
45
--font-serif: ui-serif, Georgia, Cambria, 'Times New Roman', Times, serif;
5-
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono',
6-
'Courier New', monospace;
6+
--font-mono:
7+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
8+
monospace;
79

810
--color-red-50: oklch(0.971 0.013 17.38);
911
--color-red-100: oklch(0.936 0.032 17.717);

pnpm-lock.yaml

+19-32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ packages:
88
catalog:
99
'@types/node': ^20.14.8
1010
lightningcss: ^1.29.1
11+
prettier: 3.5.0
1112
vite: ^6.0.0

0 commit comments

Comments
 (0)