@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.
Files changed (2) hide show
  1. package/index.js +13 -2
  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
- if (!hasShadcn) {
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: "Shadcn não encontrado. Como quer inicializar?",
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" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hznrkv/sidebar",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "CLI para instalar a sidebar @hznrkv em projetos Next.js + Shadcn",
5
5
  "bin": {
6
6
  "@hznrkv/sidebar": "./index.js"