create-prisma 0.4.2-next.37.202.1 → 0.4.2-next.37.204.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/README.md CHANGED
@@ -13,7 +13,7 @@ yarn dlx create-prisma@next my-app
13
13
  bunx create-prisma@next my-app
14
14
  ```
15
15
 
16
- The CLI initializes Prisma 8 with the aligned `@prisma/cli` prerelease, installs dependencies, emits the contract, and generates a deployable Composer app. PostgreSQL projects use Composer's native Prisma Postgres provider, including migrations and a typed runtime client.
16
+ The CLI initializes Prisma 8 with `prisma@next`, installs dependencies, emits the contract, and generates a deployable Composer app. PostgreSQL projects use Composer's native Prisma Postgres provider, including migrations and a typed runtime client.
17
17
 
18
18
  The only Composer prompt is:
19
19
 
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import "./create-BoCVrhUd.mjs";
2
+ import "./create-DO0KhezB.mjs";
3
3
  import { createCreatePrismaCli } from "./index.mjs";
4
4
 
5
5
  //#region src/cli.ts
@@ -49,7 +49,7 @@ async function getAnonymousId() {
49
49
  }
50
50
  function getCommonProperties() {
51
51
  return {
52
- "cli-version": "0.4.2-next.37.202.1",
52
+ "cli-version": "0.4.2-next.37.204.1",
53
53
  "node-version": process.version,
54
54
  platform: process.platform,
55
55
  arch: process.arch
@@ -438,10 +438,10 @@ const dependencyVersionMap = {
438
438
  "@astrojs/node": "^10.0.2",
439
439
  "@elysiajs/node": "^1.4.5",
440
440
  "@prisma/cli-engine": "0.2.0",
441
- "@prisma/composer": "0.9.0",
442
- "@prisma/composer-prisma-cloud": "0.9.0",
443
- "@prisma/orm-mongo": "8.0.0-rc.3",
444
- "@prisma/orm-postgres": "8.0.0-rc.3",
441
+ "@prisma/composer": "0.10.0",
442
+ "@prisma/composer-prisma-cloud": "0.10.0",
443
+ "@prisma/orm-mongo": "8.0.0-rc.4",
444
+ "@prisma/orm-postgres": "8.0.0-rc.4",
445
445
  "@sveltejs/adapter-node": "^5.3.2",
446
446
  "@types/node": "^25.6.2",
447
447
  alchemy: "2.0.0-beta.67",
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
- import { a as DatabaseProviderSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as PackageManagerSchema, r as CreateCommandInputSchema, t as runCreateCommand } from "./create-BoCVrhUd.mjs";
2
+ import { a as DatabaseProviderSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as PackageManagerSchema, r as CreateCommandInputSchema, t as runCreateCommand } from "./create-DO0KhezB.mjs";
3
3
  import { os } from "@orpc/server";
4
4
  import { createCli } from "trpc-cli";
5
5
  import { z } from "zod";
6
6
 
7
7
  //#region src/index.ts
8
- const CLI_VERSION = "0.4.2-next.37.202.1";
8
+ const CLI_VERSION = "0.4.2-next.37.204.1";
9
9
  const CreateCliInputSchema = z.tuple([z.string().trim().min(1, "Please enter a valid project name").optional().describe("Project name / directory"), CreateCommandInputSchema]);
10
10
  function normalizeCreateCliInput(input) {
11
11
  const [projectName, options] = input;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma",
3
- "version": "0.4.2-next.37.202.1",
3
+ "version": "0.4.2-next.37.204.1",
4
4
  "private": false,
5
5
  "description": "Create Prisma 8 projects with first-party templates and great DX.",
6
6
  "homepage": "https://github.com/prisma/create-prisma",
@@ -27,8 +27,7 @@ MongoDB is not provisioned by Composer. Set `MONGODB_URL` before running Compose
27
27
  ## Prisma
28
28
 
29
29
  - Contract: `src/prisma/contract{{#if (eq authoring "typescript")}}.ts{{else}}.prisma{{/if}}`
30
- - Prisma 8 config: `prisma-next.config.ts`
31
- - Universal CLI config: `prisma.config.ts`
30
+ - Prisma and Composer config: `prisma.config.ts`
32
31
  - Composer app: `module.ts` and `service.ts`
33
32
 
34
33
  After changing the contract, run:
@@ -14,7 +14,7 @@ export default module("{{projectName}}", ({ provision }) => {
14
14
  pnPostgres({
15
15
  name: "database",
16
16
  contract: appContract,
17
- config: "./prisma-next.config.ts",
17
+ config: "./prisma.config.ts",
18
18
  }),
19
19
  { id: "database" },
20
20
  );
@@ -1,9 +1,16 @@
1
1
  import { definePrismaConfig } from "@prisma/cli-engine";
2
-
3
- import orm from "./prisma-next.config.ts";
2
+ import { defineConfig as ormConfig } from "@prisma/orm-{{#if (eq provider "postgres")}}postgres{{else}}mongo{{/if}}/config";
4
3
 
5
4
  export default definePrismaConfig({
6
- orm,
5
+ orm: ormConfig({
6
+ contract: "./src/prisma/contract{{#if (eq authoring "typescript")}}.ts{{else}}.prisma{{/if}}",
7
+ {{#if (eq authoring "typescript")}}
8
+ output: "./src/prisma/generated",
9
+ {{/if}}
10
+ db: {
11
+ connection: process.env.{{#if (eq provider "postgres")}}DATABASE_URL{{else}}MONGODB_URL{{/if}}!,
12
+ },
13
+ }),
7
14
  composer: {
8
15
  configPath: "./prisma-composer.config.ts",
9
16
  },
@@ -1,11 +0,0 @@
1
- import { defineConfig } from "@prisma/orm-{{#if (eq provider "postgres")}}postgres{{else}}mongo{{/if}}/config";
2
-
3
- export default defineConfig({
4
- contract: "./src/prisma/contract{{#if (eq authoring "typescript")}}.ts{{else}}.prisma{{/if}}",
5
- {{#if (eq authoring "typescript")}}
6
- output: "./src/prisma/generated",
7
- {{/if}}
8
- db: {
9
- connection: process.env.DATABASE_URL!,
10
- },
11
- });