@codabytez/create-next-template 0.1.7 → 0.1.9

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/dist/index.js CHANGED
@@ -109,7 +109,7 @@ var BASE_DEV_DEPS = {
109
109
  // Code quality
110
110
  eslint: "^10.1.0",
111
111
  "eslint-config-next": "^16.2.0",
112
- "@eslint/eslintrc": "^3.3.5",
112
+ "typescript-eslint": "^8.57.1",
113
113
  prettier: "^3.8.1",
114
114
  "eslint-config-prettier": "^10.1.8",
115
115
  // Git hooks
@@ -459,10 +459,10 @@ async function main() {
459
459
  const packageManager = await p2.select({
460
460
  message: "Which package manager?",
461
461
  options: [
462
- { value: "npm", label: "npm" },
463
462
  { value: "pnpm", label: "pnpm" },
464
463
  { value: "yarn", label: "yarn" },
465
- { value: "bun", label: "bun" }
464
+ { value: "bun", label: "bun" },
465
+ { value: "npm", label: "npm" }
466
466
  ]
467
467
  });
468
468
  if (p2.isCancel(packageManager)) {
@@ -485,9 +485,21 @@ async function main() {
485
485
  },
486
486
  { value: "extraIcons", label: "Extra Icons", hint: "iconsax-reactjs" },
487
487
  { value: "auth", label: "Auth", hint: "Clerk" },
488
- { value: "prisma", label: "Database \u2014 Prisma", hint: "Prisma + PostgreSQL" },
489
- { value: "convex", label: "Database \u2014 Convex", hint: "Convex real-time backend" },
490
- { value: "appwrite", label: "Database \u2014 Appwrite", hint: "Appwrite BaaS" },
488
+ {
489
+ value: "prisma",
490
+ label: "Database \u2014 Prisma",
491
+ hint: "Prisma + PostgreSQL"
492
+ },
493
+ {
494
+ value: "convex",
495
+ label: "Database \u2014 Convex",
496
+ hint: "Convex real-time backend"
497
+ },
498
+ {
499
+ value: "appwrite",
500
+ label: "Database \u2014 Appwrite",
501
+ hint: "Appwrite BaaS"
502
+ },
491
503
  { value: "ui", label: "UI Components", hint: "shadcn/ui" }
492
504
  ],
493
505
  required: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codabytez/create-next-template",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "CLI to scaffold Next.js projects with your preferred stack",
5
5
  "bin": {
6
6
  "create-next-template": "./dist/index.js"
@@ -1,17 +1,14 @@
1
- import { dirname } from "path";
2
- import { fileURLToPath } from "url";
3
- import { FlatCompat } from "@eslint/eslintrc";
1
+ import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
4
2
  import eslintConfigPrettier from "eslint-config-prettier";
5
-
6
- const __filename = fileURLToPath(import.meta.url);
7
- const __dirname = dirname(__filename);
8
-
9
- const compat = new FlatCompat({ baseDirectory: __dirname });
3
+ import tseslint from "typescript-eslint";
10
4
 
11
5
  const eslintConfig = [
12
- ...compat.extends("next/core-web-vitals", "next/typescript"),
6
+ ...nextCoreWebVitals,
13
7
  eslintConfigPrettier,
14
8
  {
9
+ plugins: {
10
+ "@typescript-eslint": tseslint.plugin,
11
+ },
15
12
  rules: {
16
13
  "no-console": ["error", { allow: ["warn", "error"] }],
17
14
  "no-debugger": "error",