@prisma/composer 0.6.0-dev.15 → 0.6.0-dev.16
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/bin.mjs +399 -12
- package/dist/bin.mjs.map +1 -1
- package/dist/family.mjs +398 -11
- package/dist/family.mjs.map +1 -1
- package/package.json +12 -12
package/dist/family.mjs
CHANGED
|
@@ -1,10 +1,387 @@
|
|
|
1
1
|
import { n as DOCS_BASE } from "./errors-DkXcnjPx.mjs";
|
|
2
2
|
import { c as logWithDeps, i as destroyWithDeps, n as deployWithDeps, o as devWithDeps, u as executionDiagnostics } from "./log-DfT2hHqi-CDp9nfI5.mjs";
|
|
3
3
|
import { t as alchemyCommandLine } from "./run-alchemy-D44OZlyB-DeDTFsB6.mjs";
|
|
4
|
+
import "node:module";
|
|
4
5
|
import { spawn } from "node:child_process";
|
|
5
6
|
import { EnvironmentCredentialManager, createCli, defineCommand, defineCommandFamily, defineConfigSection, defineSessionCommand, exitWithChildStatus, flag, loadConfig, positional } from "@prisma/cli-engine";
|
|
6
7
|
import { CliStructuredError, notOk, ok } from "@prisma/cli-engine/protocol";
|
|
7
|
-
//#region
|
|
8
|
+
//#region \0rolldown/runtime.js
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region ../../../node_modules/ci-info/vendors.json
|
|
12
|
+
var require_vendors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
13
|
+
module.exports = [
|
|
14
|
+
{
|
|
15
|
+
"name": "Agola CI",
|
|
16
|
+
"constant": "AGOLA",
|
|
17
|
+
"env": "AGOLA_GIT_REF",
|
|
18
|
+
"pr": "AGOLA_PULL_REQUEST_ID"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "Alpic",
|
|
22
|
+
"constant": "ALPIC",
|
|
23
|
+
"env": "ALPIC_HOST"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "Appcircle",
|
|
27
|
+
"constant": "APPCIRCLE",
|
|
28
|
+
"env": "AC_APPCIRCLE",
|
|
29
|
+
"pr": {
|
|
30
|
+
"env": "AC_GIT_PR",
|
|
31
|
+
"ne": "false"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "AppVeyor",
|
|
36
|
+
"constant": "APPVEYOR",
|
|
37
|
+
"env": "APPVEYOR",
|
|
38
|
+
"pr": "APPVEYOR_PULL_REQUEST_NUMBER"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "AWS CodeBuild",
|
|
42
|
+
"constant": "CODEBUILD",
|
|
43
|
+
"env": "CODEBUILD_BUILD_ARN",
|
|
44
|
+
"pr": {
|
|
45
|
+
"env": "CODEBUILD_WEBHOOK_EVENT",
|
|
46
|
+
"any": [
|
|
47
|
+
"PULL_REQUEST_CREATED",
|
|
48
|
+
"PULL_REQUEST_UPDATED",
|
|
49
|
+
"PULL_REQUEST_REOPENED"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "Azure Pipelines",
|
|
55
|
+
"constant": "AZURE_PIPELINES",
|
|
56
|
+
"env": "TF_BUILD",
|
|
57
|
+
"pr": { "BUILD_REASON": "PullRequest" }
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "Bamboo",
|
|
61
|
+
"constant": "BAMBOO",
|
|
62
|
+
"env": "bamboo_planKey"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "Bitbucket Pipelines",
|
|
66
|
+
"constant": "BITBUCKET",
|
|
67
|
+
"env": "BITBUCKET_COMMIT",
|
|
68
|
+
"pr": "BITBUCKET_PR_ID"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "Bitrise",
|
|
72
|
+
"constant": "BITRISE",
|
|
73
|
+
"env": "BITRISE_IO",
|
|
74
|
+
"pr": "BITRISE_PULL_REQUEST"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "Buddy",
|
|
78
|
+
"constant": "BUDDY",
|
|
79
|
+
"env": "BUDDY_WORKSPACE_ID",
|
|
80
|
+
"pr": "BUDDY_EXECUTION_PULL_REQUEST_ID"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "Buildkite",
|
|
84
|
+
"constant": "BUILDKITE",
|
|
85
|
+
"env": "BUILDKITE",
|
|
86
|
+
"pr": {
|
|
87
|
+
"env": "BUILDKITE_PULL_REQUEST",
|
|
88
|
+
"ne": "false"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "CircleCI",
|
|
93
|
+
"constant": "CIRCLE",
|
|
94
|
+
"env": "CIRCLECI",
|
|
95
|
+
"pr": "CIRCLE_PULL_REQUEST"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "Cirrus CI",
|
|
99
|
+
"constant": "CIRRUS",
|
|
100
|
+
"env": "CIRRUS_CI",
|
|
101
|
+
"pr": "CIRRUS_PR"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "Cloudflare Pages",
|
|
105
|
+
"constant": "CLOUDFLARE_PAGES",
|
|
106
|
+
"env": "CF_PAGES"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "Cloudflare Workers",
|
|
110
|
+
"constant": "CLOUDFLARE_WORKERS",
|
|
111
|
+
"env": "WORKERS_CI"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "Codefresh",
|
|
115
|
+
"constant": "CODEFRESH",
|
|
116
|
+
"env": "CF_BUILD_ID",
|
|
117
|
+
"pr": { "any": ["CF_PULL_REQUEST_NUMBER", "CF_PULL_REQUEST_ID"] }
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "Codemagic",
|
|
121
|
+
"constant": "CODEMAGIC",
|
|
122
|
+
"env": "CM_BUILD_ID",
|
|
123
|
+
"pr": "CM_PULL_REQUEST"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "Codeship",
|
|
127
|
+
"constant": "CODESHIP",
|
|
128
|
+
"env": { "CI_NAME": "codeship" }
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"name": "Drone",
|
|
132
|
+
"constant": "DRONE",
|
|
133
|
+
"env": "DRONE",
|
|
134
|
+
"pr": { "DRONE_BUILD_EVENT": "pull_request" }
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "dsari",
|
|
138
|
+
"constant": "DSARI",
|
|
139
|
+
"env": "DSARI"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "Earthly",
|
|
143
|
+
"constant": "EARTHLY",
|
|
144
|
+
"env": "EARTHLY_CI"
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"name": "Expo Application Services",
|
|
148
|
+
"constant": "EAS",
|
|
149
|
+
"env": "EAS_BUILD"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"name": "Gerrit",
|
|
153
|
+
"constant": "GERRIT",
|
|
154
|
+
"env": "GERRIT_PROJECT"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "Gitea Actions",
|
|
158
|
+
"constant": "GITEA_ACTIONS",
|
|
159
|
+
"env": "GITEA_ACTIONS"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "GitHub Actions",
|
|
163
|
+
"constant": "GITHUB_ACTIONS",
|
|
164
|
+
"env": "GITHUB_ACTIONS",
|
|
165
|
+
"pr": { "GITHUB_EVENT_NAME": "pull_request" }
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "GitLab CI",
|
|
169
|
+
"constant": "GITLAB",
|
|
170
|
+
"env": "GITLAB_CI",
|
|
171
|
+
"pr": "CI_MERGE_REQUEST_ID"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"name": "GoCD",
|
|
175
|
+
"constant": "GOCD",
|
|
176
|
+
"env": "GO_PIPELINE_LABEL"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"name": "Google Cloud Build",
|
|
180
|
+
"constant": "GOOGLE_CLOUD_BUILD",
|
|
181
|
+
"env": "BUILDER_OUTPUT"
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"name": "Harness CI",
|
|
185
|
+
"constant": "HARNESS",
|
|
186
|
+
"env": "HARNESS_BUILD_ID"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "Heroku",
|
|
190
|
+
"constant": "HEROKU",
|
|
191
|
+
"env": {
|
|
192
|
+
"env": "NODE",
|
|
193
|
+
"includes": "/app/.heroku/node/bin/node"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "Hudson",
|
|
198
|
+
"constant": "HUDSON",
|
|
199
|
+
"env": "HUDSON_URL"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "Jenkins",
|
|
203
|
+
"constant": "JENKINS",
|
|
204
|
+
"env": ["JENKINS_URL", "BUILD_ID"],
|
|
205
|
+
"pr": { "any": ["ghprbPullId", "CHANGE_ID"] }
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"name": "LayerCI",
|
|
209
|
+
"constant": "LAYERCI",
|
|
210
|
+
"env": "LAYERCI",
|
|
211
|
+
"pr": "LAYERCI_PULL_REQUEST"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "Magnum CI",
|
|
215
|
+
"constant": "MAGNUM",
|
|
216
|
+
"env": "MAGNUM"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "Netlify CI",
|
|
220
|
+
"constant": "NETLIFY",
|
|
221
|
+
"env": "NETLIFY",
|
|
222
|
+
"pr": {
|
|
223
|
+
"env": "PULL_REQUEST",
|
|
224
|
+
"ne": "false"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "Nevercode",
|
|
229
|
+
"constant": "NEVERCODE",
|
|
230
|
+
"env": "NEVERCODE",
|
|
231
|
+
"pr": {
|
|
232
|
+
"env": "NEVERCODE_PULL_REQUEST",
|
|
233
|
+
"ne": "false"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "Prow",
|
|
238
|
+
"constant": "PROW",
|
|
239
|
+
"env": "PROW_JOB_ID"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"name": "ReleaseHub",
|
|
243
|
+
"constant": "RELEASEHUB",
|
|
244
|
+
"env": "RELEASE_BUILD_ID"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "Render",
|
|
248
|
+
"constant": "RENDER",
|
|
249
|
+
"env": "RENDER",
|
|
250
|
+
"pr": { "IS_PULL_REQUEST": "true" }
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "Sail CI",
|
|
254
|
+
"constant": "SAIL",
|
|
255
|
+
"env": "SAILCI",
|
|
256
|
+
"pr": "SAIL_PULL_REQUEST_NUMBER"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "Screwdriver",
|
|
260
|
+
"constant": "SCREWDRIVER",
|
|
261
|
+
"env": "SCREWDRIVER",
|
|
262
|
+
"pr": {
|
|
263
|
+
"env": "SD_PULL_REQUEST",
|
|
264
|
+
"ne": "false"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "Semaphore",
|
|
269
|
+
"constant": "SEMAPHORE",
|
|
270
|
+
"env": "SEMAPHORE",
|
|
271
|
+
"pr": "PULL_REQUEST_NUMBER"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"name": "Sourcehut",
|
|
275
|
+
"constant": "SOURCEHUT",
|
|
276
|
+
"env": { "CI_NAME": "sourcehut" }
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "Strider CD",
|
|
280
|
+
"constant": "STRIDER",
|
|
281
|
+
"env": "STRIDER"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "TaskCluster",
|
|
285
|
+
"constant": "TASKCLUSTER",
|
|
286
|
+
"env": ["TASK_ID", "RUN_ID"]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "TeamCity",
|
|
290
|
+
"constant": "TEAMCITY",
|
|
291
|
+
"env": "TEAMCITY_VERSION"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "Travis CI",
|
|
295
|
+
"constant": "TRAVIS",
|
|
296
|
+
"env": "TRAVIS",
|
|
297
|
+
"pr": {
|
|
298
|
+
"env": "TRAVIS_PULL_REQUEST",
|
|
299
|
+
"ne": "false"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"name": "Vela",
|
|
304
|
+
"constant": "VELA",
|
|
305
|
+
"env": "VELA",
|
|
306
|
+
"pr": { "VELA_PULL_REQUEST": "1" }
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "Vercel",
|
|
310
|
+
"constant": "VERCEL",
|
|
311
|
+
"env": { "any": ["NOW_BUILDER", "VERCEL"] },
|
|
312
|
+
"pr": "VERCEL_GIT_PULL_REQUEST_ID"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"name": "Visual Studio App Center",
|
|
316
|
+
"constant": "APPCENTER",
|
|
317
|
+
"env": "APPCENTER_BUILD_ID"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"name": "Woodpecker",
|
|
321
|
+
"constant": "WOODPECKER",
|
|
322
|
+
"env": { "CI": "woodpecker" },
|
|
323
|
+
"pr": { "CI_BUILD_EVENT": "pull_request" }
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "Xcode Cloud",
|
|
327
|
+
"constant": "XCODE_CLOUD",
|
|
328
|
+
"env": "CI_XCODE_PROJECT",
|
|
329
|
+
"pr": "CI_PULL_REQUEST_NUMBER"
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
"name": "Xcode Server",
|
|
333
|
+
"constant": "XCODE_SERVER",
|
|
334
|
+
"env": "XCS"
|
|
335
|
+
}
|
|
336
|
+
];
|
|
337
|
+
}));
|
|
338
|
+
//#endregion
|
|
339
|
+
//#region ../../0-framework/3-tooling/cli/dist/engine-cli-BXXH4fM-.mjs
|
|
340
|
+
var import_ci_info = (/* @__PURE__ */ __commonJSMin(((exports) => {
|
|
341
|
+
const vendors = require_vendors();
|
|
342
|
+
const env = process.env;
|
|
343
|
+
Object.defineProperty(exports, "_vendors", { value: vendors.map(function(v) {
|
|
344
|
+
return v.constant;
|
|
345
|
+
}) });
|
|
346
|
+
exports.name = null;
|
|
347
|
+
exports.isPR = null;
|
|
348
|
+
exports.id = null;
|
|
349
|
+
if (env.CI !== "false") vendors.forEach(function(vendor) {
|
|
350
|
+
const isCI = (Array.isArray(vendor.env) ? vendor.env : [vendor.env]).every(function(obj) {
|
|
351
|
+
return checkEnv(obj);
|
|
352
|
+
});
|
|
353
|
+
exports[vendor.constant] = isCI;
|
|
354
|
+
if (!isCI) return;
|
|
355
|
+
exports.name = vendor.name;
|
|
356
|
+
exports.isPR = checkPR(vendor);
|
|
357
|
+
exports.id = vendor.constant;
|
|
358
|
+
});
|
|
359
|
+
exports.isCI = !!(env.CI !== "false" && (env.BUILD_ID || env.BUILD_NUMBER || env.CI || env.CI_APP_ID || env.CI_BUILD_ID || env.CI_BUILD_NUMBER || env.CI_NAME || env.CONTINUOUS_INTEGRATION || env.RUN_ID || exports.name || false));
|
|
360
|
+
function checkEnv(obj) {
|
|
361
|
+
if (typeof obj === "string") return !!env[obj];
|
|
362
|
+
if ("env" in obj) return env[obj.env] && env[obj.env].includes(obj.includes);
|
|
363
|
+
if ("any" in obj) return obj.any.some(function(k) {
|
|
364
|
+
return !!env[k];
|
|
365
|
+
});
|
|
366
|
+
return Object.keys(obj).every(function(k) {
|
|
367
|
+
return env[k] === obj[k];
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
function checkPR(vendor) {
|
|
371
|
+
switch (typeof vendor.pr) {
|
|
372
|
+
case "string": return !!env[vendor.pr];
|
|
373
|
+
case "object": if ("env" in vendor.pr) if ("any" in vendor.pr) return vendor.pr.any.some(function(key) {
|
|
374
|
+
return env[vendor.pr.env] === key;
|
|
375
|
+
});
|
|
376
|
+
else return vendor.pr.env in env && env[vendor.pr.env] !== vendor.pr.ne;
|
|
377
|
+
else if ("any" in vendor.pr) return vendor.pr.any.some(function(key) {
|
|
378
|
+
return !!env[key];
|
|
379
|
+
});
|
|
380
|
+
else return checkEnv(vendor.pr);
|
|
381
|
+
default: return null;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
})))();
|
|
8
385
|
/**
|
|
9
386
|
* The family boundary's error translation.
|
|
10
387
|
*
|
|
@@ -273,11 +650,11 @@ const createDeployCommand = (operations) => defineCommand({
|
|
|
273
650
|
})), ctx, ({ summary }) => ctx.present({ data: { summary: summary ?? null } }, {
|
|
274
651
|
human: (ui) => summary === void 0 ? [{
|
|
275
652
|
kind: "summary",
|
|
276
|
-
|
|
653
|
+
status: "ok",
|
|
277
654
|
text: "Deployed."
|
|
278
655
|
}] : [{
|
|
279
656
|
kind: "summary",
|
|
280
|
-
|
|
657
|
+
status: "ok",
|
|
281
658
|
text: `Deployed ${ui.emphasize(summary.app)}.`
|
|
282
659
|
}, {
|
|
283
660
|
kind: "table",
|
|
@@ -365,7 +742,7 @@ const createDestroyCommand = (operations) => defineCommand({
|
|
|
365
742
|
client: ctx.api
|
|
366
743
|
})), ctx, () => ctx.present({ data: void 0 }, { human: () => [{
|
|
367
744
|
kind: "summary",
|
|
368
|
-
|
|
745
|
+
status: "ok",
|
|
369
746
|
text: "Destroyed."
|
|
370
747
|
}] }));
|
|
371
748
|
}
|
|
@@ -724,19 +1101,21 @@ function clientConfig(env, apiBaseUrl) {
|
|
|
724
1101
|
/**
|
|
725
1102
|
* Which package manager invoked us, read from the `npm_config_user_agent`
|
|
726
1103
|
* every major manager sets (`pnpm/10.27.0 npm/? node/v24.16.0 darwin arm64`).
|
|
727
|
-
* `
|
|
728
|
-
* normal case, not a failure, so nothing is inferred from the filesystem
|
|
1104
|
+
* `undefined` when the CLI was run directly rather than through a manager — a
|
|
1105
|
+
* normal case, not a failure, so nothing is inferred from the filesystem, and
|
|
1106
|
+
* the engine falls back to its own detection from the project at cwd.
|
|
729
1107
|
*/
|
|
730
1108
|
function detectPackageManager(env) {
|
|
731
1109
|
const agent = env["npm_config_user_agent"];
|
|
732
|
-
if (agent === void 0) return
|
|
1110
|
+
if (agent === void 0) return void 0;
|
|
733
1111
|
const name = agent.split("/")[0];
|
|
734
1112
|
switch (name) {
|
|
735
1113
|
case "npm":
|
|
736
1114
|
case "pnpm":
|
|
737
1115
|
case "yarn":
|
|
738
|
-
case "bun":
|
|
739
|
-
|
|
1116
|
+
case "bun":
|
|
1117
|
+
case "deno": return name;
|
|
1118
|
+
default: return;
|
|
740
1119
|
}
|
|
741
1120
|
}
|
|
742
1121
|
/**
|
|
@@ -745,10 +1124,17 @@ function detectPackageManager(env) {
|
|
|
745
1124
|
* it is about to run declares a config section, and with whatever file
|
|
746
1125
|
* `--config` named. A host that loaded the file up front would read it for runs
|
|
747
1126
|
* that never needed it, and would have nowhere to put `--config`.
|
|
1127
|
+
*
|
|
1128
|
+
* `inCI` is the one thing here not derived from the host: `ci-info` answers it
|
|
1129
|
+
* from the real `process.env` at import, which is what the engine's `isCI` doc
|
|
1130
|
+
* asks a host to wire and what the `prisma` bin already does. Production passes
|
|
1131
|
+
* nothing. It is a parameter so a test can still drive CI state without
|
|
1132
|
+
* touching a process global.
|
|
748
1133
|
*/
|
|
749
|
-
function createRuntime(host, loadConfig) {
|
|
1134
|
+
function createRuntime(host, loadConfig, inCI = import_ci_info.isCI) {
|
|
750
1135
|
const env = host.env;
|
|
751
1136
|
const apiBaseUrl = env["PRISMA_MANAGEMENT_API_URL"] ?? DEFAULT_MANAGEMENT_API_BASE_URL;
|
|
1137
|
+
const packageManager = detectPackageManager(env);
|
|
752
1138
|
return {
|
|
753
1139
|
stdout: host.stdout,
|
|
754
1140
|
stderr: host.stderr,
|
|
@@ -780,7 +1166,8 @@ function createRuntime(host, loadConfig) {
|
|
|
780
1166
|
managementApiClientConfig: clientConfig(env, apiBaseUrl),
|
|
781
1167
|
spawn: spawnChild,
|
|
782
1168
|
managementApi: { baseUrl: apiBaseUrl },
|
|
783
|
-
packageManager
|
|
1169
|
+
...packageManager !== void 0 && { packageManager },
|
|
1170
|
+
isCI: inCI
|
|
784
1171
|
};
|
|
785
1172
|
}
|
|
786
1173
|
/**
|