create-prisma 0.14.5 → 0.14.6

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,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as shouldRelaunchOnBun, i as runCreatePrismaCli, o as ApplicationLayer } from "./src-DYWWzIGK.mjs";
2
+ import { a as shouldRelaunchOnBun, i as runCreatePrismaCli, o as ApplicationLayer } from "./src-95T3KZZo.mjs";
3
3
  import { Effect } from "effect";
4
4
  import { NodeRuntime } from "@effect/platform-node-shared";
5
5
  import { spawn } from "node:child_process";
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { c as CreateCommandResultSchema, d as CreateCommandInputSchema, f as CreateTemplateSchema, i as runCreatePrismaCli, l as AgentSkillTargetSchema, m as PackageManagerSchema, n as createCreatePrismaCli, p as DatabaseProviderSchema, r as createPrismaCommand, s as CREATE_PRISMA_RESULT_SCHEMA_VERSION, t as create, u as AuthoringStyleSchema } from "./src-DYWWzIGK.mjs";
2
+ import { c as CreateCommandResultSchema, d as CreateCommandInputSchema, f as CreateTemplateSchema, i as runCreatePrismaCli, l as AgentSkillTargetSchema, m as PackageManagerSchema, n as createCreatePrismaCli, p as DatabaseProviderSchema, r as createPrismaCommand, s as CREATE_PRISMA_RESULT_SCHEMA_VERSION, t as create, u as AuthoringStyleSchema } from "./src-95T3KZZo.mjs";
3
3
  export { AgentSkillTargetSchema, AuthoringStyleSchema, CREATE_PRISMA_RESULT_SCHEMA_VERSION, CreateCommandInputSchema, CreateCommandResultSchema, CreateTemplateSchema, DatabaseProviderSchema, PackageManagerSchema, create, createCreatePrismaCli, createPrismaCommand, runCreatePrismaCli };
@@ -501,7 +501,7 @@ const getAnonymousIdEffect = Effect.fn("Telemetry.getAnonymousId")(function* ()
501
501
  return anonymousId;
502
502
  });
503
503
  const getCommonProperties = () => ({
504
- "cli-version": "0.14.5",
504
+ "cli-version": "0.14.6",
505
505
  "node-version": process.version,
506
506
  platform: process.platform,
507
507
  arch: process.arch
@@ -643,8 +643,8 @@ const trackCreateCancelledEffect = Effect.fn("Telemetry.createCancelled")(functi
643
643
  const dependencyVersionMap = {
644
644
  "@astrojs/node": "^11.1.9",
645
645
  "@elysia/node": "^1.4.6",
646
- "@prisma/composer": "0.34.0",
647
- "@prisma/composer-prisma-cloud": "0.34.0",
646
+ "@prisma/composer": "0.35.0",
647
+ "@prisma/composer-prisma-cloud": "0.35.0",
648
648
  "@prisma/dev": "0.25.2",
649
649
  "@prisma/orm-mongo": "8.0.0-rc.20",
650
650
  "@prisma/orm-postgres": "8.0.0-rc.20",
@@ -658,7 +658,7 @@ const dependencyVersionMap = {
658
658
  mongodb: "^7.7.0",
659
659
  "mongodb-memory-server": "^11.3.0",
660
660
  nitro: "^3.0.260903-beta",
661
- prisma: "8.0.0-rc.27",
661
+ prisma: "8.0.0-rc.28",
662
662
  "temporal-polyfill": "^1.0.6",
663
663
  tsdown: "^0.23.1",
664
664
  turbo: "2.11.10",
@@ -1258,11 +1258,7 @@ function getPrismaScriptMap(packageManager, skillsSync) {
1258
1258
  }
1259
1259
  function getComposerScriptMap(packageManager) {
1260
1260
  if (packageManager === "deno") return {};
1261
- const composerCommand = (subcommand) => [
1262
- "prisma",
1263
- subcommand,
1264
- "module.ts"
1265
- ].join(" ");
1261
+ const composerCommand = (subcommand) => ["prisma", subcommand].join(" ");
1266
1262
  return {
1267
1263
  "composer:dev": composerCommand("dev"),
1268
1264
  "composer:deploy": composerCommand("deploy"),
@@ -1647,11 +1643,7 @@ const runComposerDeployEffect = Effect.fn("Deployment.runComposerDeploy")(functi
1647
1643
  return yield* runPrismaJsonCommandEffect({
1648
1644
  packageManager: options.packageManager,
1649
1645
  projectDir: options.projectDir,
1650
- args: [
1651
- "deploy",
1652
- "module.ts",
1653
- ...reportPath ? ["--report", reportPath] : []
1654
- ],
1646
+ args: ["deploy", ...reportPath ? ["--report", reportPath] : []],
1655
1647
  ...options.onStderrLine ? { onStderrLine: options.onStderrLine } : {}
1656
1648
  }).pipe(Effect.catchTag("PrismaCliCommandError", (error) => Effect.gen(function* () {
1657
1649
  const causeCode = reportPath ? yield* readComposerDeployFailureCode(reportPath) : void 0;
@@ -1785,7 +1777,7 @@ const deployNewProjectWithComposerEffect = Effect.fn("Deployment.deploy")(functi
1785
1777
  verbose: options.verbose,
1786
1778
  json: options.json === true
1787
1779
  }), "build", "build_failed");
1788
- const deployCommand = getLocalPackageBinaryCommand(options.packageManager, "prisma", ["deploy", "module.ts"]);
1780
+ const deployCommand = getLocalPackageBinaryCommand(options.packageManager, "prisma", ["deploy"]);
1789
1781
  yield* Effect.sync(() => {
1790
1782
  clearProgress();
1791
1783
  if (options.verbose) log.step(`Deploying to Prisma with ${deployCommand}.`, { output });
@@ -2814,7 +2806,7 @@ function isJsonOutputRequested(argv) {
2814
2806
  const writeJsonResult = Effect.fn("JsonOutput.write")((result) => Effect.sync(() => process.stdout.write(`${JSON.stringify(result)}\n`)));
2815
2807
  //#endregion
2816
2808
  //#region src/index.ts
2817
- const CLI_VERSION = "0.14.5";
2809
+ const CLI_VERSION = "0.14.6";
2818
2810
  const optionalArgument = (name, description) => Argument.String(name).pipe(Argument.withDescription(description), Argument.optional, Argument.map(Option.getOrUndefined));
2819
2811
  const optionalBoolean = (name, description) => Flag.Boolean(name).pipe(Flag.withDescription(description), Flag.optional, Flag.map(Option.getOrUndefined));
2820
2812
  const optionalString = (name, description) => Flag.String(name).pipe(Flag.withDescription(description), Flag.optional, Flag.map(Option.getOrUndefined));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma",
3
- "version": "0.14.5",
3
+ "version": "0.14.6",
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",
@@ -38,6 +38,7 @@ export default definePrismaConfig({
38
38
  },
39
39
  }),
40
40
  composer: composer({
41
+ entry: "./module.ts",
41
42
  extensions: [prismaCloud({ region: "us-east-1" }), nodeBuild(){{#if (eq template "next")}}, nextjsBuild(){{/if}}],
42
43
  state: prismaState(),
43
44
  }),