Skip to content

Commit 32354bb

Browse files
Marve10sclaude
andcommitted
fix(templates): fix 7 type-check bugs in NestJS/AdonisJS/Elysia/Drizzle templates
- NestJS tsconfig: add experimentalDecorators + emitDecoratorMetadata - NestJS: guard AI, oRPC, tRPC files behind feature-flag conditionals - NestJS: rename unused `res` → `_res` to satisfy noUnusedLocals - AdonisJS: replace router.options() with router.route() (method doesn't exist) - AdonisJS: fix better-auth handler to 2-arg (req, res) signature - Elysia: remove unused `const app` variable - Drizzle: use ./schema/index.js imports (works with both bundler and node16) - Drizzle: add .js extension to auth barrel re-export - Update 30 template snapshots and add batch 3 combo ledgers (30 combos, all PASS) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 82ea918 commit 32354bb

23 files changed

Lines changed: 45111 additions & 44544 deletions

File tree

apps/cli/test/__snapshots__/template-snapshots.test.ts.snap

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ export default defineConfig({
12671267
{
12681268
"content":
12691269
"import { env } from "@snapshot-tanstack-router-minimal/env/server";
1270-
import * as schema from "./schema";
1270+
import * as schema from "./schema/index.js";
12711271
import { drizzle } from "drizzle-orm/libsql";
12721272
import { createClient } from "@libsql/client";
12731273

@@ -1967,7 +1967,7 @@ export default defineConfig({
19671967
{
19681968
"content":
19691969
"import { env } from "@snapshot-next-self-fullstack/env/server";
1970-
import * as schema from "./schema";
1970+
import * as schema from "./schema/index.js";
19711971

19721972
import { drizzle } from "drizzle-orm/node-postgres";
19731973

@@ -2078,7 +2078,7 @@ export const accountRelations = relations(account, ({ one }) => ({
20782078
},
20792079
{
20802080
"content":
2081-
"export * from "./auth";
2081+
"export * from "./auth.js";
20822082
export {};"
20832083
,
20842084
"path": "packages/db/src/schema/index.ts",
@@ -2499,7 +2499,7 @@ export default defineConfig({
24992499
{
25002500
"content":
25012501
"import { env } from "@snapshot-astro-react-integration/env/server";
2502-
import * as schema from "./schema";
2502+
import * as schema from "./schema/index.js";
25032503
import { drizzle } from "drizzle-orm/libsql";
25042504
import { createClient } from "@libsql/client";
25052505

@@ -2999,7 +2999,7 @@ export default defineConfig({
29992999
{
30003000
"content":
30013001
"import { env } from "@snapshot-nuxt-standalone/env/server";
3002-
import * as schema from "./schema";
3002+
import * as schema from "./schema/index.js";
30033003
import { drizzle } from "drizzle-orm/libsql";
30043004
import { createClient } from "@libsql/client";
30053005

@@ -4525,7 +4525,7 @@ export default defineConfig({
45254525
{
45264526
"content":
45274527
"import { env } from "@snapshot-hono-bun-orpc/env/server";
4528-
import * as schema from "./schema";
4528+
import * as schema from "./schema/index.js";
45294529
import { drizzle } from "drizzle-orm/libsql";
45304530
import { createClient } from "@libsql/client";
45314531

@@ -5418,7 +5418,7 @@ export default defineConfig({
54185418
{
54195419
"content":
54205420
"import { env } from "@snapshot-better-auth-full/env/server";
5421-
import * as schema from "./schema";
5421+
import * as schema from "./schema/index.js";
54225422

54235423
import { drizzle } from "drizzle-orm/node-postgres";
54245424

@@ -5529,7 +5529,7 @@ export const accountRelations = relations(account, ({ one }) => ({
55295529
},
55305530
{
55315531
"content":
5532-
"export * from "./auth";
5532+
"export * from "./auth.js";
55335533
export {};"
55345534
,
55355535
"path": "packages/db/src/schema/index.ts",
@@ -8642,7 +8642,7 @@ export default defineConfig({
86428642
{
86438643
"content":
86448644
"import { env } from "@snapshot-native-react-native/env/server";
8645-
import * as schema from "./schema";
8645+
import * as schema from "./schema/index.js";
86468646
import { drizzle } from "drizzle-orm/libsql";
86478647
import { createClient } from "@libsql/client";
86488648

0 commit comments

Comments
 (0)