Skip to content

Commit b280ade

Browse files
committed
fix(prettier): revert breaking changes in prettier v3 upgrade (#10188)
@Josh-Walker-GM pointed out some breaking changes I included in the prettier v3 upgrade (#10179) in his PR [here](#10183). My goal with the prettier v3 upgrade was to first do it in a non-breaking way so that it could be released in the next minor, then come back and include the breaking changes (mainly around the tailwind setup command). This should undo the breaking changes so that we can release prettier v3 in the next minor and redo #10182.
1 parent 6f34164 commit b280ade

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/cli/src/commands/setup/ui/libraries/tailwindcss.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export const handler = async ({ force, install }) => {
115115
})
116116
const rwPaths = getPaths()
117117

118-
const projectPackages = ['prettier-plugin-tailwindcss']
118+
const projectPackages = ['prettier-plugin-tailwindcss@0.4.1']
119119

120120
const webWorkspacePackages = [
121121
'postcss',

tasks/test-project/tasks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ async function webTasks(outputPath, { linkWithLatestFwBuild, verbose }) {
296296
// @NOTE: use rwfw, because calling the copy function doesn't seem to work here
297297
task: () =>
298298
execa(
299-
'yarn workspace web add -D postcss postcss-loader tailwindcss autoprefixer prettier-plugin-tailwindcss',
299+
'yarn workspace web add -D postcss postcss-loader tailwindcss autoprefixer prettier-plugin-tailwindcss@0.4.1',
300300
[],
301301
getExecaOptions(outputPath)
302302
),

tasks/test-project/tui-tasks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ async function webTasks(outputPath, { linkWithLatestFwBuild }) {
349349
// @NOTE: use rwfw, because calling the copy function doesn't seem to work here
350350
task: async () => {
351351
await exec(
352-
'yarn workspace web add -D postcss postcss-loader tailwindcss autoprefixer prettier-plugin-tailwindcss',
352+
'yarn workspace web add -D postcss postcss-loader tailwindcss autoprefixer prettier-plugin-tailwindcss@0.4.1',
353353
[],
354354
getExecaOptions(outputPath)
355355
)

0 commit comments

Comments
 (0)