create-better-t-stack 1.0.3 → 1.0.5

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": "create-better-t-stack",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "CLI tool to scaffold Better-T Stack projects",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -6,7 +6,7 @@ import { db } from "../db";
6
6
 
7
7
  export const todoRouter = router({
8
8
  getAll: publicProcedure.query(async () => {
9
- return await db.select().from(todo).all();
9
+ return await db.select().from(todo);
10
10
  }),
11
11
 
12
12
  create: publicProcedure
@@ -17,8 +17,7 @@ export const todoRouter = router({
17
17
  .values({
18
18
  text: input.text,
19
19
  })
20
- .returning()
21
- .get();
20
+ .returning();
22
21
  }),
23
22
 
24
23
  toggle: publicProcedure
@@ -28,8 +27,7 @@ export const todoRouter = router({
28
27
  .update(todo)
29
28
  .set({ completed: input.completed })
30
29
  .where(eq(todo.id, input.id))
31
- .returning()
32
- .get();
30
+ .returning();
33
31
  }),
34
32
 
35
33
  delete: publicProcedure
@@ -38,7 +36,6 @@ export const todoRouter = router({
38
36
  return await db
39
37
  .delete(todo)
40
38
  .where(eq(todo.id, input.id))
41
- .returning()
42
- .get();
39
+ .returning();
43
40
  }),
44
41
  });
@@ -1,5 +1,6 @@
1
1
  generator client {
2
2
  provider = "prisma-client-js"
3
+ previewFeatures = ["prismaSchemaFolder"]
3
4
  }
4
5
 
5
6
  datasource db {