create-prisma 0.9.2-pr.63.231.1 → 0.9.2-pr.63.232.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
|
@@ -41,7 +41,7 @@ async function getAnonymousId() {
|
|
|
41
41
|
}
|
|
42
42
|
function getCommonProperties() {
|
|
43
43
|
return {
|
|
44
|
-
"cli-version": "0.9.2-pr.63.
|
|
44
|
+
"cli-version": "0.9.2-pr.63.232.1",
|
|
45
45
|
"node-version": process.version,
|
|
46
46
|
platform: process.platform,
|
|
47
47
|
arch: process.arch
|
|
@@ -852,7 +852,11 @@ async function getProjectDetails(options) {
|
|
|
852
852
|
return;
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
|
-
|
|
855
|
+
/**
|
|
856
|
+
* Performs the optional one-shot deployment at the end of a create-prisma scaffold.
|
|
857
|
+
* Generated projects use their own `deploy` script for every subsequent deployment.
|
|
858
|
+
*/
|
|
859
|
+
async function deployNewProjectWithComposer(options) {
|
|
856
860
|
const progress = options.verbose ? void 0 : spinner();
|
|
857
861
|
let deploymentLog;
|
|
858
862
|
let progressRunning = false;
|
|
@@ -1234,7 +1238,7 @@ async function executePrismaSetupContext(context, options = {}) {
|
|
|
1234
1238
|
}
|
|
1235
1239
|
let deployment;
|
|
1236
1240
|
if (context.shouldDeploy) {
|
|
1237
|
-
deployment = await
|
|
1241
|
+
deployment = await deployNewProjectWithComposer({
|
|
1238
1242
|
appName: projectName,
|
|
1239
1243
|
packageManager: context.packageManager,
|
|
1240
1244
|
projectDir,
|
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-
|
|
2
|
+
import { a as DatabaseProviderSchema, i as CreateTemplateSchema, n as AuthoringStyleSchema, o as PackageManagerSchema, r as CreateCommandInputSchema, t as runCreateCommand } from "./create-DLnU4PH_.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.9.2-pr.63.
|
|
8
|
+
const CLI_VERSION = "0.9.2-pr.63.232.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