create-prisma 0.4.2-next.37.90.1 → 0.4.2-next.37.91.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-Bd-xQ87g.mjs} +10 -23
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/templates/create/astro/README.md.hbs +1 -1
- package/templates/create/elysia/README.md.hbs +1 -1
- package/templates/create/hono/README.md.hbs +1 -1
- package/templates/create/nest/README.md.hbs +1 -1
- package/templates/create/next/README.md.hbs +1 -1
- package/templates/create/nuxt/README.md.hbs +1 -1
- package/templates/create/svelte/README.md.hbs +1 -1
- package/templates/create/tanstack-start/README.md.hbs +1 -1
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.91.1",
|
|
53
53
|
"node-version": process.version,
|
|
54
54
|
platform: process.platform,
|
|
55
55
|
arch: process.arch
|
|
@@ -1295,10 +1295,7 @@ function getSkillsSyncCliArgs(packageManager) {
|
|
|
1295
1295
|
]);
|
|
1296
1296
|
}
|
|
1297
1297
|
async function syncAgentSkillsForContext(context, projectDir) {
|
|
1298
|
-
if (!context.shouldInstall) return {
|
|
1299
|
-
didSyncAgentSkills: false,
|
|
1300
|
-
didSyncClaudeSkills: false
|
|
1301
|
-
};
|
|
1298
|
+
if (!context.shouldInstall) return { didSyncAgentSkills: false };
|
|
1302
1299
|
const claudeDirectory = await prepareClaudeSkillsDirectory(projectDir);
|
|
1303
1300
|
const syncCommand = getSkillsSyncCliCommand(context.packageManager);
|
|
1304
1301
|
if (context.verbose) log.step(`Running ${syncCommand}`);
|
|
@@ -1313,18 +1310,13 @@ async function syncAgentSkillsForContext(context, projectDir) {
|
|
|
1313
1310
|
}
|
|
1314
1311
|
});
|
|
1315
1312
|
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
|
-
};
|
|
1313
|
+
return { didSyncAgentSkills: true };
|
|
1321
1314
|
} catch (error) {
|
|
1322
1315
|
if (context.verbose) log.warn("Could not sync Prisma Next agent skills.");
|
|
1323
1316
|
if (claudeDirectory.didCreateClaudeRoot) await removeEmptyClaudeSkillsDirectory(projectDir);
|
|
1324
1317
|
return {
|
|
1325
1318
|
didSyncAgentSkills: false,
|
|
1326
|
-
|
|
1327
|
-
warning: [claudeDirectory.warning, `Agent skill sync failed: ${getCommandErrorMessage(error)}`].filter(Boolean).join("\n")
|
|
1319
|
+
warning: `Agent skill sync failed: ${getCommandErrorMessage(error)}`
|
|
1328
1320
|
};
|
|
1329
1321
|
}
|
|
1330
1322
|
}
|
|
@@ -1334,11 +1326,8 @@ async function prepareClaudeSkillsDirectory(projectDir) {
|
|
|
1334
1326
|
try {
|
|
1335
1327
|
await fs.ensureDir(path.join(projectDir, CLAUDE_SKILLS_DIR));
|
|
1336
1328
|
return { didCreateClaudeRoot };
|
|
1337
|
-
} catch
|
|
1338
|
-
return {
|
|
1339
|
-
didCreateClaudeRoot: false,
|
|
1340
|
-
warning: `Could not prepare ${CLAUDE_SKILLS_DIR}: ${getCommandErrorMessage(error)}`
|
|
1341
|
-
};
|
|
1329
|
+
} catch {
|
|
1330
|
+
return { didCreateClaudeRoot: false };
|
|
1342
1331
|
}
|
|
1343
1332
|
}
|
|
1344
1333
|
async function removeEmptyClaudeSkillsDirectory(projectDir) {
|
|
@@ -1454,17 +1443,15 @@ function buildNextStepsForContext(opts) {
|
|
|
1454
1443
|
function formatNextSteps(nextSteps) {
|
|
1455
1444
|
return nextSteps.map((step) => `${step.command}\n ${step.description}`).join("\n\n");
|
|
1456
1445
|
}
|
|
1457
|
-
function formatAgentPrompt(didSyncAgentSkills
|
|
1458
|
-
|
|
1446
|
+
function formatAgentPrompt(didSyncAgentSkills) {
|
|
1447
|
+
return [
|
|
1459
1448
|
"Ask your agent:",
|
|
1460
1449
|
"What can I do with Prisma Next?",
|
|
1461
1450
|
"",
|
|
1462
1451
|
"Learn more:",
|
|
1463
1452
|
`Docs: prisma-next.md`,
|
|
1464
1453
|
`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");
|
|
1454
|
+
].join("\n");
|
|
1468
1455
|
}
|
|
1469
1456
|
async function executePrismaSetupContext(context, options = {}) {
|
|
1470
1457
|
const projectDir = path.resolve(options.projectDir ?? context.projectDir);
|
|
@@ -1515,7 +1502,7 @@ async function executePrismaSetupContext(context, options = {}) {
|
|
|
1515
1502
|
});
|
|
1516
1503
|
progressSpinner?.stop("Prisma Next project ready.");
|
|
1517
1504
|
if (warningLines.length > 0) note(warningLines.map((line) => line.replace(/^- /, "")).join("\n"), "Heads up");
|
|
1518
|
-
note(formatAgentPrompt(skillSyncResult.didSyncAgentSkills
|
|
1505
|
+
note(formatAgentPrompt(skillSyncResult.didSyncAgentSkills), "Agent prompt");
|
|
1519
1506
|
if (context.verbose) note(formatNextSteps(nextSteps), "Next steps for Prisma Next");
|
|
1520
1507
|
outro("Prisma Next setup complete.");
|
|
1521
1508
|
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-Bd-xQ87g.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.91.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
|
@@ -35,7 +35,7 @@ Database helper scripts are added to `package.json`:
|
|
|
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.
|
|
@@ -33,7 +33,7 @@ Database helper scripts are added to `package.json`:
|
|
|
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
|
|
|
@@ -33,7 +33,7 @@ Database helper scripts are added to `package.json`:
|
|
|
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
|
|
|
@@ -34,7 +34,7 @@ Database helper scripts are added to `package.json`:
|
|
|
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
|
|
|
@@ -33,7 +33,7 @@ Database helper scripts are added to `package.json`:
|
|
|
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
|
|
|
@@ -35,7 +35,7 @@ Database helper scripts are added to `package.json`:
|
|
|
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.
|
|
@@ -34,7 +34,7 @@ Database helper scripts are added to `package.json`:
|
|
|
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.
|
|
@@ -34,7 +34,7 @@ Database helper scripts are added to `package.json`:
|
|
|
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.
|