@mars-stack/cli 8.0.10 → 8.0.12
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 +1 -1
- package/template/scripts/seed.ts +5 -4
package/package.json
CHANGED
package/template/scripts/seed.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
// `prisma db seed`
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
|
|
1
|
+
// `prisma db seed` / Playwright webServer run this file with `tsx` under Node ESM.
|
|
2
|
+
// The `@db` alias works for Next/tsc but is not a valid package specifier for Node's
|
|
3
|
+
// resolver, so seed must import the generated client via a relative path (tsx resolves
|
|
4
|
+
// `client.js` to the emitted `client.ts`).
|
|
5
|
+
import { PrismaClient } from '../prisma/generated/prisma/client.js';
|
|
5
6
|
import { PrismaPg } from '@prisma/adapter-pg';
|
|
6
7
|
import { hashPassword } from '@mars-stack/core/auth/password-hash';
|
|
7
8
|
|