Skip to content

Commit 2fb3a51

Browse files
feat: bumped tailwind from 3.2.7 -> 3.3.0 (#1312)
* feat: bumped tailwind from 3.2.7 -> 3.3.0 * updated lockfile * Create .changeset/ten-suns-brush.md * fixed lint * updated tailwind prettier for www * updated the cli template * type type type * reverted check to not write lmao * ordering * pointed to the config * added tailwind normally * formatting * cjs -> ts * 🎉 * ah --------- Co-authored-by: Julius Marminge <[email protected]>
1 parent 418fcde commit 2fb3a51

24 files changed

+78
-104
lines changed

Diff for: .changeset/ten-suns-brush.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-t3-app": patch
3+
---
4+
5+
feat: bumped tailwind from 3.2.7 -> 3.3.0

Diff for: cli/.prettierrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const config = {
33
...require("../.prettierrc.cjs"),
44
plugins: [require.resolve("prettier-plugin-tailwindcss")],
5-
tailwindConfig: "./template/extras/config/tailwind.config.cjs",
5+
tailwindConfig: "./template/extras/config/tailwind.config.ts",
66
};
77

88
module.exports = config;

Diff for: cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"next": "^13.2.4",
6565
"next-auth": "^4.20.1",
6666
"prettier": "^2.8.6",
67-
"prettier-plugin-tailwindcss": "^0.2.5",
67+
"prettier-plugin-tailwindcss": "^0.2.6",
6868
"prisma": "^4.11.0",
6969
"react": "18.2.0",
7070
"react-dom": "18.2.0",

Diff for: cli/src/installers/dependencyVersionMap.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ export const dependencyVersionMap = {
1212
"@prisma/client": "^4.11.0",
1313

1414
// TailwindCSS
15-
tailwindcss: "^3.2.7",
15+
tailwindcss: "^3.3.0",
1616
autoprefixer: "^10.4.14",
1717
postcss: "^8.4.21",
1818
prettier: "^2.8.6",
19-
"prettier-plugin-tailwindcss": "^0.2.5",
19+
"prettier-plugin-tailwindcss": "^0.2.6",
2020
"@types/prettier": "^2.7.2",
2121

2222
// tRPC

Diff for: cli/src/installers/tailwind.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { type Installer } from "~/installers/index.js";
2-
import path from "path";
31
import fs from "fs-extra";
2+
import path from "path";
43
import { PKG_ROOT } from "~/consts.js";
4+
import { type Installer } from "~/installers/index.js";
55
import { addPackageDependency } from "~/utils/addPackageDependency.js";
66

77
export const tailwindInstaller: Installer = ({ projectDir }) => {
@@ -20,8 +20,8 @@ export const tailwindInstaller: Installer = ({ projectDir }) => {
2020

2121
const extrasDir = path.join(PKG_ROOT, "template/extras");
2222

23-
const twCfgSrc = path.join(extrasDir, "config/tailwind.config.cjs");
24-
const twCfgDest = path.join(projectDir, "tailwind.config.cjs");
23+
const twCfgSrc = path.join(extrasDir, "config/tailwind.config.ts");
24+
const twCfgDest = path.join(projectDir, "tailwind.config.ts");
2525

2626
const postcssCfgSrc = path.join(extrasDir, "config/postcss.config.cjs");
2727
const postcssCfgDest = path.join(projectDir, "postcss.config.cjs");
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
/** @type {import('tailwindcss').Config} */
2-
const config = {
1+
import { type Config } from "tailwindcss";
2+
3+
export default {
34
content: ["./src/**/*.{js,ts,jsx,tsx}"],
45
theme: {
56
extend: {},
67
},
78
plugins: [],
8-
};
9-
10-
module.exports = config;
9+
} satisfies Config;

Diff for: pnpm-lock.yaml

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

Diff for: www/.prettierrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const config = {
1515
},
1616
],
1717
astroAllowShorthand: false,
18-
tailwindConfig: "./tailwind.config.cjs",
18+
tailwindConfig: "./tailwind.config.ts",
1919
};
2020

2121
module.exports = config;

0 commit comments

Comments
 (0)