Skip to content

Commit bf47fa7

Browse files
tailwind v4 on init
1 parent faa49b8 commit bf47fa7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

init/src/init.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as path from "@std/path";
33

44
// Keep these as is, as we replace these version in our release script
55
const FRESH_VERSION = "2.0.0-alpha.29";
6-
const FRESH_TAILWIND_VERSION = "0.0.1-alpha.7";
6+
const FRESH_TAILWIND_VERSION = "0.0.1-alpha.8";
77
const PREACT_VERSION = "10.25.4";
88
const PREACT_SIGNALS_VERSION = "2.0.1";
99

@@ -542,7 +542,7 @@ import { Builder } from "fresh/dev";
542542
import { app } from "./main.ts";
543543
544544
const builder = new Builder();
545-
${useTailwind ? "tailwind(builder, app, {});" : ""}
545+
${useTailwind ? "tailwind(builder, app);" : ""}
546546
if (Deno.args.includes("build")) {
547547
await builder.build(app);
548548
} else {
@@ -589,7 +589,7 @@ if (Deno.args.includes("build")) {
589589
};
590590

591591
if (useTailwind) {
592-
denoJson.imports["tailwindcss"] = "npm:tailwindcss@^3.4.3";
592+
denoJson.imports["tailwindcss"] = "npm:tailwindcss@^4";
593593
}
594594

595595
await writeFile("deno.json", denoJson);

init/src/init_test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ Deno.test("init with tailwind - fmt, lint, and type check project", async () =>
160160
stderr: "inherit",
161161
stdout: "inherit",
162162
}).output();
163+
163164
expect(check.code).toEqual(0);
164165
});
165166
});

0 commit comments

Comments
 (0)