create-prisma 0.4.2-pr.53.188.1 → 0.4.2-pr.53.190.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 CHANGED
@@ -1,9 +1,12 @@
1
1
  #!/usr/bin/env node
2
- import "./create-C9mzWEu9.mjs";
2
+ import "./create-hAEWXBEo.mjs";
3
3
  import { createCreatePrismaCli } from "./index.mjs";
4
4
 
5
5
  //#region src/cli.ts
6
- createCreatePrismaCli().run();
6
+ createCreatePrismaCli().run({ process: { exit(code) {
7
+ const commandExitCode = typeof process.exitCode === "number" && process.exitCode !== 0 ? process.exitCode : code;
8
+ process.exit(commandExitCode);
9
+ } } });
7
10
 
8
11
  //#endregion
9
12
  export { };
@@ -40,7 +40,7 @@ async function getAnonymousId() {
40
40
  }
41
41
  function getCommonProperties() {
42
42
  return {
43
- "cli-version": "0.4.2-pr.53.188.1",
43
+ "cli-version": "0.4.2-pr.53.190.1",
44
44
  "node-version": process.version,
45
45
  platform: process.platform,
46
46
  arch: process.arch
@@ -1127,6 +1127,7 @@ async function runCreateCommand(rawInput = {}) {
1127
1127
  failureStage = "unknown";
1128
1128
  const executionResult = await executeCreateContext(context);
1129
1129
  if (!executionResult.ok) {
1130
+ process.exitCode = 1;
1130
1131
  if (executionResult.error) cancel(`Create command failed: ${executionResult.error instanceof Error ? executionResult.error.message : String(executionResult.error)}`);
1131
1132
  await trackCreateFailed({
1132
1133
  input,
@@ -1143,6 +1144,7 @@ async function runCreateCommand(rawInput = {}) {
1143
1144
  durationMs: Date.now() - startedAt
1144
1145
  });
1145
1146
  } catch (error) {
1147
+ process.exitCode = 1;
1146
1148
  cancel(`Create command failed: ${error instanceof Error ? error.message : String(error)}`);
1147
1149
  await trackCreateFailed({
1148
1150
  input,
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-C9mzWEu9.mjs";
2
+ import { a as DatabaseProviderSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as PackageManagerSchema, r as CreateCommandInputSchema, t as runCreateCommand } from "./create-hAEWXBEo.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-pr.53.188.1";
8
+ const CLI_VERSION = "0.4.2-pr.53.190.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-pr.53.188.1",
3
+ "version": "0.4.2-pr.53.190.1",
4
4
  "private": false,
5
5
  "description": "Create Prisma Next projects with first-party templates and great DX.",
6
6
  "homepage": "https://github.com/prisma/create-prisma",
@@ -2,6 +2,12 @@
2
2
  allowBuilds:
3
3
  esbuild: true
4
4
  msgpackr-extract: true
5
+ {{#if (eq template "next")}}
6
+ sharp: true
7
+ unrs-resolver: true
8
+ {{else if (eq template "astro")}}
9
+ sharp: true
10
+ {{/if}}
5
11
  workerd: true
6
12
  minimumReleaseAgeExclude:
7
13
  - "@prisma/*"
@@ -18,6 +18,6 @@
18
18
  "@types/node": "^24.3.0",
19
19
  "tsx": "^4.7.1",
20
20
  "typescript": "^5.9.3",
21
- "vite": "^7.3.3"
21
+ "vite": "^8.1.2"
22
22
  }
23
23
  }
@@ -7,7 +7,7 @@
7
7
  "type": "module",
8
8
  "scripts": {
9
9
  "dev": "{{runtimeScript packageManager "dev" "src/main.ts" "dist/main.js"}}",
10
- "build": "esbuild src/main.ts --bundle --platform=node --format=esm --outfile=dist/server.mjs --banner:js=\"import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);\" --external:@nestjs/websockets/* --external:@nestjs/microservices --external:@nestjs/microservices/* --external:@nestjs/platform-socket.io --external:class-transformer --external:class-validator",
10
+ "build": "esbuild src/main.ts --bundle --platform=node --format=esm --outfile=dist/server.mjs --banner:js=\"import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);\" --external:'@nestjs/websockets/*' --external:@nestjs/microservices --external:'@nestjs/microservices/*' --external:@nestjs/platform-socket.io --external:class-transformer --external:class-validator",
11
11
  "start": "node dist/server.mjs"
12
12
  },
13
13
  "dependencies": {
@@ -1,10 +1,10 @@
1
- import { Controller, Get } from "@nestjs/common";
1
+ import { Controller, Get, Inject } from "@nestjs/common";
2
2
 
3
3
  import { UsersService } from "./users.service";
4
4
 
5
5
  @Controller("users")
6
6
  export class UsersController {
7
- constructor(private readonly usersService: UsersService) {}
7
+ constructor(@Inject(UsersService) private readonly usersService: UsersService) {}
8
8
 
9
9
  @Get()
10
10
  findAll() {
@@ -1,10 +1,10 @@
1
- import { Injectable } from "@nestjs/common";
1
+ import { Inject, Injectable } from "@nestjs/common";
2
2
 
3
3
  import { PrismaService } from "./prisma.service";
4
4
 
5
5
  @Injectable()
6
6
  export class UsersService {
7
- constructor(private readonly prisma: PrismaService) {}
7
+ constructor(@Inject(PrismaService) private readonly prisma: PrismaService) {}
8
8
 
9
9
  async findAll() {
10
10
  return this.prisma.listUsers(10);
@@ -23,7 +23,7 @@
23
23
  "@types/node": "^24.3.0",
24
24
  "tsx": "^4.7.1",
25
25
  "typescript": "^5.9.3",
26
- "vite": "^7.3.3",
26
+ "vite": "^8.1.2",
27
27
  "vue-tsc": "^3.3.9"
28
28
  }
29
29
  }
@@ -16,12 +16,12 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "@sveltejs/kit": "^2.50.2",
19
- "@sveltejs/vite-plugin-svelte": "^6.2.4",
19
+ "@sveltejs/vite-plugin-svelte": "^7.3.0",
20
20
  "@types/node": "^24.3.0",
21
21
  "svelte": "^5.51.0",
22
22
  "svelte-check": "^4.4.2",
23
23
  "tsx": "^4.7.1",
24
24
  "typescript": "^5.9.3",
25
- "vite": "^7.3.3"
25
+ "vite": "^8.1.2"
26
26
  }
27
27
  }
@@ -23,10 +23,10 @@
23
23
  "@types/node": "^24.3.0",
24
24
  "@types/react": "^19.2.2",
25
25
  "@types/react-dom": "^19.2.2",
26
- "@vitejs/plugin-react": "^5.1.4",
26
+ "@vitejs/plugin-react": "^5.2.0",
27
27
  "tsx": "^4.7.1",
28
28
  "typescript": "^5.9.3",
29
- "vite": "^7.3.3",
30
- "vite-tsconfig-paths": "^5.1.4"
29
+ "vite": "^8.1.2",
30
+ "vite-tsconfig-paths": "^6.1.1"
31
31
  }
32
32
  }