create-prisma 0.4.2-next.37.90.1 → 0.4.2-next.37.92.1
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/cli.mjs +1 -1
- package/dist/{create-DMLjT4OB.mjs → create-B0eFGNQ2.mjs} +37 -61
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/templates/create/astro/README.md.hbs +3 -3
- package/templates/create/elysia/README.md.hbs +3 -3
- package/templates/create/hono/README.md.hbs +3 -3
- package/templates/create/nest/README.md.hbs +3 -3
- package/templates/create/next/README.md.hbs +3 -3
- package/templates/create/nuxt/README.md.hbs +3 -3
- package/templates/create/svelte/README.md.hbs +3 -3
- package/templates/create/tanstack-start/README.md.hbs +3 -3
package/dist/cli.mjs
CHANGED
|
@@ -49,7 +49,7 @@ async function getAnonymousId() {
|
|
|
49
49
|
}
|
|
50
50
|
function getCommonProperties() {
|
|
51
51
|
return {
|
|
52
|
-
"cli-version": "0.4.2-next.37.
|
|
52
|
+
"cli-version": "0.4.2-next.37.92.1",
|
|
53
53
|
"node-version": process.version,
|
|
54
54
|
platform: process.platform,
|
|
55
55
|
arch: process.arch
|
|
@@ -150,30 +150,22 @@ function requiresDotenvConfigImport(packageManager) {
|
|
|
150
150
|
//#region src/constants/dependencies.ts
|
|
151
151
|
const dependencyVersionMap = {
|
|
152
152
|
"@elysiajs/node": "^1.4.5",
|
|
153
|
-
"@prisma-next/agent-skill": "0.0.1",
|
|
154
|
-
"@prisma-next/adapter-mongo": "0.8.0",
|
|
155
|
-
"@prisma-next/adapter-postgres": "0.8.0",
|
|
156
|
-
"@prisma-next/cli": "0.8.0",
|
|
157
|
-
"@prisma-next/contract": "0.8.0",
|
|
158
|
-
"@prisma-next/family-mongo": "0.8.0",
|
|
159
|
-
"@prisma-next/family-sql": "0.8.0",
|
|
160
|
-
"@prisma-next/mongo": "0.8.0",
|
|
161
|
-
"@prisma-next/mongo-contract": "0.8.0",
|
|
162
|
-
"@prisma-next/mongo-contract-ts": "0.8.0",
|
|
163
|
-
"@prisma-next/mongo-orm": "0.8.0",
|
|
164
|
-
"@prisma-next/postgres": "0.8.0",
|
|
165
|
-
"@prisma-next/sql-contract": "0.8.0",
|
|
166
|
-
"@prisma-next/sql-contract-ts": "0.8.0",
|
|
167
|
-
"@prisma-next/sql-orm-client": "0.8.0",
|
|
168
|
-
"@prisma-next/target-mongo": "0.8.0",
|
|
169
|
-
"@prisma-next/target-postgres": "0.8.0",
|
|
170
|
-
"@prisma-next/vite-plugin-contract-emit": "0.8.0",
|
|
171
153
|
"@types/node": "^25.6.2",
|
|
172
154
|
dotenv: "^17.4.2",
|
|
173
|
-
"prisma-next": "0.8.0",
|
|
174
155
|
skills: "1.5.7",
|
|
175
156
|
tsx: "^4.21.0"
|
|
176
157
|
};
|
|
158
|
+
const PRISMA_NEXT_PACKAGE_VERSION = "latest";
|
|
159
|
+
function isPrismaNextPackage(packageName) {
|
|
160
|
+
return packageName === "prisma-next" || packageName.startsWith("@prisma-next/");
|
|
161
|
+
}
|
|
162
|
+
function getPrismaNextPackageSpecifier(packageName) {
|
|
163
|
+
return `${packageName}@${PRISMA_NEXT_PACKAGE_VERSION}`;
|
|
164
|
+
}
|
|
165
|
+
function getDependencyVersion(packageName) {
|
|
166
|
+
if (isPrismaNextPackage(packageName)) return PRISMA_NEXT_PACKAGE_VERSION;
|
|
167
|
+
return dependencyVersionMap[packageName];
|
|
168
|
+
}
|
|
177
169
|
function usesViteDevServer(template) {
|
|
178
170
|
return template === "astro" || template === "nuxt" || template === "svelte" || template === "tanstack-start";
|
|
179
171
|
}
|
|
@@ -338,9 +330,9 @@ function getPackageManagerManifestValue(packageManager) {
|
|
|
338
330
|
}
|
|
339
331
|
function getDenoAllowedScriptSpecifiers() {
|
|
340
332
|
return [
|
|
341
|
-
`npm
|
|
342
|
-
`npm
|
|
343
|
-
`npm
|
|
333
|
+
`npm:${getPrismaNextPackageSpecifier("prisma-next")}`,
|
|
334
|
+
`npm:${getPrismaNextPackageSpecifier("@prisma-next/postgres")}`,
|
|
335
|
+
`npm:${getPrismaNextPackageSpecifier("@prisma-next/mongo")}`
|
|
344
336
|
].join(",");
|
|
345
337
|
}
|
|
346
338
|
function getInstallCommand(packageManager) {
|
|
@@ -611,7 +603,7 @@ function getDbPackages(provider, _packageManager) {
|
|
|
611
603
|
function getPrismaNextScriptMap(packageManager) {
|
|
612
604
|
const skillsSyncCommand = packageManager === "deno" ? `deno run -A npm:skills@${dependencyVersionMap.skills} experimental_sync --agent "*" -y` : "skills experimental_sync --agent \"*\" -y";
|
|
613
605
|
if (packageManager === "deno") {
|
|
614
|
-
const prismaNextCli = `deno run -A --env-file=.env npm
|
|
606
|
+
const prismaNextCli = `deno run -A --env-file=.env npm:${getPrismaNextPackageSpecifier("prisma-next")}`;
|
|
615
607
|
return {
|
|
616
608
|
"contract:emit": `${prismaNextCli} contract emit`,
|
|
617
609
|
"db:init": `${prismaNextCli} db init`,
|
|
@@ -619,7 +611,7 @@ function getPrismaNextScriptMap(packageManager) {
|
|
|
619
611
|
"db:verify": `${prismaNextCli} db verify`,
|
|
620
612
|
"db:seed": "deno run -A --env-file=.env prisma/seed.ts",
|
|
621
613
|
"migration:plan": `${prismaNextCli} migration plan`,
|
|
622
|
-
|
|
614
|
+
migrate: `${prismaNextCli} migrate`,
|
|
623
615
|
"migration:status": `${prismaNextCli} migration status`,
|
|
624
616
|
"migration:show": `${prismaNextCli} migration show`,
|
|
625
617
|
"skills:sync": skillsSyncCommand
|
|
@@ -634,7 +626,7 @@ function getPrismaNextScriptMap(packageManager) {
|
|
|
634
626
|
"db:verify": `${prismaNextCli} db verify`,
|
|
635
627
|
"db:seed": "bun prisma/seed.ts",
|
|
636
628
|
"migration:plan": `${prismaNextCli} migration plan`,
|
|
637
|
-
|
|
629
|
+
migrate: `${prismaNextCli} migrate`,
|
|
638
630
|
"migration:status": `${prismaNextCli} migration status`,
|
|
639
631
|
"migration:show": `${prismaNextCli} migration show`,
|
|
640
632
|
"skills:sync": skillsSyncCommand
|
|
@@ -647,15 +639,12 @@ function getPrismaNextScriptMap(packageManager) {
|
|
|
647
639
|
"db:verify": "prisma-next db verify",
|
|
648
640
|
"db:seed": "tsx prisma/seed.ts",
|
|
649
641
|
"migration:plan": "prisma-next migration plan",
|
|
650
|
-
|
|
642
|
+
migrate: "prisma-next migrate",
|
|
651
643
|
"migration:status": "prisma-next migration status",
|
|
652
644
|
"migration:show": "prisma-next migration show",
|
|
653
645
|
"skills:sync": skillsSyncCommand
|
|
654
646
|
};
|
|
655
647
|
}
|
|
656
|
-
function getVersion(packageName) {
|
|
657
|
-
return dependencyVersionMap[packageName];
|
|
658
|
-
}
|
|
659
648
|
function unique(items) {
|
|
660
649
|
return [...new Set(items)];
|
|
661
650
|
}
|
|
@@ -705,12 +694,12 @@ async function addPackageDependency(opts) {
|
|
|
705
694
|
if (!pkgJson.devDependencies) pkgJson.devDependencies = {};
|
|
706
695
|
if (!pkgJson.scripts) pkgJson.scripts = {};
|
|
707
696
|
for (const pkgName of unique(dependencies)) {
|
|
708
|
-
const version =
|
|
697
|
+
const version = getDependencyVersion(pkgName);
|
|
709
698
|
if (version) pkgJson.dependencies[pkgName] = version;
|
|
710
699
|
else console.warn(`Warning: Dependency ${pkgName} not found in version map.`);
|
|
711
700
|
}
|
|
712
701
|
for (const pkgName of unique(devDependencies)) {
|
|
713
|
-
const version =
|
|
702
|
+
const version = getDependencyVersion(pkgName);
|
|
714
703
|
if (version) pkgJson.devDependencies[pkgName] = version;
|
|
715
704
|
else console.warn(`Warning: Dev dependency ${pkgName} not found in version map.`);
|
|
716
705
|
}
|
|
@@ -1194,8 +1183,8 @@ async function writeDependenciesForContext(context, projectDir) {
|
|
|
1194
1183
|
return false;
|
|
1195
1184
|
}
|
|
1196
1185
|
}
|
|
1197
|
-
function
|
|
1198
|
-
return
|
|
1186
|
+
function getPrismaNextCliPackageSpecifier() {
|
|
1187
|
+
return getPrismaNextPackageSpecifier("prisma-next");
|
|
1199
1188
|
}
|
|
1200
1189
|
function getPrismaNextInitTarget(provider) {
|
|
1201
1190
|
return provider === "mongo" ? "mongodb" : "postgres";
|
|
@@ -1205,13 +1194,13 @@ function getPrismaNextInitCliArgs(packageManager, prismaNextArgs) {
|
|
|
1205
1194
|
command: "npx",
|
|
1206
1195
|
args: [
|
|
1207
1196
|
"--yes",
|
|
1208
|
-
|
|
1197
|
+
getPrismaNextCliPackageSpecifier(),
|
|
1209
1198
|
"init",
|
|
1210
1199
|
...prismaNextArgs
|
|
1211
1200
|
]
|
|
1212
1201
|
};
|
|
1213
1202
|
return getPackageExecutionArgs(packageManager, [
|
|
1214
|
-
|
|
1203
|
+
getPrismaNextCliPackageSpecifier(),
|
|
1215
1204
|
"init",
|
|
1216
1205
|
...prismaNextArgs
|
|
1217
1206
|
]);
|
|
@@ -1295,10 +1284,7 @@ function getSkillsSyncCliArgs(packageManager) {
|
|
|
1295
1284
|
]);
|
|
1296
1285
|
}
|
|
1297
1286
|
async function syncAgentSkillsForContext(context, projectDir) {
|
|
1298
|
-
if (!context.shouldInstall) return {
|
|
1299
|
-
didSyncAgentSkills: false,
|
|
1300
|
-
didSyncClaudeSkills: false
|
|
1301
|
-
};
|
|
1287
|
+
if (!context.shouldInstall) return { didSyncAgentSkills: false };
|
|
1302
1288
|
const claudeDirectory = await prepareClaudeSkillsDirectory(projectDir);
|
|
1303
1289
|
const syncCommand = getSkillsSyncCliCommand(context.packageManager);
|
|
1304
1290
|
if (context.verbose) log.step(`Running ${syncCommand}`);
|
|
@@ -1313,18 +1299,13 @@ async function syncAgentSkillsForContext(context, projectDir) {
|
|
|
1313
1299
|
}
|
|
1314
1300
|
});
|
|
1315
1301
|
if (context.verbose) log.success("Prisma Next agent skills synced.");
|
|
1316
|
-
return {
|
|
1317
|
-
didSyncAgentSkills: true,
|
|
1318
|
-
didSyncClaudeSkills: claudeDirectory.warning === void 0,
|
|
1319
|
-
warning: claudeDirectory.warning
|
|
1320
|
-
};
|
|
1302
|
+
return { didSyncAgentSkills: true };
|
|
1321
1303
|
} catch (error) {
|
|
1322
1304
|
if (context.verbose) log.warn("Could not sync Prisma Next agent skills.");
|
|
1323
1305
|
if (claudeDirectory.didCreateClaudeRoot) await removeEmptyClaudeSkillsDirectory(projectDir);
|
|
1324
1306
|
return {
|
|
1325
1307
|
didSyncAgentSkills: false,
|
|
1326
|
-
|
|
1327
|
-
warning: [claudeDirectory.warning, `Agent skill sync failed: ${getCommandErrorMessage(error)}`].filter(Boolean).join("\n")
|
|
1308
|
+
warning: `Agent skill sync failed: ${getCommandErrorMessage(error)}`
|
|
1328
1309
|
};
|
|
1329
1310
|
}
|
|
1330
1311
|
}
|
|
@@ -1334,11 +1315,8 @@ async function prepareClaudeSkillsDirectory(projectDir) {
|
|
|
1334
1315
|
try {
|
|
1335
1316
|
await fs.ensureDir(path.join(projectDir, CLAUDE_SKILLS_DIR));
|
|
1336
1317
|
return { didCreateClaudeRoot };
|
|
1337
|
-
} catch
|
|
1338
|
-
return {
|
|
1339
|
-
didCreateClaudeRoot: false,
|
|
1340
|
-
warning: `Could not prepare ${CLAUDE_SKILLS_DIR}: ${getCommandErrorMessage(error)}`
|
|
1341
|
-
};
|
|
1318
|
+
} catch {
|
|
1319
|
+
return { didCreateClaudeRoot: false };
|
|
1342
1320
|
}
|
|
1343
1321
|
}
|
|
1344
1322
|
async function removeEmptyClaudeSkillsDirectory(projectDir) {
|
|
@@ -1363,7 +1341,7 @@ async function finalizePrismaFilesForContext(context, projectDir, provisionResul
|
|
|
1363
1341
|
}
|
|
1364
1342
|
}
|
|
1365
1343
|
function getPrismaNextCliCommand(packageManager, prismaNextArgs) {
|
|
1366
|
-
if (packageManager === "deno") return `deno run -A --env-file=.env npm
|
|
1344
|
+
if (packageManager === "deno") return `deno run -A --env-file=.env npm:${getPrismaNextCliPackageSpecifier()} ${prismaNextArgs.join(" ")}`;
|
|
1367
1345
|
return getLocalPackageBinaryCommand(packageManager, "prisma-next", prismaNextArgs);
|
|
1368
1346
|
}
|
|
1369
1347
|
function getPrismaNextCliArgs(packageManager, prismaNextArgs) {
|
|
@@ -1373,7 +1351,7 @@ function getPrismaNextCliArgs(packageManager, prismaNextArgs) {
|
|
|
1373
1351
|
"run",
|
|
1374
1352
|
"-A",
|
|
1375
1353
|
"--env-file=.env",
|
|
1376
|
-
`npm
|
|
1354
|
+
`npm:${getPrismaNextCliPackageSpecifier()}`,
|
|
1377
1355
|
...prismaNextArgs
|
|
1378
1356
|
]
|
|
1379
1357
|
};
|
|
@@ -1438,7 +1416,7 @@ function buildNextStepsForContext(opts) {
|
|
|
1438
1416
|
description: "Compare the contract to the database and write a migration plan."
|
|
1439
1417
|
});
|
|
1440
1418
|
nextSteps.push({
|
|
1441
|
-
command: getRunScriptCommand(context.packageManager, "
|
|
1419
|
+
command: getRunScriptCommand(context.packageManager, "migrate"),
|
|
1442
1420
|
description: "Apply the planned migration to the database."
|
|
1443
1421
|
});
|
|
1444
1422
|
nextSteps.push({
|
|
@@ -1454,17 +1432,15 @@ function buildNextStepsForContext(opts) {
|
|
|
1454
1432
|
function formatNextSteps(nextSteps) {
|
|
1455
1433
|
return nextSteps.map((step) => `${step.command}\n ${step.description}`).join("\n\n");
|
|
1456
1434
|
}
|
|
1457
|
-
function formatAgentPrompt(didSyncAgentSkills
|
|
1458
|
-
|
|
1435
|
+
function formatAgentPrompt(didSyncAgentSkills) {
|
|
1436
|
+
return [
|
|
1459
1437
|
"Ask your agent:",
|
|
1460
1438
|
"What can I do with Prisma Next?",
|
|
1461
1439
|
"",
|
|
1462
1440
|
"Learn more:",
|
|
1463
1441
|
`Docs: prisma-next.md`,
|
|
1464
1442
|
`Skill: ${didSyncAgentSkills ? ".agents/skills/prisma-next/SKILL.md" : ".agents/skills/prisma-next/SKILL.md (after skills sync)"}`
|
|
1465
|
-
];
|
|
1466
|
-
if (didSyncClaudeSkills) promptLines.push(`Claude: .claude/skills/prisma-next/SKILL.md`);
|
|
1467
|
-
return promptLines.join("\n");
|
|
1443
|
+
].join("\n");
|
|
1468
1444
|
}
|
|
1469
1445
|
async function executePrismaSetupContext(context, options = {}) {
|
|
1470
1446
|
const projectDir = path.resolve(options.projectDir ?? context.projectDir);
|
|
@@ -1515,7 +1491,7 @@ async function executePrismaSetupContext(context, options = {}) {
|
|
|
1515
1491
|
});
|
|
1516
1492
|
progressSpinner?.stop("Prisma Next project ready.");
|
|
1517
1493
|
if (warningLines.length > 0) note(warningLines.map((line) => line.replace(/^- /, "")).join("\n"), "Heads up");
|
|
1518
|
-
note(formatAgentPrompt(skillSyncResult.didSyncAgentSkills
|
|
1494
|
+
note(formatAgentPrompt(skillSyncResult.didSyncAgentSkills), "Agent prompt");
|
|
1519
1495
|
if (context.verbose) note(formatNextSteps(nextSteps), "Next steps for Prisma Next");
|
|
1520
1496
|
outro("Prisma Next setup complete.");
|
|
1521
1497
|
return true;
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as DatabaseProviderSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as DatabaseUrlSchema, r as CreateCommandInputSchema, s as PackageManagerSchema, t as runCreateCommand } from "./create-
|
|
2
|
+
import { a as DatabaseProviderSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as DatabaseUrlSchema, r as CreateCommandInputSchema, s as PackageManagerSchema, t as runCreateCommand } from "./create-B0eFGNQ2.mjs";
|
|
3
3
|
import { os } from "@orpc/server";
|
|
4
4
|
import { createCli } from "trpc-cli";
|
|
5
5
|
|
|
6
6
|
//#region src/index.ts
|
|
7
|
-
const CLI_VERSION = "0.4.2-next.37.
|
|
7
|
+
const CLI_VERSION = "0.4.2-next.37.92.1";
|
|
8
8
|
const router = os.router({ create: os.meta({
|
|
9
9
|
description: "Create a new project with Prisma setup",
|
|
10
10
|
default: true,
|
package/package.json
CHANGED
|
@@ -25,17 +25,17 @@ Database helper scripts are added to `package.json`:
|
|
|
25
25
|
- `{{runScriptCommand packageManager "db:up"}}` - start the local MongoDB replica set
|
|
26
26
|
- `{{runScriptCommand packageManager "db:down"}}` - stop the local MongoDB replica set
|
|
27
27
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a MongoDB migration plan
|
|
28
|
-
- `{{runScriptCommand packageManager "
|
|
28
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply the planned MongoDB migration
|
|
29
29
|
{{else}}
|
|
30
30
|
- `{{runScriptCommand packageManager "db:init"}}` - initialize database state manually
|
|
31
31
|
- `{{runScriptCommand packageManager "db:update"}}` - update database state manually
|
|
32
32
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a migration plan
|
|
33
|
-
- `{{runScriptCommand packageManager "
|
|
33
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply a planned migration
|
|
34
34
|
{{/if}}
|
|
35
35
|
|
|
36
36
|
- `{{runScriptCommand packageManager "db:seed"}}` - insert sample users manually
|
|
37
37
|
|
|
38
|
-
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md
|
|
38
|
+
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md`.
|
|
39
39
|
The Astro Vite dev server also auto-emits Prisma Next contract artifacts when the contract changes.
|
|
40
40
|
|
|
41
41
|
Node-based Prisma Next projects expect Node.js 24 LTS or newer.
|
|
@@ -23,17 +23,17 @@ Database helper scripts are added to `package.json`:
|
|
|
23
23
|
- `{{runScriptCommand packageManager "db:up"}}` - start the local MongoDB replica set
|
|
24
24
|
- `{{runScriptCommand packageManager "db:down"}}` - stop the local MongoDB replica set
|
|
25
25
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a MongoDB migration plan
|
|
26
|
-
- `{{runScriptCommand packageManager "
|
|
26
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply the planned MongoDB migration
|
|
27
27
|
{{else}}
|
|
28
28
|
- `{{runScriptCommand packageManager "db:init"}}` - initialize database state manually
|
|
29
29
|
- `{{runScriptCommand packageManager "db:update"}}` - update database state manually
|
|
30
30
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a migration plan
|
|
31
|
-
- `{{runScriptCommand packageManager "
|
|
31
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply a planned migration
|
|
32
32
|
{{/if}}
|
|
33
33
|
|
|
34
34
|
- `{{runScriptCommand packageManager "db:seed"}}` - insert sample users manually
|
|
35
35
|
|
|
36
|
-
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md
|
|
36
|
+
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md`.
|
|
37
37
|
|
|
38
38
|
Node-based Prisma Next projects expect Node.js 24 LTS or newer.
|
|
39
39
|
|
|
@@ -23,17 +23,17 @@ Database helper scripts are added to `package.json`:
|
|
|
23
23
|
- `{{runScriptCommand packageManager "db:up"}}` - start the local MongoDB replica set
|
|
24
24
|
- `{{runScriptCommand packageManager "db:down"}}` - stop the local MongoDB replica set
|
|
25
25
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a MongoDB migration plan
|
|
26
|
-
- `{{runScriptCommand packageManager "
|
|
26
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply the planned MongoDB migration
|
|
27
27
|
{{else}}
|
|
28
28
|
- `{{runScriptCommand packageManager "db:init"}}` - initialize database state manually
|
|
29
29
|
- `{{runScriptCommand packageManager "db:update"}}` - update database state manually
|
|
30
30
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a migration plan
|
|
31
|
-
- `{{runScriptCommand packageManager "
|
|
31
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply a planned migration
|
|
32
32
|
{{/if}}
|
|
33
33
|
|
|
34
34
|
- `{{runScriptCommand packageManager "db:seed"}}` - insert sample users manually
|
|
35
35
|
|
|
36
|
-
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md
|
|
36
|
+
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md`.
|
|
37
37
|
|
|
38
38
|
Node-based Prisma Next projects expect Node.js 24 LTS or newer.
|
|
39
39
|
|
|
@@ -24,17 +24,17 @@ Database helper scripts are added to `package.json`:
|
|
|
24
24
|
- `{{runScriptCommand packageManager "db:up"}}` - start the local MongoDB replica set
|
|
25
25
|
- `{{runScriptCommand packageManager "db:down"}}` - stop the local MongoDB replica set
|
|
26
26
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a MongoDB migration plan
|
|
27
|
-
- `{{runScriptCommand packageManager "
|
|
27
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply the planned MongoDB migration
|
|
28
28
|
{{else}}
|
|
29
29
|
- `{{runScriptCommand packageManager "db:init"}}` - initialize database state manually
|
|
30
30
|
- `{{runScriptCommand packageManager "db:update"}}` - update database state manually
|
|
31
31
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a migration plan
|
|
32
|
-
- `{{runScriptCommand packageManager "
|
|
32
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply a planned migration
|
|
33
33
|
{{/if}}
|
|
34
34
|
|
|
35
35
|
- `{{runScriptCommand packageManager "db:seed"}}` - insert sample users manually
|
|
36
36
|
|
|
37
|
-
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md
|
|
37
|
+
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md`.
|
|
38
38
|
|
|
39
39
|
Node-based Prisma Next projects expect Node.js 24 LTS or newer.
|
|
40
40
|
|
|
@@ -23,17 +23,17 @@ Database helper scripts are added to `package.json`:
|
|
|
23
23
|
- `{{runScriptCommand packageManager "db:up"}}` - start the local MongoDB replica set
|
|
24
24
|
- `{{runScriptCommand packageManager "db:down"}}` - stop the local MongoDB replica set
|
|
25
25
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a MongoDB migration plan
|
|
26
|
-
- `{{runScriptCommand packageManager "
|
|
26
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply the planned MongoDB migration
|
|
27
27
|
{{else}}
|
|
28
28
|
- `{{runScriptCommand packageManager "db:init"}}` - initialize database state manually
|
|
29
29
|
- `{{runScriptCommand packageManager "db:update"}}` - update database state manually
|
|
30
30
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a migration plan
|
|
31
|
-
- `{{runScriptCommand packageManager "
|
|
31
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply a planned migration
|
|
32
32
|
{{/if}}
|
|
33
33
|
|
|
34
34
|
- `{{runScriptCommand packageManager "db:seed"}}` - insert sample users manually
|
|
35
35
|
|
|
36
|
-
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md
|
|
36
|
+
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md`.
|
|
37
37
|
|
|
38
38
|
Node-based Prisma Next projects expect Node.js 24 LTS or newer.
|
|
39
39
|
|
|
@@ -25,17 +25,17 @@ Database helper scripts are added to `package.json`:
|
|
|
25
25
|
- `{{runScriptCommand packageManager "db:up"}}` - start the local MongoDB replica set
|
|
26
26
|
- `{{runScriptCommand packageManager "db:down"}}` - stop the local MongoDB replica set
|
|
27
27
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a MongoDB migration plan
|
|
28
|
-
- `{{runScriptCommand packageManager "
|
|
28
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply the planned MongoDB migration
|
|
29
29
|
{{else}}
|
|
30
30
|
- `{{runScriptCommand packageManager "db:init"}}` - initialize database state manually
|
|
31
31
|
- `{{runScriptCommand packageManager "db:update"}}` - update database state manually
|
|
32
32
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a migration plan
|
|
33
|
-
- `{{runScriptCommand packageManager "
|
|
33
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply a planned migration
|
|
34
34
|
{{/if}}
|
|
35
35
|
|
|
36
36
|
- `{{runScriptCommand packageManager "db:seed"}}` - insert sample users manually
|
|
37
37
|
|
|
38
|
-
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md
|
|
38
|
+
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md`.
|
|
39
39
|
The Nuxt Vite dev server also auto-emits Prisma Next contract artifacts when the contract changes.
|
|
40
40
|
|
|
41
41
|
Node-based Prisma Next projects expect Node.js 24 LTS or newer.
|
|
@@ -24,17 +24,17 @@ Database helper scripts are added to `package.json`:
|
|
|
24
24
|
- `{{runScriptCommand packageManager "db:up"}}` - start the local MongoDB replica set
|
|
25
25
|
- `{{runScriptCommand packageManager "db:down"}}` - stop the local MongoDB replica set
|
|
26
26
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a MongoDB migration plan
|
|
27
|
-
- `{{runScriptCommand packageManager "
|
|
27
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply the planned MongoDB migration
|
|
28
28
|
{{else}}
|
|
29
29
|
- `{{runScriptCommand packageManager "db:init"}}` - initialize database state manually
|
|
30
30
|
- `{{runScriptCommand packageManager "db:update"}}` - update database state manually
|
|
31
31
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a migration plan
|
|
32
|
-
- `{{runScriptCommand packageManager "
|
|
32
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply a planned migration
|
|
33
33
|
{{/if}}
|
|
34
34
|
|
|
35
35
|
- `{{runScriptCommand packageManager "db:seed"}}` - insert sample users manually
|
|
36
36
|
|
|
37
|
-
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md
|
|
37
|
+
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md`.
|
|
38
38
|
The SvelteKit Vite dev server also auto-emits Prisma Next contract artifacts when the contract changes.
|
|
39
39
|
|
|
40
40
|
Node-based Prisma Next projects expect Node.js 24 LTS or newer.
|
|
@@ -24,17 +24,17 @@ Database helper scripts are added to `package.json`:
|
|
|
24
24
|
- `{{runScriptCommand packageManager "db:up"}}` - start the local MongoDB replica set
|
|
25
25
|
- `{{runScriptCommand packageManager "db:down"}}` - stop the local MongoDB replica set
|
|
26
26
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a MongoDB migration plan
|
|
27
|
-
- `{{runScriptCommand packageManager "
|
|
27
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply the planned MongoDB migration
|
|
28
28
|
{{else}}
|
|
29
29
|
- `{{runScriptCommand packageManager "db:init"}}` - initialize database state manually
|
|
30
30
|
- `{{runScriptCommand packageManager "db:update"}}` - update database state manually
|
|
31
31
|
- `{{runScriptCommand packageManager "migration:plan"}}` - create a migration plan
|
|
32
|
-
- `{{runScriptCommand packageManager "
|
|
32
|
+
- `{{runScriptCommand packageManager "migrate"}}` - apply a planned migration
|
|
33
33
|
{{/if}}
|
|
34
34
|
|
|
35
35
|
- `{{runScriptCommand packageManager "db:seed"}}` - insert sample users manually
|
|
36
36
|
|
|
37
|
-
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md
|
|
37
|
+
For provider-specific Prisma Next reference docs, see `prisma-next.md`. Agent-specific project guidance starts in `.agents/skills/prisma-next/SKILL.md`.
|
|
38
38
|
The TanStack Start Vite dev server also auto-emits Prisma Next contract artifacts when the contract changes.
|
|
39
39
|
|
|
40
40
|
Node-based Prisma Next projects expect Node.js 24 LTS or newer.
|