Skip to content

Commit a605cff

Browse files
committed
feat: added compatibility of CLI with Tailwind v4
1 parent ac6b7b1 commit a605cff

7 files changed

Lines changed: 436 additions & 325 deletions

File tree

.changeset/cli-v4-compatibility.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"axionjs-ui": minor
3+
---
4+
5+
Ensure v4 compatiblity for themes and components

packages/cli/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ process.on("SIGTERM", () => process.exit(0));
1818

1919
async function main() {
2020
const program = new Command()
21-
.name("axionjs")
21+
.name("axionjs-ui")
2222
.description("Add components right in to your project")
2323
.version(
2424
packageJson.version || "1.0.0",

packages/cli/src/utils/add-components.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ export async function addComponents(components, config, options) {
7171
silent: options.silent,
7272
tailwindVersion,
7373
});
74-
await updateCssVars(tree.cssVars, config, {
74+
75+
await updateCssVars(tree, config, {
7576
cleanupDefaultNextStyles: options.isNewProject,
7677
silent: options.silent,
7778
tailwindVersion,

packages/cli/src/utils/get-config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,5 @@ export async function getRawConfig(cwd) {
187187

188188
// TODO: Cache this call.
189189
export async function getTargetStyleFromConfig(cwd, fallback) {
190-
const projectInfo = await getProjectInfo(cwd);
191-
return projectInfo?.tailwindVersion === "v4" ? "new-york-v4" : fallback;
190+
return fallback;
192191
}

0 commit comments

Comments
 (0)