create-prisma 0.13.2 → 0.13.3-pr.115.380.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,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as ApplicationLayer } from "./json-output-
|
|
2
|
+
import { a as ApplicationLayer } from "./json-output-DnUBfRs5.mjs";
|
|
3
3
|
import { runCreatePrismaCli } from "./index.mjs";
|
|
4
4
|
import { Effect } from "effect";
|
|
5
5
|
import { NodeRuntime } from "@effect/platform-node-shared";
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { _ as authoringStyles, b as normalizeDatabaseProvider, c as CreateCommandResultSchema, d as AuthoringStyleSchema, f as CreateCommandInputSchema, g as agentSkillTargets, h as PackageManagerSchema, i as getErrorMessage, l as createCommandFailureResult, m as DatabaseProviderSchema, n as writeJsonResult, o as applicationRuntime, p as CreateTemplateSchema, r as runCreateCommandEffect, s as CREATE_PRISMA_RESULT_SCHEMA_VERSION, t as isJsonOutputRequested, u as AgentSkillTargetSchema, v as createTemplates, x as packageManagers, y as databaseProviderInputs } from "./json-output-
|
|
2
|
+
import { _ as authoringStyles, b as normalizeDatabaseProvider, c as CreateCommandResultSchema, d as AuthoringStyleSchema, f as CreateCommandInputSchema, g as agentSkillTargets, h as PackageManagerSchema, i as getErrorMessage, l as createCommandFailureResult, m as DatabaseProviderSchema, n as writeJsonResult, o as applicationRuntime, p as CreateTemplateSchema, r as runCreateCommandEffect, s as CREATE_PRISMA_RESULT_SCHEMA_VERSION, t as isJsonOutputRequested, u as AgentSkillTargetSchema, v as createTemplates, x as packageManagers, y as databaseProviderInputs } from "./json-output-DnUBfRs5.mjs";
|
|
3
3
|
import { Console, Effect, Option } from "effect";
|
|
4
4
|
import { Argument, CliError, Command, Flag } from "effect/unstable/cli";
|
|
5
5
|
|
|
6
6
|
//#region src/index.ts
|
|
7
|
-
const CLI_VERSION = "0.13.
|
|
7
|
+
const CLI_VERSION = "0.13.3-pr.115.380.1";
|
|
8
8
|
const optionalArgument = (name, description) => Argument.string(name).pipe(Argument.withDescription(description), Argument.optional, Argument.map(Option.getOrUndefined));
|
|
9
9
|
const optionalBoolean = (name, description) => Flag.boolean(name).pipe(Flag.withDescription(description), Flag.optional, Flag.map(Option.getOrUndefined));
|
|
10
10
|
const optionalString = (name, description) => Flag.string(name).pipe(Flag.withDescription(description), Flag.optional, Flag.map(Option.getOrUndefined));
|
|
@@ -450,20 +450,14 @@ function getPackageManagerErrorCode(command, output) {
|
|
|
450
450
|
|
|
451
451
|
//#endregion
|
|
452
452
|
//#region src/telemetry/client.ts
|
|
453
|
-
const TELEMETRY_API_KEY = "
|
|
453
|
+
const TELEMETRY_API_KEY = "";
|
|
454
454
|
const TELEMETRY_HOST = "https://us.i.posthog.com";
|
|
455
455
|
const TELEMETRY_CONFIG_FILE = "telemetry.json";
|
|
456
456
|
const TELEMETRY_TIMEOUT_MS = 2e3;
|
|
457
457
|
const AnonymousId = Schema.String.check(Schema.isUUID(4));
|
|
458
458
|
const decodeAnonymousId = Schema.decodeUnknownExit(AnonymousId);
|
|
459
|
-
const isTruthyEnvValue = (value) => [
|
|
460
|
-
"1",
|
|
461
|
-
"true",
|
|
462
|
-
"yes",
|
|
463
|
-
"on"
|
|
464
|
-
].includes(String(value ?? "").trim().toLowerCase());
|
|
465
459
|
function shouldDisableTelemetry() {
|
|
466
|
-
return
|
|
460
|
+
return true;
|
|
467
461
|
}
|
|
468
462
|
function getTelemetryConfigDir() {
|
|
469
463
|
if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
|
|
@@ -486,7 +480,7 @@ const getAnonymousIdEffect = Effect.fn("Telemetry.getAnonymousId")(function* ()
|
|
|
486
480
|
return anonymousId;
|
|
487
481
|
});
|
|
488
482
|
const getCommonProperties = () => ({
|
|
489
|
-
"cli-version": "0.13.
|
|
483
|
+
"cli-version": "0.13.3-pr.115.380.1",
|
|
490
484
|
"node-version": process.version,
|
|
491
485
|
platform: process.platform,
|
|
492
486
|
arch: process.arch
|
|
@@ -623,21 +617,21 @@ const trackCreateCancelledEffect = Effect.fn("Telemetry.createCancelled")(functi
|
|
|
623
617
|
const dependencyVersionMap = {
|
|
624
618
|
"@astrojs/node": "^10.0.2",
|
|
625
619
|
"@elysiajs/node": "^1.4.5",
|
|
626
|
-
"@prisma/composer": "0.
|
|
627
|
-
"@prisma/composer-prisma-cloud": "0.
|
|
620
|
+
"@prisma/composer": "0.23.0",
|
|
621
|
+
"@prisma/composer-prisma-cloud": "0.23.0",
|
|
628
622
|
"@prisma/dev": "0.25.2",
|
|
629
|
-
"@prisma/orm-mongo": "8.0.0-rc.
|
|
630
|
-
"@prisma/orm-postgres": "8.0.0-rc.
|
|
623
|
+
"@prisma/orm-mongo": "8.0.0-rc.12",
|
|
624
|
+
"@prisma/orm-postgres": "8.0.0-rc.12",
|
|
631
625
|
"@sveltejs/adapter-node": "^5.3.2",
|
|
632
626
|
"@types/node": "^25.6.2",
|
|
633
|
-
alchemy: "2.0.0-beta.
|
|
627
|
+
alchemy: "2.0.0-beta.78",
|
|
634
628
|
arktype: "^2.2.3",
|
|
635
629
|
dotenv: "^17.4.2",
|
|
636
|
-
effect: "4.0.0-rc.
|
|
630
|
+
effect: "4.0.0-rc.115",
|
|
637
631
|
mongodb: "^7.1.0",
|
|
638
632
|
"mongodb-memory-server": "^11.1.0",
|
|
639
633
|
nitro: "^3.0.260610-beta",
|
|
640
|
-
prisma: "8.0.0-rc.
|
|
634
|
+
prisma: "8.0.0-rc.17",
|
|
641
635
|
"temporal-polyfill": "^1.0.4",
|
|
642
636
|
tsdown: "^0.22.14",
|
|
643
637
|
turbo: "2.10.12",
|
package/package.json
CHANGED