Skip to content

Commit 8de7e6c

Browse files
committed
update
1 parent 0aaf588 commit 8de7e6c

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"prepare": "npx husky",
2222
"build": "bun build ./src/index.ts --outdir ./dist --target=node --minify && cp -r ./node_modules/shadcn/dist/ ./dist/shadcn",
2323
"format": "biome lint --fix && biome check --write",
24-
"test": "bun run build && bun link",
24+
"test": "bun run build && bun link @intentui/cli && bun run dev",
2525
"preview": "bun run build && bun link",
2626
"pr": "bun run build && git commit -a",
2727
"pre": "chmod a+x dist/index.js",

src/commands/init.command.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ const shadcnInit = RawCommand.make("shadcnClone", "init", `${REGISTRY_URL}/r/def
1414

1515
export const initCommand = Command.make("init", {}, () =>
1616
Effect.gen(function* () {
17-
const fileSytem = yield* FileSystem.FileSystem
17+
const fileSyt = yield* FileSystem.FileSystem
1818

19-
const hasIntentUiConfig = yield* fileSytem.exists("intentui.json")
20-
const hasComponentJson = yield* fileSytem.exists("component.json")
19+
const hasIntentUiConfig = yield* fileSyt.exists("intentui.json")
20+
const hasComponentJson = yield* fileSyt.exists("component.json")
2121

2222
if (hasIntentUiConfig && !hasComponentJson) {
2323
yield* Console.log("Migrating to new config format...")

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ const rootCommand = Command.make("root", {}, () =>
5858

5959
yield* Console.log("")
6060
yield* Console.log(chalk.bold.yellow("Intent UI CLI is ready to use!"))
61-
yield* Console.log(chalk.cyan("Run 'intentui --help' to see all available commands."))
61+
yield* Console.log(
62+
chalk.cyan("Run 'npx @intentui/cli@latest --help' to see all available commands."),
63+
)
6264
yield* Console.log("")
6365
}),
6466
)

0 commit comments

Comments
 (0)