create-prisma 0.7.0 → 0.7.1-pr.50.153.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 +4 -6
- package/dist/index.d.mts +20 -24
- package/dist/index.mjs +2 -26
- package/dist/{create-DGKeNID3.mjs → src-Cwd8l6EX.mjs} +89 -80
- package/package.json +17 -17
- package/templates/create/astro/astro.config.mjs.hbs +5 -0
- package/templates/create/astro/package.json.hbs +5 -5
- package/templates/create/astro/pnpm-workspace.yaml.hbs +9 -0
- package/templates/create/astro/prisma.compute.ts.hbs +1 -0
- package/templates/create/elysia/.yarnrc.yml.hbs +3 -0
- package/templates/create/elysia/package.json.hbs +3 -3
- package/templates/create/elysia/pnpm-workspace.yaml.hbs +9 -0
- package/templates/create/elysia/tsconfig.json +1 -0
- package/templates/create/hono/package.json.hbs +4 -4
- package/templates/create/hono/pnpm-workspace.yaml.hbs +9 -0
- package/templates/create/hono/tsconfig.json +1 -0
- package/templates/create/nest/package.json.hbs +5 -5
- package/templates/create/nest/pnpm-workspace.yaml.hbs +9 -0
- package/templates/create/nest/prisma.compute.ts.hbs +1 -0
- package/templates/create/nest/src/main.ts.hbs +1 -1
- package/templates/create/nest/tsconfig.json +2 -0
- package/templates/create/next/package.json.hbs +10 -10
- package/templates/create/next/pnpm-workspace.yaml.hbs +9 -0
- package/templates/create/next/src/app/page.tsx.hbs +0 -3
- package/templates/create/nuxt/package.json.hbs +7 -6
- package/templates/create/nuxt/pnpm-workspace.yaml.hbs +9 -0
- package/templates/create/svelte/package.json.hbs +9 -9
- package/templates/create/svelte/pnpm-workspace.yaml.hbs +9 -0
- package/templates/create/tanstack-start/package.json.hbs +12 -13
- package/templates/create/tanstack-start/pnpm-workspace.yaml.hbs +9 -0
- package/templates/create/tanstack-start/src/routes/index.tsx.hbs +2 -0
- package/templates/create/tanstack-start/tsconfig.json +1 -2
- package/templates/create/turborepo/apps/api/package.json.hbs +4 -4
- package/templates/create/turborepo/apps/api/tsconfig.json +1 -0
- package/templates/create/turborepo/package.json.hbs +1 -1
- package/templates/create/turborepo/packages/db/package.json.hbs +3 -3
- package/templates/create/turborepo/packages/db/tsconfig.json +1 -0
- package/templates/create/turborepo/pnpm-workspace.yaml +8 -0
package/dist/cli.mjs
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./
|
|
3
|
-
import { createCreatePrismaCli } from "./index.mjs";
|
|
4
|
-
|
|
2
|
+
import { n as createCreatePrismaCli } from "./src-Cwd8l6EX.mjs";
|
|
5
3
|
//#region src/cli.ts
|
|
6
|
-
createCreatePrismaCli().run();
|
|
7
|
-
|
|
4
|
+
await createCreatePrismaCli().run({ formatError: (error) => error instanceof Error ? error.message : String(error) });
|
|
5
|
+
if (process.exitCode && process.exitCode !== 0) process.exit(process.exitCode);
|
|
8
6
|
//#endregion
|
|
9
|
-
export {
|
|
7
|
+
export {};
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import * as _orpc_server0 from "@orpc/server";
|
|
3
|
-
import * as trpc_cli0 from "trpc-cli";
|
|
4
|
-
import * as zod from "zod";
|
|
5
2
|
import { z } from "zod";
|
|
6
|
-
import * as zod_v4_core0 from "zod/v4/core";
|
|
7
3
|
|
|
8
4
|
//#region node_modules/@orpc/client/dist/index.d.mts
|
|
9
5
|
declare const COMMON_ORPC_ERROR_DEFS: {
|
|
@@ -255,34 +251,34 @@ type CreateCommandInput = z.infer<typeof CreateCommandInputSchema>;
|
|
|
255
251
|
//#endregion
|
|
256
252
|
//#region src/index.d.ts
|
|
257
253
|
declare const router: {
|
|
258
|
-
create:
|
|
259
|
-
yes: zod.ZodOptional<zod.ZodBoolean>;
|
|
260
|
-
verbose: zod.ZodOptional<zod.ZodBoolean>;
|
|
261
|
-
provider: zod.ZodOptional<zod.ZodEnum<{
|
|
254
|
+
create: import("@orpc/server").Procedure<import("@orpc/server").MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, import("zod").ZodOptional<import("zod").ZodObject<{
|
|
255
|
+
yes: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
256
|
+
verbose: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
257
|
+
provider: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
262
258
|
postgresql: "postgresql";
|
|
263
259
|
mysql: "mysql";
|
|
264
260
|
sqlite: "sqlite";
|
|
265
261
|
sqlserver: "sqlserver";
|
|
266
262
|
cockroachdb: "cockroachdb";
|
|
267
263
|
}>>;
|
|
268
|
-
packageManager: zod.ZodOptional<zod.ZodEnum<{
|
|
264
|
+
packageManager: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
269
265
|
npm: "npm";
|
|
270
266
|
pnpm: "pnpm";
|
|
271
267
|
yarn: "yarn";
|
|
272
268
|
bun: "bun";
|
|
273
269
|
deno: "deno";
|
|
274
270
|
}>>;
|
|
275
|
-
prismaPostgres: zod.ZodOptional<zod.ZodBoolean>;
|
|
276
|
-
databaseUrl: zod.ZodOptional<zod.ZodString>;
|
|
277
|
-
install: zod.ZodOptional<zod.ZodBoolean>;
|
|
278
|
-
generate: zod.ZodOptional<zod.ZodBoolean>;
|
|
279
|
-
migrateAndSeed: zod.ZodOptional<zod.ZodBoolean>;
|
|
280
|
-
schemaPreset: zod.ZodOptional<zod.ZodEnum<{
|
|
271
|
+
prismaPostgres: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
272
|
+
databaseUrl: import("zod").ZodOptional<import("zod").ZodString>;
|
|
273
|
+
install: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
274
|
+
generate: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
275
|
+
migrateAndSeed: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
276
|
+
schemaPreset: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
281
277
|
empty: "empty";
|
|
282
278
|
basic: "basic";
|
|
283
279
|
}>>;
|
|
284
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
285
|
-
template: zod.ZodOptional<zod.ZodEnum<{
|
|
280
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
281
|
+
template: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
286
282
|
hono: "hono";
|
|
287
283
|
elysia: "elysia";
|
|
288
284
|
nest: "nest";
|
|
@@ -293,14 +289,14 @@ declare const router: {
|
|
|
293
289
|
"tanstack-start": "tanstack-start";
|
|
294
290
|
turborepo: "turborepo";
|
|
295
291
|
}>>;
|
|
296
|
-
skills: zod.ZodOptional<zod.ZodBoolean>;
|
|
297
|
-
mcp: zod.ZodOptional<zod.ZodBoolean>;
|
|
298
|
-
extension: zod.ZodOptional<zod.ZodBoolean>;
|
|
299
|
-
deploy: zod.ZodOptional<zod.ZodBoolean>;
|
|
300
|
-
force: zod.ZodOptional<zod.ZodBoolean>;
|
|
301
|
-
},
|
|
292
|
+
skills: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
293
|
+
mcp: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
294
|
+
extension: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
295
|
+
deploy: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
296
|
+
force: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
297
|
+
}, import("zod/v4/core").$strip>>, Schema<void, void>, MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
|
|
302
298
|
};
|
|
303
|
-
declare function createCreatePrismaCli():
|
|
299
|
+
declare function createCreatePrismaCli(): import("trpc-cli").TrpcCli;
|
|
304
300
|
declare function create(input?: CreateCommandInput): Promise<void>;
|
|
305
301
|
//#endregion
|
|
306
302
|
export { type CreateCommandInput, CreateCommandInputSchema, CreateTemplateSchema, DatabaseProviderSchema, DatabaseUrlSchema, PackageManagerSchema, SchemaPresetSchema, create, createCreatePrismaCli, router };
|
package/dist/index.mjs
CHANGED
|
@@ -1,27 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as
|
|
3
|
-
|
|
4
|
-
import { createCli } from "trpc-cli";
|
|
5
|
-
|
|
6
|
-
//#region src/index.ts
|
|
7
|
-
const CLI_VERSION = "0.7.0";
|
|
8
|
-
const router = os.router({ create: os.meta({
|
|
9
|
-
description: "Create a new project with Prisma setup",
|
|
10
|
-
default: true,
|
|
11
|
-
negateBooleans: true
|
|
12
|
-
}).input(CreateCommandInputSchema.optional()).handler(async ({ input }) => {
|
|
13
|
-
await runCreateCommand(input ?? {});
|
|
14
|
-
}) });
|
|
15
|
-
function createCreatePrismaCli() {
|
|
16
|
-
return createCli({
|
|
17
|
-
router,
|
|
18
|
-
name: "create-prisma",
|
|
19
|
-
version: CLI_VERSION
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
async function create(input = {}) {
|
|
23
|
-
await runCreateCommand(input);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
export { CreateCommandInputSchema, CreateTemplateSchema, DatabaseProviderSchema, DatabaseUrlSchema, PackageManagerSchema, SchemaPresetSchema, create, createCreatePrismaCli, router };
|
|
2
|
+
import { a as CreateTemplateSchema, c as PackageManagerSchema, i as CreateCommandInputSchema, l as SchemaPresetSchema, n as createCreatePrismaCli, o as DatabaseProviderSchema, r as router, s as DatabaseUrlSchema, t as create } from "./src-Cwd8l6EX.mjs";
|
|
3
|
+
export { CreateCommandInputSchema, CreateTemplateSchema, DatabaseProviderSchema, DatabaseUrlSchema, PackageManagerSchema, SchemaPresetSchema, create, createCreatePrismaCli, router };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { os } from "@orpc/server";
|
|
3
|
+
import { createCli } from "trpc-cli";
|
|
2
4
|
import { cancel, confirm, intro, isCancel, log, multiselect, outro, select, spinner, text } from "@clack/prompts";
|
|
3
5
|
import fs from "fs-extra";
|
|
4
6
|
import path from "node:path";
|
|
@@ -8,10 +10,9 @@ import { fileURLToPath } from "node:url";
|
|
|
8
10
|
import { z } from "zod";
|
|
9
11
|
import { execa } from "execa";
|
|
10
12
|
import { randomUUID } from "node:crypto";
|
|
11
|
-
import os from "node:os";
|
|
13
|
+
import os$1 from "node:os";
|
|
12
14
|
import { PostHog } from "posthog-node";
|
|
13
15
|
import { styleText } from "node:util";
|
|
14
|
-
|
|
15
16
|
//#region src/utils/runtime.ts
|
|
16
17
|
function usesNodeStyleRuntime(packageManager) {
|
|
17
18
|
return packageManager !== void 0 && packageManager !== "bun" && packageManager !== "deno";
|
|
@@ -22,24 +23,23 @@ function requiresDotenvConfigImport(packageManager) {
|
|
|
22
23
|
function requiresPrismaConfigDotenvImport(packageManager) {
|
|
23
24
|
return packageManager !== "deno";
|
|
24
25
|
}
|
|
25
|
-
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/constants/dependencies.ts
|
|
28
28
|
const dependencyVersionMap = {
|
|
29
29
|
"@elysiajs/node": "^1.4.5",
|
|
30
|
-
"@libsql/client": "^0.17.
|
|
30
|
+
"@libsql/client": "^0.17.4",
|
|
31
31
|
"@prisma/client": "^7.8.0",
|
|
32
32
|
"@prisma/adapter-pg": "^7.8.0",
|
|
33
33
|
"@prisma/adapter-libsql": "^7.8.0",
|
|
34
34
|
"@prisma/adapter-mariadb": "^7.8.0",
|
|
35
35
|
"@prisma/adapter-mssql": "^7.8.0",
|
|
36
36
|
"@prisma/compute-sdk": "latest",
|
|
37
|
-
"@types/node": "^
|
|
38
|
-
dotenv: "^17.2
|
|
37
|
+
"@types/node": "^26.0.0",
|
|
38
|
+
dotenv: "^17.4.2",
|
|
39
39
|
prisma: "^7.8.0",
|
|
40
|
-
tsx: "^4.
|
|
40
|
+
tsx: "^4.22.4"
|
|
41
41
|
};
|
|
42
|
-
const computeConfigTemplates = new Set([
|
|
42
|
+
const computeConfigTemplates = /* @__PURE__ */ new Set([
|
|
43
43
|
"hono",
|
|
44
44
|
"elysia",
|
|
45
45
|
"nest",
|
|
@@ -80,7 +80,6 @@ function getCreateTemplateDependencies(template, packageManager) {
|
|
|
80
80
|
});
|
|
81
81
|
return targets;
|
|
82
82
|
}
|
|
83
|
-
|
|
84
83
|
//#endregion
|
|
85
84
|
//#region src/types.ts
|
|
86
85
|
const databaseProviders = [
|
|
@@ -132,10 +131,10 @@ const DatabaseProviderSchema = z.enum(databaseProviders);
|
|
|
132
131
|
const PackageManagerSchema = z.enum(packageManagers);
|
|
133
132
|
const SchemaPresetSchema = z.enum(schemaPresets);
|
|
134
133
|
const CreateTemplateSchema = z.enum(createTemplates);
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
z.enum(createAddons);
|
|
135
|
+
z.enum(addonInstallScopes);
|
|
136
|
+
z.enum(extensionTargets);
|
|
137
|
+
z.enum(prismaSkillNames);
|
|
139
138
|
const DatabaseUrlSchema = z.string().trim().min(1, "Please enter a valid database URL");
|
|
140
139
|
const CommonCommandOptionsSchema = z.object({
|
|
141
140
|
yes: z.boolean().optional().describe("Skip prompts and accept default choices"),
|
|
@@ -161,7 +160,7 @@ const CreateScaffoldOptionsSchema = z.object({
|
|
|
161
160
|
deploy: z.boolean().optional().describe("Deploy the scaffolded project to Prisma Compute"),
|
|
162
161
|
force: z.boolean().optional().describe("Allow scaffolding into a non-empty target directory")
|
|
163
162
|
});
|
|
164
|
-
const COMPUTE_DEPLOYABLE_TEMPLATES = new Set([
|
|
163
|
+
const COMPUTE_DEPLOYABLE_TEMPLATES = /* @__PURE__ */ new Set([
|
|
165
164
|
"hono",
|
|
166
165
|
"elysia",
|
|
167
166
|
"nest",
|
|
@@ -175,14 +174,13 @@ function isComputeDeployableTemplate(template) {
|
|
|
175
174
|
return COMPUTE_DEPLOYABLE_TEMPLATES.has(template);
|
|
176
175
|
}
|
|
177
176
|
const CreateCommandInputSchema = PrismaSetupCommandInputSchema.extend(CreateScaffoldOptionsSchema.shape);
|
|
178
|
-
|
|
179
177
|
//#endregion
|
|
180
178
|
//#region src/utils/package-manager.ts
|
|
181
179
|
const packageManagerManifestValues = {
|
|
182
|
-
npm: "npm@
|
|
183
|
-
pnpm: "pnpm@
|
|
184
|
-
yarn: "yarn@4.
|
|
185
|
-
bun: "bun@1.3.
|
|
180
|
+
npm: "npm@11.17.0",
|
|
181
|
+
pnpm: "pnpm@11.8.0",
|
|
182
|
+
yarn: "yarn@4.17.0",
|
|
183
|
+
bun: "bun@1.3.14"
|
|
186
184
|
};
|
|
187
185
|
function parseUserAgent(userAgent) {
|
|
188
186
|
if (userAgent?.startsWith("pnpm")) return "pnpm";
|
|
@@ -278,6 +276,30 @@ function getRunScriptCommand(packageManager, scriptName) {
|
|
|
278
276
|
default: return `npm run ${scriptName}`;
|
|
279
277
|
}
|
|
280
278
|
}
|
|
279
|
+
function getRunScriptArgs(packageManager, scriptName) {
|
|
280
|
+
switch (packageManager) {
|
|
281
|
+
case "deno": return {
|
|
282
|
+
command: "deno",
|
|
283
|
+
args: ["task", scriptName]
|
|
284
|
+
};
|
|
285
|
+
case "bun": return {
|
|
286
|
+
command: "bun",
|
|
287
|
+
args: ["run", scriptName]
|
|
288
|
+
};
|
|
289
|
+
case "pnpm": return {
|
|
290
|
+
command: "pnpm",
|
|
291
|
+
args: ["run", scriptName]
|
|
292
|
+
};
|
|
293
|
+
case "yarn": return {
|
|
294
|
+
command: "yarn",
|
|
295
|
+
args: ["run", scriptName]
|
|
296
|
+
};
|
|
297
|
+
default: return {
|
|
298
|
+
command: "npm",
|
|
299
|
+
args: ["run", scriptName]
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
}
|
|
281
303
|
function getRunScriptInDirectoryCommand(packageManager, directory, scriptName) {
|
|
282
304
|
switch (packageManager) {
|
|
283
305
|
case "deno": return `deno task --cwd ${directory} ${scriptName}`;
|
|
@@ -415,11 +437,6 @@ function getPrismaCliArgs(packageManager, prismaArgs) {
|
|
|
415
437
|
};
|
|
416
438
|
return getPackageExecutionArgs(packageManager, ["prisma", ...prismaArgs]);
|
|
417
439
|
}
|
|
418
|
-
function getPrismaCliCommand$1(packageManager, prismaArgs) {
|
|
419
|
-
const execution = getPrismaCliArgs(packageManager, prismaArgs);
|
|
420
|
-
return [execution.command, ...execution.args].join(" ");
|
|
421
|
-
}
|
|
422
|
-
|
|
423
440
|
//#endregion
|
|
424
441
|
//#region src/templates/shared.ts
|
|
425
442
|
function getOptionalHashString(hash, key) {
|
|
@@ -513,7 +530,6 @@ async function renderTemplateTree(opts) {
|
|
|
513
530
|
});
|
|
514
531
|
}
|
|
515
532
|
}
|
|
516
|
-
|
|
517
533
|
//#endregion
|
|
518
534
|
//#region src/templates/render-create-template.ts
|
|
519
535
|
function getCreateTemplateDir(template) {
|
|
@@ -536,7 +552,6 @@ async function scaffoldCreateTemplate(opts) {
|
|
|
536
552
|
context: createTemplateContext(projectName, provider, schemaPreset, packageManager, opts.compute === true)
|
|
537
553
|
});
|
|
538
554
|
}
|
|
539
|
-
|
|
540
555
|
//#endregion
|
|
541
556
|
//#region src/constants/db-packages.ts
|
|
542
557
|
function getDbPackages(provider, _packageManager) {
|
|
@@ -546,13 +561,9 @@ function getDbPackages(provider, _packageManager) {
|
|
|
546
561
|
case "mysql": return "@prisma/adapter-mariadb";
|
|
547
562
|
case "sqlite": return "@prisma/adapter-libsql";
|
|
548
563
|
case "sqlserver": return "@prisma/adapter-mssql";
|
|
549
|
-
default: {
|
|
550
|
-
const exhaustiveCheck = provider;
|
|
551
|
-
throw new Error(`Unsupported database provider: ${String(exhaustiveCheck)}`);
|
|
552
|
-
}
|
|
564
|
+
default: throw new Error(`Unsupported database provider: ${String(provider)}`);
|
|
553
565
|
}
|
|
554
566
|
}
|
|
555
|
-
|
|
556
567
|
//#endregion
|
|
557
568
|
//#region src/tasks/install.ts
|
|
558
569
|
function getPrismaScriptMap(packageManager) {
|
|
@@ -669,12 +680,16 @@ async function writeCreateTemplateDependencies(opts) {
|
|
|
669
680
|
async function installProjectDependencies(packageManager, projectDir = process.cwd(), options = {}) {
|
|
670
681
|
const verbose = options.verbose === true;
|
|
671
682
|
const installCommand = getInstallArgs(packageManager);
|
|
683
|
+
const env = packageManager === "yarn" ? {
|
|
684
|
+
...process.env,
|
|
685
|
+
YARN_ENABLE_IMMUTABLE_INSTALLS: "false"
|
|
686
|
+
} : void 0;
|
|
672
687
|
await execa(installCommand.command, installCommand.args, {
|
|
673
688
|
cwd: projectDir,
|
|
689
|
+
env,
|
|
674
690
|
stdio: verbose ? "inherit" : "pipe"
|
|
675
691
|
});
|
|
676
692
|
}
|
|
677
|
-
|
|
678
693
|
//#endregion
|
|
679
694
|
//#region src/tasks/prisma-postgres.ts
|
|
680
695
|
const PRISMA_POSTGRES_TEMPORARY_NOTICE = "Prisma Postgres is temporary for 24 hours. Claim this database before it expires using CLAIM_URL.";
|
|
@@ -729,7 +744,6 @@ async function provisionPrismaPostgres(packageManager, projectDir = process.cwd(
|
|
|
729
744
|
function getCreateDbCommand(packageManager) {
|
|
730
745
|
return getPackageExecutionCommand(packageManager, [...CREATE_DB_COMMAND_ARGS]);
|
|
731
746
|
}
|
|
732
|
-
|
|
733
747
|
//#endregion
|
|
734
748
|
//#region src/tasks/setup-prisma.ts
|
|
735
749
|
const DEFAULT_DATABASE_PROVIDER = "postgresql";
|
|
@@ -922,10 +936,7 @@ function getDefaultDatabaseUrl(provider) {
|
|
|
922
936
|
case "mysql": return "mysql://johndoe:randompassword@localhost:3306/mydb";
|
|
923
937
|
case "sqlite": return "file:./dev.db";
|
|
924
938
|
case "sqlserver": return "sqlserver://localhost:1433;database=mydb;user=SA;password=randompassword;";
|
|
925
|
-
default: {
|
|
926
|
-
const exhaustiveCheck = provider;
|
|
927
|
-
throw new Error(`Unsupported provider: ${String(exhaustiveCheck)}`);
|
|
928
|
-
}
|
|
939
|
+
default: throw new Error(`Unsupported provider: ${String(provider)}`);
|
|
929
940
|
}
|
|
930
941
|
}
|
|
931
942
|
function escapeRegExp(value) {
|
|
@@ -1105,12 +1116,12 @@ async function finalizePrismaFilesForContext(context, projectDir, provisionResul
|
|
|
1105
1116
|
async function generatePrismaClientForContext(context, projectDir) {
|
|
1106
1117
|
const prismaProjectDir = await resolvePrismaProjectDir(projectDir);
|
|
1107
1118
|
if (!context.shouldGenerate) return { didGenerateClient: false };
|
|
1108
|
-
const generateCommand =
|
|
1119
|
+
const generateCommand = getRunScriptCommand(context.packageManager, "db:generate");
|
|
1109
1120
|
if (context.verbose) log.step(`Running ${generateCommand}`);
|
|
1110
1121
|
const generateSpinner = context.verbose ? void 0 : spinner();
|
|
1111
1122
|
generateSpinner?.start("Generating Prisma Client...");
|
|
1112
1123
|
try {
|
|
1113
|
-
const generateArgs =
|
|
1124
|
+
const generateArgs = getRunScriptArgs(context.packageManager, "db:generate");
|
|
1114
1125
|
await execa(generateArgs.command, generateArgs.args, {
|
|
1115
1126
|
cwd: prismaProjectDir,
|
|
1116
1127
|
stdio: context.verbose ? "inherit" : "pipe"
|
|
@@ -1236,7 +1247,6 @@ async function migrateAndSeedIfRequested(context, projectDir, options) {
|
|
|
1236
1247
|
didSeed
|
|
1237
1248
|
};
|
|
1238
1249
|
}
|
|
1239
|
-
|
|
1240
1250
|
//#endregion
|
|
1241
1251
|
//#region src/tasks/setup-addons.ts
|
|
1242
1252
|
const DEFAULT_ADDON_SCOPE = "project";
|
|
@@ -1691,10 +1701,7 @@ function getExtensionInstallBinary(target) {
|
|
|
1691
1701
|
case "vscode": return "code";
|
|
1692
1702
|
case "cursor": return "cursor";
|
|
1693
1703
|
case "windsurf": return "windsurf";
|
|
1694
|
-
default: {
|
|
1695
|
-
const exhaustiveCheck = target;
|
|
1696
|
-
throw new Error(`Unsupported extension target: ${String(exhaustiveCheck)}`);
|
|
1697
|
-
}
|
|
1704
|
+
default: throw new Error(`Unsupported extension target: ${String(target)}`);
|
|
1698
1705
|
}
|
|
1699
1706
|
}
|
|
1700
1707
|
async function installExtensionAddon(params) {
|
|
@@ -1771,7 +1778,6 @@ async function executeCreateAddonSetupContext(params) {
|
|
|
1771
1778
|
}
|
|
1772
1779
|
addonSpinner.stop("Add-ons applied.");
|
|
1773
1780
|
}
|
|
1774
|
-
|
|
1775
1781
|
//#endregion
|
|
1776
1782
|
//#region src/tasks/deploy-to-compute.ts
|
|
1777
1783
|
const PRISMA_CLI_PACKAGE = "@prisma/cli@latest";
|
|
@@ -1801,8 +1807,7 @@ function getComputeDeployScriptMap(context) {
|
|
|
1801
1807
|
"--prod",
|
|
1802
1808
|
"--yes"
|
|
1803
1809
|
];
|
|
1804
|
-
|
|
1805
|
-
return { "compute:deploy": deployCommand };
|
|
1810
|
+
return { "compute:deploy": [getPrismaCliAppDeployCommand(context.packageManager), ...deployArgs].join(" ") };
|
|
1806
1811
|
}
|
|
1807
1812
|
function getComputeDeployTargetArgs(context) {
|
|
1808
1813
|
return context.configTarget ? [context.configTarget] : [];
|
|
@@ -1842,7 +1847,10 @@ async function ensurePrismaCliAvailable(packageManager) {
|
|
|
1842
1847
|
}
|
|
1843
1848
|
}
|
|
1844
1849
|
async function collectComputeDeployContext(input, options) {
|
|
1845
|
-
if (!isComputeDeployableTemplate(options.template))
|
|
1850
|
+
if (!isComputeDeployableTemplate(options.template)) {
|
|
1851
|
+
if (input.deploy === true) throw createExplicitDeployError(`${options.template} is not supported by prisma app deploy yet`);
|
|
1852
|
+
return null;
|
|
1853
|
+
}
|
|
1846
1854
|
if (input.deploy === false) return null;
|
|
1847
1855
|
let wantsDeploy;
|
|
1848
1856
|
if (input.deploy === true) wantsDeploy = true;
|
|
@@ -2045,29 +2053,19 @@ async function executeComputeDeployContext(params) {
|
|
|
2045
2053
|
result: toComputeDeployResult(deployResult.result)
|
|
2046
2054
|
};
|
|
2047
2055
|
}
|
|
2048
|
-
|
|
2049
2056
|
//#endregion
|
|
2050
2057
|
//#region src/telemetry/client.ts
|
|
2051
|
-
const TELEMETRY_API_KEY = "
|
|
2058
|
+
const TELEMETRY_API_KEY = "";
|
|
2052
2059
|
const TELEMETRY_HOST = "https://us.i.posthog.com";
|
|
2053
2060
|
const TELEMETRY_CONFIG_FILE = "telemetry.json";
|
|
2054
2061
|
const UUID_V4_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
2055
|
-
function isTruthyEnvValue(value) {
|
|
2056
|
-
return [
|
|
2057
|
-
"1",
|
|
2058
|
-
"true",
|
|
2059
|
-
"yes",
|
|
2060
|
-
"on"
|
|
2061
|
-
].includes(String(value ?? "").trim().toLowerCase());
|
|
2062
|
-
}
|
|
2063
2062
|
function shouldDisableTelemetry() {
|
|
2064
|
-
|
|
2065
|
-
return process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
|
|
2063
|
+
return true;
|
|
2066
2064
|
}
|
|
2067
2065
|
function getTelemetryConfigDir() {
|
|
2068
|
-
if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
|
|
2069
|
-
if (process.platform === "win32") return path.join(process.env.APPDATA ?? path.join(os.homedir(), "AppData", "Roaming"), "create-prisma");
|
|
2070
|
-
return path.join(process.env.XDG_CONFIG_HOME ?? path.join(os.homedir(), ".config"), "create-prisma");
|
|
2066
|
+
if (process.platform === "darwin") return path.join(os$1.homedir(), "Library", "Application Support", "create-prisma");
|
|
2067
|
+
if (process.platform === "win32") return path.join(process.env.APPDATA ?? path.join(os$1.homedir(), "AppData", "Roaming"), "create-prisma");
|
|
2068
|
+
return path.join(process.env.XDG_CONFIG_HOME ?? path.join(os$1.homedir(), ".config"), "create-prisma");
|
|
2071
2069
|
}
|
|
2072
2070
|
async function getAnonymousId() {
|
|
2073
2071
|
const telemetryConfigPath = path.join(getTelemetryConfigDir(), TELEMETRY_CONFIG_FILE);
|
|
@@ -2084,7 +2082,7 @@ async function getAnonymousId() {
|
|
|
2084
2082
|
}
|
|
2085
2083
|
function getCommonProperties() {
|
|
2086
2084
|
return {
|
|
2087
|
-
"cli-version": "0.7.
|
|
2085
|
+
"cli-version": "0.7.1-pr.50.153.1",
|
|
2088
2086
|
"node-version": process.version,
|
|
2089
2087
|
platform: process.platform,
|
|
2090
2088
|
arch: process.arch
|
|
@@ -2119,7 +2117,6 @@ async function trackCliTelemetry(event, properties) {
|
|
|
2119
2117
|
if (client) await client.shutdown().catch(() => {});
|
|
2120
2118
|
}
|
|
2121
2119
|
}
|
|
2122
|
-
|
|
2123
2120
|
//#endregion
|
|
2124
2121
|
//#region src/telemetry/create.ts
|
|
2125
2122
|
function getRequestedAddons(input) {
|
|
@@ -2184,14 +2181,12 @@ async function trackCreateFailed(params) {
|
|
|
2184
2181
|
"error-code": getErrorCode(params.error)
|
|
2185
2182
|
});
|
|
2186
2183
|
}
|
|
2187
|
-
|
|
2188
2184
|
//#endregion
|
|
2189
2185
|
//#region src/ui/branding.ts
|
|
2190
2186
|
const prismaTitle = `${styleText(["bold", "cyan"], "Create")} ${styleText(["bold", "magenta"], "Prisma")}`;
|
|
2191
2187
|
function getCreatePrismaIntro() {
|
|
2192
2188
|
return prismaTitle;
|
|
2193
2189
|
}
|
|
2194
|
-
|
|
2195
2190
|
//#endregion
|
|
2196
2191
|
//#region src/commands/create.ts
|
|
2197
2192
|
const DEFAULT_PROJECT_NAME = "my-app";
|
|
@@ -2311,15 +2306,8 @@ async function runCreateCommand(rawInput = {}) {
|
|
|
2311
2306
|
failureStage = "unknown";
|
|
2312
2307
|
const executionResult = await executeCreateContext(context);
|
|
2313
2308
|
if (!executionResult.ok) {
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
input,
|
|
2317
|
-
context,
|
|
2318
|
-
durationMs: Date.now() - startedAt,
|
|
2319
|
-
error: executionResult.error,
|
|
2320
|
-
stage: executionResult.stage
|
|
2321
|
-
});
|
|
2322
|
-
return;
|
|
2309
|
+
failureStage = executionResult.stage;
|
|
2310
|
+
throw executionResult.error instanceof Error ? executionResult.error : new Error(executionResult.error === void 0 ? `Create command failed during ${executionResult.stage}` : String(executionResult.error));
|
|
2323
2311
|
}
|
|
2324
2312
|
await trackCreateCompleted({
|
|
2325
2313
|
input,
|
|
@@ -2327,14 +2315,16 @@ async function runCreateCommand(rawInput = {}) {
|
|
|
2327
2315
|
durationMs: Date.now() - startedAt
|
|
2328
2316
|
});
|
|
2329
2317
|
} catch (error) {
|
|
2330
|
-
|
|
2318
|
+
const commandError = error instanceof Error ? error : new Error(String(error));
|
|
2319
|
+
cancel(`Create command failed: ${commandError.message}`);
|
|
2331
2320
|
await trackCreateFailed({
|
|
2332
2321
|
input,
|
|
2333
2322
|
context,
|
|
2334
2323
|
durationMs: Date.now() - startedAt,
|
|
2335
|
-
error,
|
|
2324
|
+
error: commandError,
|
|
2336
2325
|
stage: failureStage
|
|
2337
2326
|
});
|
|
2327
|
+
throw commandError;
|
|
2338
2328
|
}
|
|
2339
2329
|
}
|
|
2340
2330
|
async function collectCreateContext(input) {
|
|
@@ -2527,6 +2517,25 @@ async function executeCreateContext(context) {
|
|
|
2527
2517
|
outro(summaryLines.join("\n"));
|
|
2528
2518
|
return { ok: true };
|
|
2529
2519
|
}
|
|
2530
|
-
|
|
2531
2520
|
//#endregion
|
|
2532
|
-
|
|
2521
|
+
//#region src/index.ts
|
|
2522
|
+
const CLI_VERSION = "0.7.1-pr.50.153.1";
|
|
2523
|
+
const router = os.router({ create: os.meta({
|
|
2524
|
+
description: "Create a new project with Prisma setup",
|
|
2525
|
+
default: true,
|
|
2526
|
+
negateBooleans: true
|
|
2527
|
+
}).input(CreateCommandInputSchema.optional()).handler(async ({ input }) => {
|
|
2528
|
+
await runCreateCommand(input ?? {});
|
|
2529
|
+
}) });
|
|
2530
|
+
function createCreatePrismaCli() {
|
|
2531
|
+
return createCli({
|
|
2532
|
+
router,
|
|
2533
|
+
name: "create-prisma",
|
|
2534
|
+
version: CLI_VERSION
|
|
2535
|
+
});
|
|
2536
|
+
}
|
|
2537
|
+
async function create(input = {}) {
|
|
2538
|
+
await runCreateCommand(input);
|
|
2539
|
+
}
|
|
2540
|
+
//#endregion
|
|
2541
|
+
export { CreateTemplateSchema as a, PackageManagerSchema as c, CreateCommandInputSchema as i, SchemaPresetSchema as l, createCreatePrismaCli as n, DatabaseProviderSchema as o, router as r, DatabaseUrlSchema as s, create as t };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-prisma",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1-pr.50.153.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Create Prisma 7 projects with first-party templates and great DX.",
|
|
6
6
|
"homepage": "https://github.com/prisma/create-prisma",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
|
-
"build": "tsdown",
|
|
37
|
-
"dev": "tsdown --watch",
|
|
36
|
+
"build": "tsdown --config-loader native",
|
|
37
|
+
"dev": "tsdown --config-loader native --watch",
|
|
38
38
|
"start": "bun run ./dist/cli.mjs",
|
|
39
39
|
"check": "bun run format:check && bun run lint",
|
|
40
40
|
"lint": "oxlint . --deny-warnings",
|
|
@@ -47,28 +47,28 @@
|
|
|
47
47
|
"release-notes": "bunx changelogithub"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@clack/prompts": "^1.0
|
|
51
|
-
"@orpc/server": "^1.
|
|
50
|
+
"@clack/prompts": "^1.6.0",
|
|
51
|
+
"@orpc/server": "^1.14.6",
|
|
52
52
|
"execa": "^9.6.1",
|
|
53
|
-
"fs-extra": "^11.3.
|
|
54
|
-
"handlebars": "^4.7.
|
|
55
|
-
"posthog-node": "^5.
|
|
56
|
-
"trpc-cli": "^0.
|
|
57
|
-
"zod": "^4.3
|
|
53
|
+
"fs-extra": "^11.3.5",
|
|
54
|
+
"handlebars": "^4.7.9",
|
|
55
|
+
"posthog-node": "^5.38.2",
|
|
56
|
+
"trpc-cli": "^0.15.1",
|
|
57
|
+
"zod": "^4.4.3"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@types/bun": "^1.3.
|
|
60
|
+
"@types/bun": "^1.3.14",
|
|
61
61
|
"@types/fs-extra": "^11.0.4",
|
|
62
|
-
"@types/node": "^
|
|
62
|
+
"@types/node": "^26.0.0",
|
|
63
63
|
"changelogithub": "^14.0.0",
|
|
64
|
-
"oxfmt": "^0.
|
|
65
|
-
"oxlint": "^1.
|
|
66
|
-
"tsdown": "^0.
|
|
67
|
-
"typescript": "^
|
|
64
|
+
"oxfmt": "^0.56.0",
|
|
65
|
+
"oxlint": "^1.71.0",
|
|
66
|
+
"tsdown": "^0.22.3",
|
|
67
|
+
"typescript": "^6.0.3"
|
|
68
68
|
},
|
|
69
69
|
"engines": {
|
|
70
70
|
"bun": ">=1.3.0",
|
|
71
71
|
"node": ">=18.0.0"
|
|
72
72
|
},
|
|
73
|
-
"packageManager": "bun@1.3.
|
|
73
|
+
"packageManager": "bun@1.3.14"
|
|
74
74
|
}
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"astro": "astro"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"@astrojs/node": "^11.0.0",
|
|
16
|
+
"astro": "^7.0.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@types/node": "^
|
|
20
|
-
"tsx": "^4.
|
|
21
|
-
"typescript": "^
|
|
19
|
+
"@types/node": "^26.0.0",
|
|
20
|
+
"tsx": "^4.22.4",
|
|
21
|
+
"typescript": "^6.0.3"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"start": "{{runtimeScript packageManager "start" "src/index.ts" "dist/src/index.js" denoFlags="--unstable-net"}}"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@sinclair/typebox": "^0.34.
|
|
16
|
-
"elysia": "^1.4.
|
|
15
|
+
"@sinclair/typebox": "^0.34.49",
|
|
16
|
+
"elysia": "^1.4.29",
|
|
17
17
|
"openapi-types": "^12.1.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"typescript": "^
|
|
20
|
+
"typescript": "^6.0.3"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"start": "{{runtimeScript packageManager "start" "src/index.ts" "dist/src/index.js"}}"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@hono/node-server": "^
|
|
16
|
-
"hono": "^4.12.
|
|
15
|
+
"@hono/node-server": "^2.0.6",
|
|
16
|
+
"hono": "^4.12.27"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@types/node": "^
|
|
20
|
-
"typescript": "^
|
|
19
|
+
"@types/node": "^26.0.0",
|
|
20
|
+
"typescript": "^6.0.3"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"start": "{{runtimeScript packageManager "start" "src/main.ts" "dist/main.js"}}"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@nestjs/common": "^11.1.
|
|
15
|
-
"@nestjs/core": "^11.1.
|
|
16
|
-
"@nestjs/platform-express": "^11.1.
|
|
14
|
+
"@nestjs/common": "^11.1.27",
|
|
15
|
+
"@nestjs/core": "^11.1.27",
|
|
16
|
+
"@nestjs/platform-express": "^11.1.27",
|
|
17
17
|
"reflect-metadata": "^0.2.2",
|
|
18
18
|
"rxjs": "^7.8.2"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/node": "^
|
|
22
|
-
"typescript": "^
|
|
21
|
+
"@types/node": "^26.0.0",
|
|
22
|
+
"typescript": "^6.0.3"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -13,7 +13,7 @@ async function bootstrap() {
|
|
|
13
13
|
const parsedPort = rawPort.length > 0 ? Number(rawPort) : Number.NaN;
|
|
14
14
|
const port =
|
|
15
15
|
Number.isFinite(parsedPort) && parsedPort >= 0 && parsedPort <= 65535 ? parsedPort : 3000;
|
|
16
|
-
await app.listen(port);
|
|
16
|
+
await app.listen(port, "0.0.0.0");
|
|
17
17
|
console.log(`Server running at http://localhost:${port}`);
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
"strict": true,
|
|
8
8
|
"esModuleInterop": true,
|
|
9
9
|
"skipLibCheck": true,
|
|
10
|
+
"types": ["node"],
|
|
10
11
|
"forceConsistentCasingInFileNames": true,
|
|
11
12
|
"emitDecoratorMetadata": true,
|
|
12
13
|
"experimentalDecorators": true,
|
|
14
|
+
"rootDir": "src",
|
|
13
15
|
"outDir": "dist"
|
|
14
16
|
},
|
|
15
17
|
"include": ["src/**/*.ts"]
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
"lint": "eslint"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"next": "16.
|
|
17
|
-
"react": "19.2.
|
|
18
|
-
"react-dom": "19.2.
|
|
16
|
+
"next": "16.2.9",
|
|
17
|
+
"react": "19.2.7",
|
|
18
|
+
"react-dom": "19.2.7"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/node": "^
|
|
22
|
-
"@types/react": "^19",
|
|
23
|
-
"@types/react-dom": "^19",
|
|
24
|
-
"eslint": "^
|
|
25
|
-
"eslint-config-next": "16.
|
|
26
|
-
"tsx": "^4.
|
|
27
|
-
"typescript": "^
|
|
21
|
+
"@types/node": "^26.0.0",
|
|
22
|
+
"@types/react": "^19.2.17",
|
|
23
|
+
"@types/react-dom": "^19.2.3",
|
|
24
|
+
"eslint": "^10.5.0",
|
|
25
|
+
"eslint-config-next": "16.2.9",
|
|
26
|
+
"tsx": "^4.22.4",
|
|
27
|
+
"typescript": "^6.0.3"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -15,13 +15,14 @@
|
|
|
15
15
|
"typecheck": "nuxt typecheck"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"nuxt": "^4.
|
|
19
|
-
"vue": "^3.5.
|
|
20
|
-
"vue-router": "^
|
|
18
|
+
"nuxt": "^4.4.8",
|
|
19
|
+
"vue": "^3.5.38",
|
|
20
|
+
"vue-router": "^5.1.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@types/node": "^
|
|
24
|
-
"tsx": "^4.
|
|
25
|
-
"typescript": "^
|
|
23
|
+
"@types/node": "^26.0.0",
|
|
24
|
+
"tsx": "^4.22.4",
|
|
25
|
+
"typescript": "^6.0.3",
|
|
26
|
+
"vue-tsc": "^3.3.5"
|
|
26
27
|
}
|
|
27
28
|
}
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"db:generate": "svelte-kit sync && {{prismaCommand packageManager "generate"}}"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@sveltejs/adapter-auto": "^7.0.
|
|
20
|
-
"@sveltejs/kit": "^2.
|
|
21
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
22
|
-
"@types/node": "^
|
|
23
|
-
"svelte": "^5.
|
|
24
|
-
"svelte-check": "^4.
|
|
25
|
-
"tsx": "^4.
|
|
26
|
-
"typescript": "^
|
|
27
|
-
"vite": "^
|
|
19
|
+
"@sveltejs/adapter-auto": "^7.0.1",
|
|
20
|
+
"@sveltejs/kit": "^2.67.0",
|
|
21
|
+
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
|
22
|
+
"@types/node": "^26.0.0",
|
|
23
|
+
"svelte": "^5.56.3",
|
|
24
|
+
"svelte-check": "^4.6.0",
|
|
25
|
+
"tsx": "^4.22.4",
|
|
26
|
+
"typescript": "^6.0.3",
|
|
27
|
+
"vite": "^8.0.16"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -14,20 +14,19 @@
|
|
|
14
14
|
"typecheck": "tsc --noEmit"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@tanstack/react-router": "^1.
|
|
18
|
-
"@tanstack/react-start": "^1.
|
|
19
|
-
"nitro": "^3.0.
|
|
20
|
-
"react": "^19.2.
|
|
21
|
-
"react-dom": "^19.2.
|
|
17
|
+
"@tanstack/react-router": "^1.170.16",
|
|
18
|
+
"@tanstack/react-start": "^1.168.26",
|
|
19
|
+
"nitro": "^3.0.260610-beta",
|
|
20
|
+
"react": "^19.2.7",
|
|
21
|
+
"react-dom": "^19.2.7"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/node": "^
|
|
25
|
-
"@types/react": "^19.2.
|
|
26
|
-
"@types/react-dom": "^19.2.
|
|
27
|
-
"@vitejs/plugin-react": "^6.0.
|
|
28
|
-
"tsx": "^4.
|
|
29
|
-
"typescript": "^
|
|
30
|
-
"vite": "^8.0.
|
|
24
|
+
"@types/node": "^26.0.0",
|
|
25
|
+
"@types/react": "^19.2.17",
|
|
26
|
+
"@types/react-dom": "^19.2.3",
|
|
27
|
+
"@vitejs/plugin-react": "^6.0.3",
|
|
28
|
+
"tsx": "^4.22.4",
|
|
29
|
+
"typescript": "^6.0.3",
|
|
30
|
+
"vite": "^8.0.16"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
|
|
@@ -11,12 +11,11 @@
|
|
|
11
11
|
"noUnusedLocals": true,
|
|
12
12
|
"noUnusedParameters": true,
|
|
13
13
|
"noFallthroughCasesInSwitch": true,
|
|
14
|
-
"baseUrl": ".",
|
|
15
14
|
"paths": {
|
|
16
15
|
"@/*": ["./src/*"]
|
|
17
16
|
},
|
|
18
17
|
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
19
|
-
"types": ["vite/client"]
|
|
18
|
+
"types": ["vite/client", "node"]
|
|
20
19
|
},
|
|
21
20
|
"include": ["src/**/*.ts", "src/**/*.tsx", "prisma/**/*.ts", "vite.config.ts"]
|
|
22
21
|
}
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
{{/if}}
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@hono/node-server": "^
|
|
20
|
-
"hono": "^4.12.
|
|
19
|
+
"@hono/node-server": "^2.0.6",
|
|
20
|
+
"hono": "^4.12.27"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@types/node": "^
|
|
24
|
-
"typescript": "^
|
|
23
|
+
"@types/node": "^26.0.0",
|
|
24
|
+
"typescript": "^6.0.3"
|
|
25
25
|
}
|
|
26
26
|
}
|