create-prisma 0.4.2-next.37.84.1 → 0.4.2-next.37.85.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
|
@@ -40,7 +40,7 @@ async function getAnonymousId() {
|
|
|
40
40
|
}
|
|
41
41
|
function getCommonProperties() {
|
|
42
42
|
return {
|
|
43
|
-
"cli-version": "0.4.2-next.37.
|
|
43
|
+
"cli-version": "0.4.2-next.37.85.1",
|
|
44
44
|
"node-version": process.version,
|
|
45
45
|
platform: process.platform,
|
|
46
46
|
arch: process.arch
|
|
@@ -1520,7 +1520,7 @@ async function installDependenciesForContext(context, projectDir) {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
async function finalizePrismaFilesForContext(context, projectDir, provisionResult) {
|
|
1522
1522
|
const initSpinner = spinner();
|
|
1523
|
-
initSpinner.start("
|
|
1523
|
+
initSpinner.start("Writing Prisma Next project files...");
|
|
1524
1524
|
try {
|
|
1525
1525
|
await finalizePrismaFiles({
|
|
1526
1526
|
provider: context.databaseProvider,
|
|
@@ -1528,10 +1528,10 @@ async function finalizePrismaFilesForContext(context, projectDir, provisionResul
|
|
|
1528
1528
|
claimUrl: provisionResult.claimUrl,
|
|
1529
1529
|
projectDir
|
|
1530
1530
|
});
|
|
1531
|
-
initSpinner.stop("Prisma Next files ready.");
|
|
1531
|
+
initSpinner.stop("Prisma Next project files ready.");
|
|
1532
1532
|
return true;
|
|
1533
1533
|
} catch (error) {
|
|
1534
|
-
initSpinner.stop("Could not
|
|
1534
|
+
initSpinner.stop("Could not write Prisma Next project files.");
|
|
1535
1535
|
cancel(getCommandErrorMessage(error));
|
|
1536
1536
|
return false;
|
|
1537
1537
|
}
|
|
@@ -1578,15 +1578,15 @@ async function emitPrismaNextContractForContext(context, projectDir) {
|
|
|
1578
1578
|
const emitCommand = getPrismaNextCliCommand(context.packageManager, ["contract", "emit"]);
|
|
1579
1579
|
if (context.verbose) log.step(`Running ${emitCommand}`);
|
|
1580
1580
|
const emitSpinner = context.verbose ? void 0 : spinner();
|
|
1581
|
-
emitSpinner?.start("Emitting Prisma Next contract...");
|
|
1581
|
+
emitSpinner?.start("Emitting Prisma Next contract artifacts...");
|
|
1582
1582
|
try {
|
|
1583
1583
|
const emitArgs = getPrismaNextCliArgs(context.packageManager, ["contract", "emit"]);
|
|
1584
1584
|
await execa(emitArgs.command, emitArgs.args, {
|
|
1585
1585
|
cwd: prismaProjectDir,
|
|
1586
1586
|
stdio: context.verbose ? "inherit" : "pipe"
|
|
1587
1587
|
});
|
|
1588
|
-
if (context.verbose) log.success("Prisma Next contract emitted.");
|
|
1589
|
-
else emitSpinner?.stop("Prisma Next contract emitted.");
|
|
1588
|
+
if (context.verbose) log.success("Prisma Next contract artifacts emitted.");
|
|
1589
|
+
else emitSpinner?.stop("Prisma Next contract artifacts emitted.");
|
|
1590
1590
|
return { didEmitContract: true };
|
|
1591
1591
|
} catch (error) {
|
|
1592
1592
|
if (context.verbose) log.warn("Could not emit Prisma Next contract.");
|
|
@@ -1660,14 +1660,14 @@ async function executePrismaSetupContext(context, options = {}) {
|
|
|
1660
1660
|
didEmitContract: emitResult.didEmitContract
|
|
1661
1661
|
});
|
|
1662
1662
|
if (warningLines.length > 0) note(warningLines.map((line) => line.replace(/^- /, "")).join("\n"), "Heads up");
|
|
1663
|
-
note(formatNextSteps(nextSteps), "Next steps");
|
|
1664
|
-
outro("
|
|
1663
|
+
note(formatNextSteps(nextSteps), "Next steps for Prisma Next");
|
|
1664
|
+
outro("Prisma Next setup complete.");
|
|
1665
1665
|
return true;
|
|
1666
1666
|
}
|
|
1667
1667
|
|
|
1668
1668
|
//#endregion
|
|
1669
1669
|
//#region src/ui/branding.ts
|
|
1670
|
-
const prismaTitle = `${styleText(["bold", "
|
|
1670
|
+
const prismaTitle = `${styleText(["bold", "cyanBright"], "◭")} ${styleText(["bold", "cyanBright"], "Create")} ${styleText(["bold", "magentaBright"], "Prisma")} ${styleText(["bold", "blueBright"], "Next")}`;
|
|
1671
1671
|
function getCreatePrismaIntro() {
|
|
1672
1672
|
return prismaTitle;
|
|
1673
1673
|
}
|
|
@@ -1856,7 +1856,7 @@ async function collectCreateContext(input) {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
async function executeCreateContext(context) {
|
|
1858
1858
|
const scaffoldSpinner = spinner();
|
|
1859
|
-
scaffoldSpinner.start(`Scaffolding ${context.template}
|
|
1859
|
+
scaffoldSpinner.start(`Scaffolding ${context.template} starter...`);
|
|
1860
1860
|
try {
|
|
1861
1861
|
await scaffoldCreateTemplate({
|
|
1862
1862
|
projectDir: context.targetDirectory,
|
|
@@ -1867,9 +1867,9 @@ async function executeCreateContext(context) {
|
|
|
1867
1867
|
authoring: context.prismaSetupContext.authoring,
|
|
1868
1868
|
packageManager: context.prismaSetupContext.packageManager
|
|
1869
1869
|
});
|
|
1870
|
-
scaffoldSpinner.stop("
|
|
1870
|
+
scaffoldSpinner.stop("Starter files scaffolded.");
|
|
1871
1871
|
} catch (error) {
|
|
1872
|
-
scaffoldSpinner.stop("Could not scaffold
|
|
1872
|
+
scaffoldSpinner.stop("Could not scaffold starter files.");
|
|
1873
1873
|
return {
|
|
1874
1874
|
ok: false,
|
|
1875
1875
|
stage: "scaffold_template",
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as DatabaseProviderSchema, c as SchemaPresetSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as DatabaseUrlSchema, r as CreateCommandInputSchema, s as PackageManagerSchema, t as runCreateCommand } from "./create-
|
|
2
|
+
import { a as DatabaseProviderSchema, c as SchemaPresetSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as DatabaseUrlSchema, r as CreateCommandInputSchema, s as PackageManagerSchema, t as runCreateCommand } from "./create-BmezPnjP.mjs";
|
|
3
3
|
import { os } from "@orpc/server";
|
|
4
4
|
import { createCli } from "trpc-cli";
|
|
5
5
|
|
|
6
6
|
//#region src/index.ts
|
|
7
|
-
const CLI_VERSION = "0.4.2-next.37.
|
|
7
|
+
const CLI_VERSION = "0.4.2-next.37.85.1";
|
|
8
8
|
const router = os.router({ create: os.meta({
|
|
9
9
|
description: "Create a new project with Prisma setup",
|
|
10
10
|
default: true,
|
package/package.json
CHANGED