@tioelvis/next-template 2.4.5 → 2.4.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tioelvis/next-template",
3
- "version": "2.4.5",
3
+ "version": "2.4.7",
4
4
  "description": "CLI to scaffold a Next.js + Tailwind project using shadcn/ui components",
5
5
  "type": "module",
6
6
  "bin": {
@@ -74,7 +74,6 @@
74
74
  "input-otp": "^1.4.2",
75
75
  "lucide-react": "^0.532.0",
76
76
  "next": "^15.4.4",
77
- "next-auth": "^4.24.11",
78
77
  "next-themes": "^0.4.6",
79
78
  "react": "^19.1.0",
80
79
  "react-day-picker": "^9.8.1",
@@ -9,8 +9,7 @@ const buttonVariants = cva(
9
9
  {
10
10
  variants: {
11
11
  variant: {
12
- default:
13
- "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
12
+ default: "bg-primary text-white shadow-xs hover:bg-primary/90",
14
13
  destructive:
15
14
  "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
16
15
  outline:
package/src/constants.js CHANGED
@@ -17,7 +17,6 @@ const DEPENDENCIES = [
17
17
  "date-fns",
18
18
  "lucide-react",
19
19
  "next",
20
- "next-auth",
21
20
  "next-themes",
22
21
  "react",
23
22
  "react-dom",
@@ -83,6 +82,7 @@ const COMPONENTS = [
83
82
  "textarea",
84
83
  "toggle",
85
84
  "toggle-group",
85
+ "tooltip",
86
86
  ];
87
87
 
88
88
  export {
package/src/main.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  import {
4
4
  copy_components,
@@ -176,24 +176,20 @@ process.on("SIGINT", () => on_cancel());
176
176
  return { title: e, value: e };
177
177
  }),
178
178
  },
179
+ {
180
+ type: "select",
181
+ name: "package_manager",
182
+ message: "Which package manager would you want to use?",
183
+ choices: [
184
+ { title: "npm", value: "npm" },
185
+ { title: "pnpm", value: "pnpm" },
186
+ ],
187
+ },
179
188
  ],
180
189
  { onCancel: on_cancel }
181
190
  );
182
191
 
183
- const { components } = responses;
184
-
185
- // Set package manager
186
- if (fs.existsSync(path.join(CWD, "package-lock.json")) === true) {
187
- package_manager = "npm";
188
- }
189
-
190
- if (fs.existsSync(path.join(CWD, "pnpm-lock.yaml")) === true) {
191
- package_manager = "pnpm";
192
- }
193
-
194
- if (package_manager === undefined) {
195
- throw new Error("Not package_manager found");
196
- }
192
+ const { components, package_manager } = responses;
197
193
 
198
194
  // Copying files
199
195
  DEST = path.resolve(CWD);