chore(cli): add deprecation notice (#4988)

* feat(cli): add deprecation message

* chore: changesets
This commit is contained in:
shadcn
2024-09-27 17:43:16 +04:00
committed by GitHub
parent 96880e7c9a
commit 5fc9ade413
6 changed files with 23 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
import { existsSync, promises as fs } from "fs"
import path from "path"
import { DEPRECATED_MESSAGE } from "@/src/deprecated"
import {
DEFAULT_COMPONENTS,
DEFAULT_TAILWIND_CONFIG,
@@ -55,6 +56,8 @@ export const init = new Command()
)
.action(async (opts) => {
try {
console.log(DEPRECATED_MESSAGE)
const options = initOptionsSchema.parse(opts)
const cwd = path.resolve(options.cwd)