@hznrkv/sidebar 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +13 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -496,11 +496,22 @@ async function main() {
|
|
|
496
496
|
// 2. Shadcn
|
|
497
497
|
const hasShadcn = exists("components.json")
|
|
498
498
|
|
|
499
|
-
|
|
499
|
+
let reinitShadcn = !hasShadcn
|
|
500
|
+
if (hasShadcn) {
|
|
501
|
+
const { reinit } = await prompts({
|
|
502
|
+
type: "confirm",
|
|
503
|
+
name: "reinit",
|
|
504
|
+
message: "Shadcn encontrado. Reinicializar com novo tema/preset?",
|
|
505
|
+
initial: false,
|
|
506
|
+
})
|
|
507
|
+
reinitShadcn = reinit
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
if (reinitShadcn) {
|
|
500
511
|
const { mode } = await prompts({
|
|
501
512
|
type: "select",
|
|
502
513
|
name: "mode",
|
|
503
|
-
message: "
|
|
514
|
+
message: "Como quer inicializar o Shadcn?",
|
|
504
515
|
choices: [
|
|
505
516
|
{ title: "Instalação padrão", value: "default" },
|
|
506
517
|
{ title: "Tenho um preset pronto", value: "preset" },
|