create-stackkit-app 0.4.2 → 0.4.3

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 (59) hide show
  1. package/README.md +1 -0
  2. package/bin/create-stackkit.js +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/lib/create-project.js +329 -143
  5. package/dist/lib/template-composer.js +21 -21
  6. package/modules/auth/better-auth-express/adapters/mongoose-mongodb.ts +3 -3
  7. package/modules/auth/better-auth-express/adapters/prisma-mongodb.ts +4 -4
  8. package/modules/auth/better-auth-express/adapters/prisma-postgresql.ts +4 -4
  9. package/modules/auth/better-auth-express/files/lib/auth.ts +1 -1
  10. package/modules/auth/better-auth-express/files/routes/auth.ts +3 -3
  11. package/modules/auth/better-auth-nextjs/adapters/mongoose-mongodb.ts +3 -3
  12. package/modules/auth/better-auth-nextjs/adapters/prisma-mongodb.ts +4 -4
  13. package/modules/auth/better-auth-nextjs/adapters/prisma-postgresql.ts +4 -4
  14. package/modules/auth/better-auth-nextjs/files/api/auth/[...all]/route.ts +2 -3
  15. package/modules/auth/better-auth-nextjs/files/lib/auth.ts +4 -4
  16. package/modules/auth/better-auth-react/files/lib/auth-client.ts +2 -2
  17. package/modules/auth/clerk-express/files/lib/auth.ts +1 -1
  18. package/modules/auth/clerk-nextjs/files/lib/auth-provider.tsx +1 -1
  19. package/modules/auth/clerk-nextjs/files/middleware.ts +3 -3
  20. package/modules/auth/clerk-react/files/lib/auth-provider.tsx +2 -2
  21. package/modules/database/mongoose-mongodb/files/lib/db.ts +3 -3
  22. package/modules/database/prisma-mongodb/files/lib/db.ts +2 -2
  23. package/modules/database/prisma-postgresql/files/lib/db.ts +2 -2
  24. package/package.json +8 -3
  25. package/templates/express/package.json +1 -0
  26. package/templates/express/src/app.ts +17 -15
  27. package/templates/express/src/config/env.ts +8 -8
  28. package/templates/express/src/middlewares/error.middleware.ts +3 -3
  29. package/templates/express/src/server.ts +2 -2
  30. package/templates/express/template.json +38 -1
  31. package/templates/express/tsconfig.json +17 -0
  32. package/templates/nextjs/app/layout.tsx +1 -5
  33. package/templates/nextjs/app/page.tsx +26 -34
  34. package/templates/nextjs/package.json +2 -1
  35. package/templates/nextjs/template.json +13 -1
  36. package/templates/react-vite/eslint.config.js +9 -9
  37. package/templates/react-vite/package.json +1 -2
  38. package/templates/react-vite/src/api/client.ts +16 -16
  39. package/templates/react-vite/src/api/services/user.service.ts +2 -10
  40. package/templates/react-vite/src/components/ErrorBoundary.tsx +4 -4
  41. package/templates/react-vite/src/components/Layout.tsx +1 -1
  42. package/templates/react-vite/src/components/Loading.tsx +1 -1
  43. package/templates/react-vite/src/components/SEO.tsx +5 -5
  44. package/templates/react-vite/src/config/constants.ts +3 -3
  45. package/templates/react-vite/src/hooks/index.ts +5 -5
  46. package/templates/react-vite/src/lib/queryClient.ts +2 -2
  47. package/templates/react-vite/src/main.tsx +12 -12
  48. package/templates/react-vite/src/pages/About.tsx +6 -2
  49. package/templates/react-vite/src/pages/Home.tsx +8 -4
  50. package/templates/react-vite/src/pages/NotFound.tsx +2 -2
  51. package/templates/react-vite/src/pages/UserProfile.tsx +6 -6
  52. package/templates/react-vite/src/router.tsx +13 -13
  53. package/templates/react-vite/src/types/{api.ts → api.d.ts} +6 -6
  54. package/templates/react-vite/src/types/user.d.ts +6 -0
  55. package/templates/react-vite/src/utils/helpers.ts +11 -11
  56. package/templates/react-vite/src/utils/storage.ts +4 -4
  57. package/templates/react-vite/template.json +26 -0
  58. package/templates/react-vite/tsconfig.json +1 -4
  59. package/templates/react-vite/vite.config.ts +5 -5
package/README.md CHANGED
@@ -9,6 +9,7 @@ npx create-stackkit-app my-app
9
9
  ```
10
10
 
11
11
  Interactive wizard helps you choose:
12
+
12
13
  - **Framework**: Next.js, Express, or React + Vite
13
14
  - **Database**: Prisma (PostgreSQL/MongoDB), Mongoose (MongoDB)
14
15
  - **Authentication**: Better Auth, Clerk
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- require('../dist/index.js');
2
+ require("../dist/index.js");
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ async function main() {
9
9
  await (0, create_project_1.createProject)(projectName);
10
10
  }
11
11
  catch (error) {
12
- console.error('Error:', error.message);
12
+ console.error("Error:", error.message);
13
13
  process.exit(1);
14
14
  }
15
15
  }