create-prisma 0.4.2-pr.34.114.1 → 0.4.2-pr.34.115.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
|
@@ -1714,7 +1714,8 @@ const DEPLOY_OPTIONS_BY_TEMPLATE = {
|
|
|
1714
1714
|
},
|
|
1715
1715
|
elysia: {
|
|
1716
1716
|
framework: "bun",
|
|
1717
|
-
httpPort: 8080
|
|
1717
|
+
httpPort: 8080,
|
|
1718
|
+
requiresExplicitFramework: true
|
|
1718
1719
|
},
|
|
1719
1720
|
next: { framework: "nextjs" },
|
|
1720
1721
|
"tanstack-start": { framework: "tanstack-start" }
|
|
@@ -1730,18 +1731,16 @@ function getPrismaCliAppDeployCommand(packageManager) {
|
|
|
1730
1731
|
]);
|
|
1731
1732
|
}
|
|
1732
1733
|
function getComputeDeployScriptMap(context) {
|
|
1733
|
-
const deployArgs = [
|
|
1734
|
-
"--prod",
|
|
1735
|
-
"--framework",
|
|
1736
|
-
context.framework,
|
|
1737
|
-
...context.httpPort ? ["--http-port", String(context.httpPort)] : []
|
|
1738
|
-
];
|
|
1734
|
+
const deployArgs = ["--prod", ...getComputeDeployRuntimeArgs(context)];
|
|
1739
1735
|
const deployCommand = [getPrismaCliAppDeployCommand(context.packageManager), ...deployArgs].join(" ");
|
|
1740
1736
|
return {
|
|
1741
1737
|
"compute:deploy": deployCommand,
|
|
1742
1738
|
"compute:deploy:ci": `${deployCommand} --yes`
|
|
1743
1739
|
};
|
|
1744
1740
|
}
|
|
1741
|
+
function getComputeDeployRuntimeArgs(context) {
|
|
1742
|
+
return [...context.requiresExplicitFramework ? ["--framework", context.framework] : [], ...context.httpPort ? ["--http-port", String(context.httpPort)] : []];
|
|
1743
|
+
}
|
|
1745
1744
|
function runPrismaCli(packageManager, args, options = {}) {
|
|
1746
1745
|
const execution = getPackageExecutionArgs(getPrismaCliExecutionPackageManager(packageManager), [PRISMA_CLI_PACKAGE, ...args]);
|
|
1747
1746
|
return execa(execution.command, execution.args, options);
|
|
@@ -1817,7 +1816,8 @@ async function collectComputeDeployContext(input, options) {
|
|
|
1817
1816
|
packageManager: options.packageManager,
|
|
1818
1817
|
createProjectName: options.defaultServiceName,
|
|
1819
1818
|
framework: deployOptions.framework,
|
|
1820
|
-
httpPort: deployOptions.httpPort
|
|
1819
|
+
httpPort: deployOptions.httpPort,
|
|
1820
|
+
requiresExplicitFramework: deployOptions.requiresExplicitFramework
|
|
1821
1821
|
};
|
|
1822
1822
|
}
|
|
1823
1823
|
function redactSecrets(message) {
|
|
@@ -1863,10 +1863,9 @@ async function executeComputeDeployContext(params) {
|
|
|
1863
1863
|
"deploy",
|
|
1864
1864
|
"--json",
|
|
1865
1865
|
"--yes",
|
|
1866
|
-
"--framework",
|
|
1867
|
-
params.context.framework,
|
|
1868
1866
|
"--create-project",
|
|
1869
|
-
params.context.createProjectName
|
|
1867
|
+
params.context.createProjectName,
|
|
1868
|
+
...getComputeDeployRuntimeArgs(params.context)
|
|
1870
1869
|
];
|
|
1871
1870
|
try {
|
|
1872
1871
|
for (const [key, value] of Object.entries(params.envVars ?? {})) args.push("--env", `${key}=${value}`);
|
|
@@ -1960,7 +1959,7 @@ async function getAnonymousId() {
|
|
|
1960
1959
|
}
|
|
1961
1960
|
function getCommonProperties() {
|
|
1962
1961
|
return {
|
|
1963
|
-
"cli-version": "0.4.2-pr.34.
|
|
1962
|
+
"cli-version": "0.4.2-pr.34.115.1",
|
|
1964
1963
|
"node-version": process.version,
|
|
1965
1964
|
platform: process.platform,
|
|
1966
1965
|
arch: process.arch
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as DatabaseUrlSchema, i as DatabaseProviderSchema, n as CreateCommandInputSchema, o as PackageManagerSchema, r as CreateTemplateSchema, s as SchemaPresetSchema, t as runCreateCommand } from "./create-
|
|
2
|
+
import { a as DatabaseUrlSchema, i as DatabaseProviderSchema, n as CreateCommandInputSchema, o as PackageManagerSchema, r as CreateTemplateSchema, s as SchemaPresetSchema, t as runCreateCommand } from "./create-C6wQ1yYn.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-pr.34.
|
|
7
|
+
const CLI_VERSION = "0.4.2-pr.34.115.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