@prisma/migrate 5.22.0-integration-remove-custom-yarn-logic.1 → 5.22.0-integration-engines-5-22-0-8-integration-itx-refactor-9bb49c906d23e0946061d551777bdac14ae4d17d.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/bin.js +14 -13
- package/dist/{chunk-F5EZH7R5.js → chunk-DPSX7IAE.js} +92 -6
- package/dist/chunk-EFPE3Q7J.js +424 -0
- package/dist/{chunk-O6RO4YUZ.js → chunk-LLGEQ76N.js} +8 -8
- package/dist/{chunk-YKUZUAXA.js → chunk-WIZM7TFT.js} +55 -443
- package/dist/{chunk-75AMGQ4R.js → chunk-XVL5RF2T.js} +8 -8
- package/dist/{chunk-4D5LNZLQ.js → chunk-YA2IHLWJ.js} +93 -7
- package/dist/{chunk-E2XKFV2C.js → chunk-ZLGLVUFD.js} +8 -8
- package/dist/commands/DbSeed.js +5 -4
- package/dist/commands/MigrateDev.js +5 -4
- package/dist/commands/MigrateDiff.js +4 -3
- package/dist/commands/MigrateReset.js +5 -4
- package/dist/index.js +14 -13
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/checkYarnVersion.d.ts +9 -0
- package/dist/internals/src/get-generators/generatorResolvers/prisma-client-js/check-dependencies/isYarnUsed.d.ts +1 -0
- package/dist/internals/src/utils/isCurrentBinInstalledGlobally.d.ts +1 -1
- package/dist/utils/seed.js +7 -6
- package/package.json +7 -6
@@ -26,13 +26,13 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_XVL5RF2T_exports = {};
|
30
|
+
__export(chunk_XVL5RF2T_exports, {
|
31
31
|
MigrateReset: () => MigrateReset,
|
32
32
|
init_MigrateReset: () => init_MigrateReset
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
35
|
-
var
|
34
|
+
module.exports = __toCommonJS(chunk_XVL5RF2T_exports);
|
35
|
+
var import_chunk_EFPE3Q7J = require("./chunk-EFPE3Q7J.js");
|
36
36
|
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
37
37
|
var import_chunk_MWEO3VUS = require("./chunk-MWEO3VUS.js");
|
38
38
|
var import_chunk_U374EXYQ = require("./chunk-U374EXYQ.js");
|
@@ -53,7 +53,7 @@ var init_MigrateReset = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
53
53
|
(0, import_chunk_EYA6AFSF.init_getSchemaPathAndPrint)();
|
54
54
|
(0, import_chunk_Q7ACZDDT.init_printDatasource)();
|
55
55
|
(0, import_chunk_WOOPRG54.init_printFiles)();
|
56
|
-
(0,
|
56
|
+
(0, import_chunk_EFPE3Q7J.init_seed)();
|
57
57
|
_MigrateReset = class _MigrateReset2 {
|
58
58
|
static new() {
|
59
59
|
return new _MigrateReset2();
|
@@ -128,10 +128,10 @@ ${(0, import_chunk_WOOPRG54.printFilesFromMigrationIds)("migrations", migrationI
|
|
128
128
|
await migrate.tryToRunGenerate();
|
129
129
|
}
|
130
130
|
if (!process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
|
131
|
-
const seedCommandFromPkgJson = await (0,
|
131
|
+
const seedCommandFromPkgJson = await (0, import_chunk_EFPE3Q7J.getSeedCommandFromPackageJson)(process.cwd());
|
132
132
|
if (seedCommandFromPkgJson) {
|
133
133
|
process.stdout.write("\n");
|
134
|
-
const successfulSeeding = await (0,
|
134
|
+
const successfulSeeding = await (0, import_chunk_EFPE3Q7J.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
|
135
135
|
if (successfulSeeding) {
|
136
136
|
process.stdout.write(`
|
137
137
|
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
|
@@ -141,7 +141,7 @@ ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been ex
|
|
141
141
|
}
|
142
142
|
} else {
|
143
143
|
const { schemaPath: schemaPath2 } = await (0, import_internals.getSchemaWithPath)(args["--schema"]);
|
144
|
-
await (0,
|
144
|
+
await (0, import_chunk_EFPE3Q7J.verifySeedConfigAndReturnMessage)(schemaPath2);
|
145
145
|
}
|
146
146
|
}
|
147
147
|
return ``;
|
@@ -26,15 +26,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
26
26
|
mod
|
27
27
|
));
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
29
|
-
var
|
30
|
-
__export(
|
29
|
+
var chunk_YA2IHLWJ_exports = {};
|
30
|
+
__export(chunk_YA2IHLWJ_exports, {
|
31
31
|
MigrateDiff: () => MigrateDiff,
|
32
32
|
init_MigrateDiff: () => init_MigrateDiff
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_YA2IHLWJ_exports);
|
35
35
|
var import_chunk_VWV2NY26 = require("./chunk-VWV2NY26.js");
|
36
36
|
var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
|
37
37
|
var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
|
38
|
+
var import_chunk_WIZM7TFT = require("./chunk-WIZM7TFT.js");
|
38
39
|
var import_chunk_MWEO3VUS = require("./chunk-MWEO3VUS.js");
|
39
40
|
var import_chunk_LVFPGUOH = require("./chunk-LVFPGUOH.js");
|
40
41
|
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
@@ -10753,7 +10754,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
10753
10754
|
"../internals/package.json"(exports, module2) {
|
10754
10755
|
module2.exports = {
|
10755
10756
|
name: "@prisma/internals",
|
10756
|
-
version: "5.22.0-integration-
|
10757
|
+
version: "5.22.0-integration-engines-5-22-0-8-integration-itx-refactor-9bb49c906d23e0946061d551777bdac14ae4d17d.2",
|
10757
10758
|
description: "This package is intended for Prisma's internal use",
|
10758
10759
|
main: "dist/index.js",
|
10759
10760
|
types: "dist/index.d.ts",
|
@@ -10838,7 +10839,7 @@ var require_package = (0, import_chunk_WWAWV7DQ.__commonJS)({
|
|
10838
10839
|
"@prisma/fetch-engine": "workspace:*",
|
10839
10840
|
"@prisma/generator-helper": "workspace:*",
|
10840
10841
|
"@prisma/get-platform": "workspace:*",
|
10841
|
-
"@prisma/prisma-schema-wasm": "5.22.0-
|
10842
|
+
"@prisma/prisma-schema-wasm": "5.22.0-8.integration-itx-refactor-9bb49c906d23e0946061d551777bdac14ae4d17d",
|
10842
10843
|
"@prisma/schema-files-loader": "workspace:*",
|
10843
10844
|
arg: "5.0.2",
|
10844
10845
|
prompts: "2.4.2"
|
@@ -11207,9 +11208,14 @@ async function getSchemaWithPathInternal(schemaPathFromArgs, { cwd, argumentName
|
|
11207
11208
|
if (defaultResult.ok) {
|
11208
11209
|
return defaultResult;
|
11209
11210
|
}
|
11211
|
+
const yarnResult = await getSchemaFromYarn1Workspace(cwd, defaultResult.error.failures);
|
11212
|
+
if (yarnResult.ok) {
|
11213
|
+
return yarnResult;
|
11214
|
+
}
|
11215
|
+
const finalError = yarnResult.error.kind === "Yarn1WorkspaceSchemaNotFound" ? defaultResult.error : yarnResult.error;
|
11210
11216
|
return {
|
11211
11217
|
ok: false,
|
11212
|
-
error:
|
11218
|
+
error: finalError
|
11213
11219
|
};
|
11214
11220
|
}
|
11215
11221
|
function renderLookupError(error) {
|
@@ -11284,6 +11290,47 @@ async function getSchemaFromPackageJson(cwd) {
|
|
11284
11290
|
}
|
11285
11291
|
return lookupResult;
|
11286
11292
|
}
|
11293
|
+
async function getSchemaFromYarn1Workspace(cwd, pastFailures) {
|
11294
|
+
if (!process.env.npm_config_user_agent?.includes("yarn")) {
|
11295
|
+
return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
|
11296
|
+
}
|
11297
|
+
let workspaces;
|
11298
|
+
try {
|
11299
|
+
const { stdout: version2 } = await import_execa.default.command("yarn --version", {
|
11300
|
+
cwd
|
11301
|
+
});
|
11302
|
+
if (version2.startsWith("2")) {
|
11303
|
+
return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
|
11304
|
+
}
|
11305
|
+
const { stdout } = await import_execa.default.command("yarn workspaces info --json", {
|
11306
|
+
cwd
|
11307
|
+
});
|
11308
|
+
const json = getJson(stdout);
|
11309
|
+
workspaces = Object.values(json);
|
11310
|
+
} catch {
|
11311
|
+
return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
|
11312
|
+
}
|
11313
|
+
const workspaceRootDir = await findWorkspaceRoot(cwd);
|
11314
|
+
if (!workspaceRootDir) {
|
11315
|
+
return { ok: false, error: { kind: "Yarn1WorkspaceSchemaNotFound" } };
|
11316
|
+
}
|
11317
|
+
for (const workspace of workspaces) {
|
11318
|
+
const workspacePath = import_path5.default.join(workspaceRootDir, workspace.location);
|
11319
|
+
const workspaceSchema = await tryWorkspacePath(workspacePath, pastFailures);
|
11320
|
+
if (workspaceSchema.ok) {
|
11321
|
+
return workspaceSchema;
|
11322
|
+
}
|
11323
|
+
}
|
11324
|
+
const rootPathSchema = await tryWorkspacePath(workspaceRootDir, pastFailures);
|
11325
|
+
return rootPathSchema;
|
11326
|
+
}
|
11327
|
+
async function tryWorkspacePath(cwd, pastFailures) {
|
11328
|
+
const pkgJson = await getSchemaFromPackageJson(cwd);
|
11329
|
+
if (pkgJson.ok) {
|
11330
|
+
return pkgJson;
|
11331
|
+
}
|
11332
|
+
return getDefaultSchema(cwd, pastFailures);
|
11333
|
+
}
|
11287
11334
|
async function getDefaultSchema(cwd, failures = []) {
|
11288
11335
|
const schemaPrisma = {
|
11289
11336
|
schemaPath: {
|
@@ -11348,11 +11395,50 @@ async function loadSchemaFromDefaultLocation(lookupPath) {
|
|
11348
11395
|
return readSchemaFromDirectory(lookupPath.path);
|
11349
11396
|
}
|
11350
11397
|
}
|
11351
|
-
|
11398
|
+
function getJson(stdout) {
|
11399
|
+
const firstCurly = stdout.indexOf("{");
|
11400
|
+
const lastCurly = stdout.lastIndexOf("}");
|
11401
|
+
const sliced = stdout.slice(firstCurly, lastCurly + 1);
|
11402
|
+
return JSON.parse(sliced);
|
11403
|
+
}
|
11404
|
+
function isPkgJsonWorkspaceRoot(pkgJson) {
|
11405
|
+
const workspaces = pkgJson.workspaces;
|
11406
|
+
if (!workspaces) {
|
11407
|
+
return false;
|
11408
|
+
}
|
11409
|
+
return Array.isArray(workspaces) || workspaces.packages !== void 0;
|
11410
|
+
}
|
11411
|
+
async function isNearestPkgJsonWorkspaceRoot(cwd) {
|
11412
|
+
const pkgJson = await readPackageUp({ cwd, normalize: false });
|
11413
|
+
if (!pkgJson) {
|
11414
|
+
return null;
|
11415
|
+
}
|
11416
|
+
return {
|
11417
|
+
isRoot: isPkgJsonWorkspaceRoot(pkgJson.packageJson),
|
11418
|
+
path: pkgJson.path
|
11419
|
+
};
|
11420
|
+
}
|
11421
|
+
async function findWorkspaceRoot(cwd) {
|
11422
|
+
let pkgJson = await isNearestPkgJsonWorkspaceRoot(cwd);
|
11423
|
+
if (!pkgJson) {
|
11424
|
+
return null;
|
11425
|
+
}
|
11426
|
+
if (pkgJson.isRoot === true) {
|
11427
|
+
return import_path5.default.dirname(pkgJson.path);
|
11428
|
+
}
|
11429
|
+
const pkgJsonParentDir = import_path5.default.dirname(import_path5.default.dirname(pkgJson.path));
|
11430
|
+
pkgJson = await isNearestPkgJsonWorkspaceRoot(pkgJsonParentDir);
|
11431
|
+
if (!pkgJson || pkgJson.isRoot === false) {
|
11432
|
+
return null;
|
11433
|
+
}
|
11434
|
+
return import_path5.default.dirname(pkgJson.path);
|
11435
|
+
}
|
11436
|
+
var import_schema_files_loader, import_execa, readFile, stat, debug2;
|
11352
11437
|
var init_getSchema = (0, import_chunk_WWAWV7DQ.__esm)({
|
11353
11438
|
"../internals/src/cli/getSchema.ts"() {
|
11354
11439
|
"use strict";
|
11355
11440
|
import_schema_files_loader = (0, import_chunk_WWAWV7DQ.__toESM)(require_dist());
|
11441
|
+
import_execa = (0, import_chunk_WWAWV7DQ.__toESM)((0, import_chunk_WIZM7TFT.require_execa)());
|
11356
11442
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
11357
11443
|
init_read_package_up();
|
11358
11444
|
init_engine_commands();
|
@@ -16,13 +16,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
16
16
|
return to;
|
17
17
|
};
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
var
|
20
|
-
__export(
|
19
|
+
var chunk_ZLGLVUFD_exports = {};
|
20
|
+
__export(chunk_ZLGLVUFD_exports, {
|
21
21
|
DbSeed: () => DbSeed,
|
22
22
|
init_DbSeed: () => init_DbSeed
|
23
23
|
});
|
24
|
-
module.exports = __toCommonJS(
|
25
|
-
var
|
24
|
+
module.exports = __toCommonJS(chunk_ZLGLVUFD_exports);
|
25
|
+
var import_chunk_EFPE3Q7J = require("./chunk-EFPE3Q7J.js");
|
26
26
|
var import_chunk_6TE2RIPN = require("./chunk-6TE2RIPN.js");
|
27
27
|
var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
28
28
|
var import_internals = require("@prisma/internals");
|
@@ -174,7 +174,7 @@ var init_DbSeed = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
174
174
|
"src/commands/DbSeed.ts"() {
|
175
175
|
import_arg = (0, import_chunk_WWAWV7DQ.__toESM)(require_arg());
|
176
176
|
(0, import_chunk_6TE2RIPN.init_colors)();
|
177
|
-
(0,
|
177
|
+
(0, import_chunk_EFPE3Q7J.init_seed)();
|
178
178
|
_DbSeed = class _DbSeed2 {
|
179
179
|
static new() {
|
180
180
|
return new _DbSeed2();
|
@@ -202,17 +202,17 @@ ${(0, import_chunk_6TE2RIPN.dim)("$")} prisma db seed -- --arg1 value1 --arg2 va
|
|
202
202
|
return this.help();
|
203
203
|
}
|
204
204
|
await (0, import_internals.loadEnvFile)({ schemaPath: args["--schema"], printMessage: true });
|
205
|
-
const seedCommandFromPkgJson = await (0,
|
205
|
+
const seedCommandFromPkgJson = await (0, import_chunk_EFPE3Q7J.getSeedCommandFromPackageJson)(process.cwd());
|
206
206
|
if (!seedCommandFromPkgJson) {
|
207
207
|
const schemaResult = await (0, import_internals.getSchemaWithPath)(args["--schema"]);
|
208
|
-
const message = await (0,
|
208
|
+
const message = await (0, import_chunk_EFPE3Q7J.verifySeedConfigAndReturnMessage)(schemaResult?.schemaPath ?? null);
|
209
209
|
if (message) {
|
210
210
|
throw new Error(message);
|
211
211
|
}
|
212
212
|
return ``;
|
213
213
|
}
|
214
214
|
const extraArgs = args._.join(" ");
|
215
|
-
const successfulSeeding = await (0,
|
215
|
+
const successfulSeeding = await (0, import_chunk_EFPE3Q7J.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson, extraArgs });
|
216
216
|
if (successfulSeeding) {
|
217
217
|
return `
|
218
218
|
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.`;
|
package/dist/commands/DbSeed.js
CHANGED
@@ -18,12 +18,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var DbSeed_exports = {};
|
20
20
|
__export(DbSeed_exports, {
|
21
|
-
DbSeed: () =>
|
21
|
+
DbSeed: () => import_chunk_ZLGLVUFD.DbSeed
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(DbSeed_exports);
|
24
|
-
var
|
25
|
-
var
|
24
|
+
var import_chunk_ZLGLVUFD = require("../chunk-ZLGLVUFD.js");
|
25
|
+
var import_chunk_EFPE3Q7J = require("../chunk-EFPE3Q7J.js");
|
26
|
+
var import_chunk_WIZM7TFT = require("../chunk-WIZM7TFT.js");
|
26
27
|
var import_chunk_J46BJQHT = require("../chunk-J46BJQHT.js");
|
27
28
|
var import_chunk_6TE2RIPN = require("../chunk-6TE2RIPN.js");
|
28
29
|
var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
|
29
|
-
(0,
|
30
|
+
(0, import_chunk_ZLGLVUFD.init_DbSeed)();
|
@@ -18,16 +18,17 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var MigrateDev_exports = {};
|
20
20
|
__export(MigrateDev_exports, {
|
21
|
-
MigrateDev: () =>
|
21
|
+
MigrateDev: () => import_chunk_LLGEQ76N.MigrateDev
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(MigrateDev_exports);
|
24
|
-
var
|
24
|
+
var import_chunk_LLGEQ76N = require("../chunk-LLGEQ76N.js");
|
25
25
|
var import_chunk_IFCV5MY4 = require("../chunk-IFCV5MY4.js");
|
26
26
|
var import_chunk_SGCF5OHF = require("../chunk-SGCF5OHF.js");
|
27
|
-
var
|
27
|
+
var import_chunk_EFPE3Q7J = require("../chunk-EFPE3Q7J.js");
|
28
28
|
var import_chunk_WOOPRG54 = require("../chunk-WOOPRG54.js");
|
29
29
|
var import_chunk_6QFE3AWR = require("../chunk-6QFE3AWR.js");
|
30
30
|
var import_chunk_LKTTJWFT = require("../chunk-LKTTJWFT.js");
|
31
|
+
var import_chunk_WIZM7TFT = require("../chunk-WIZM7TFT.js");
|
31
32
|
var import_chunk_MWEO3VUS = require("../chunk-MWEO3VUS.js");
|
32
33
|
var import_chunk_6C7ESGWY = require("../chunk-6C7ESGWY.js");
|
33
34
|
var import_chunk_J46BJQHT = require("../chunk-J46BJQHT.js");
|
@@ -41,4 +42,4 @@ var import_chunk_KEBB7UIB = require("../chunk-KEBB7UIB.js");
|
|
41
42
|
var import_chunk_KPUNMK5W = require("../chunk-KPUNMK5W.js");
|
42
43
|
var import_chunk_6TE2RIPN = require("../chunk-6TE2RIPN.js");
|
43
44
|
var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
|
44
|
-
(0,
|
45
|
+
(0, import_chunk_LLGEQ76N.init_MigrateDev)();
|
@@ -18,13 +18,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var MigrateDiff_exports = {};
|
20
20
|
__export(MigrateDiff_exports, {
|
21
|
-
MigrateDiff: () =>
|
21
|
+
MigrateDiff: () => import_chunk_YA2IHLWJ.MigrateDiff
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(MigrateDiff_exports);
|
24
|
-
var
|
24
|
+
var import_chunk_YA2IHLWJ = require("../chunk-YA2IHLWJ.js");
|
25
25
|
var import_chunk_VWV2NY26 = require("../chunk-VWV2NY26.js");
|
26
26
|
var import_chunk_XRTNIFND = require("../chunk-XRTNIFND.js");
|
27
27
|
var import_chunk_TKAGMA5K = require("../chunk-TKAGMA5K.js");
|
28
|
+
var import_chunk_WIZM7TFT = require("../chunk-WIZM7TFT.js");
|
28
29
|
var import_chunk_MWEO3VUS = require("../chunk-MWEO3VUS.js");
|
29
30
|
var import_chunk_6C7ESGWY = require("../chunk-6C7ESGWY.js");
|
30
31
|
var import_chunk_J46BJQHT = require("../chunk-J46BJQHT.js");
|
@@ -33,4 +34,4 @@ var import_chunk_LVFPGUOH = require("../chunk-LVFPGUOH.js");
|
|
33
34
|
var import_chunk_AAATUOV6 = require("../chunk-AAATUOV6.js");
|
34
35
|
var import_chunk_6TE2RIPN = require("../chunk-6TE2RIPN.js");
|
35
36
|
var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
|
36
|
-
(0,
|
37
|
+
(0, import_chunk_YA2IHLWJ.init_MigrateDiff)();
|
@@ -18,14 +18,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var MigrateReset_exports = {};
|
20
20
|
__export(MigrateReset_exports, {
|
21
|
-
MigrateReset: () =>
|
21
|
+
MigrateReset: () => import_chunk_XVL5RF2T.MigrateReset
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(MigrateReset_exports);
|
24
|
-
var
|
25
|
-
var
|
24
|
+
var import_chunk_XVL5RF2T = require("../chunk-XVL5RF2T.js");
|
25
|
+
var import_chunk_EFPE3Q7J = require("../chunk-EFPE3Q7J.js");
|
26
26
|
var import_chunk_WOOPRG54 = require("../chunk-WOOPRG54.js");
|
27
27
|
var import_chunk_6QFE3AWR = require("../chunk-6QFE3AWR.js");
|
28
28
|
var import_chunk_LKTTJWFT = require("../chunk-LKTTJWFT.js");
|
29
|
+
var import_chunk_WIZM7TFT = require("../chunk-WIZM7TFT.js");
|
29
30
|
var import_chunk_MWEO3VUS = require("../chunk-MWEO3VUS.js");
|
30
31
|
var import_chunk_6C7ESGWY = require("../chunk-6C7ESGWY.js");
|
31
32
|
var import_chunk_J46BJQHT = require("../chunk-J46BJQHT.js");
|
@@ -39,4 +40,4 @@ var import_chunk_KEBB7UIB = require("../chunk-KEBB7UIB.js");
|
|
39
40
|
var import_chunk_KPUNMK5W = require("../chunk-KPUNMK5W.js");
|
40
41
|
var import_chunk_6TE2RIPN = require("../chunk-6TE2RIPN.js");
|
41
42
|
var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
|
42
|
-
(0,
|
43
|
+
(0, import_chunk_XVL5RF2T.init_MigrateReset)();
|
package/dist/index.js
CHANGED
@@ -23,14 +23,14 @@ __export(dist_exports, {
|
|
23
23
|
DbExecute: () => import_chunk_ZBOJAYON.DbExecute,
|
24
24
|
DbPull: () => import_chunk_EXUBPCXZ.DbPull,
|
25
25
|
DbPush: () => import_chunk_76XWADEV.DbPush,
|
26
|
-
DbSeed: () =>
|
26
|
+
DbSeed: () => import_chunk_ZLGLVUFD.DbSeed,
|
27
27
|
EngineResults: () => import_chunk_LVR7W5DD.EngineResults,
|
28
28
|
Migrate: () => import_chunk_MWEO3VUS.Migrate,
|
29
29
|
MigrateCommand: () => import_chunk_CK5VLKFM.MigrateCommand,
|
30
30
|
MigrateDeploy: () => import_chunk_UJWMQPUH.MigrateDeploy,
|
31
|
-
MigrateDev: () =>
|
32
|
-
MigrateDiff: () =>
|
33
|
-
MigrateReset: () =>
|
31
|
+
MigrateDev: () => import_chunk_LLGEQ76N.MigrateDev,
|
32
|
+
MigrateDiff: () => import_chunk_YA2IHLWJ.MigrateDiff,
|
33
|
+
MigrateReset: () => import_chunk_XVL5RF2T.MigrateReset,
|
34
34
|
MigrateResolve: () => import_chunk_BAVMZZAR.MigrateResolve,
|
35
35
|
MigrateStatus: () => import_chunk_SV5GANSI.MigrateStatus,
|
36
36
|
SchemaEngine: () => import_chunk_XLLUFIQK.SchemaEngine,
|
@@ -43,7 +43,7 @@ __export(dist_exports, {
|
|
43
43
|
module.exports = __toCommonJS(dist_exports);
|
44
44
|
var import_chunk_YOW3VBYS = require("./chunk-YOW3VBYS.js");
|
45
45
|
var import_chunk_GJN3CSXW = require("./chunk-GJN3CSXW.js");
|
46
|
-
var
|
46
|
+
var import_chunk_XVL5RF2T = require("./chunk-XVL5RF2T.js");
|
47
47
|
var import_chunk_BAVMZZAR = require("./chunk-BAVMZZAR.js");
|
48
48
|
var import_chunk_SV5GANSI = require("./chunk-SV5GANSI.js");
|
49
49
|
var import_chunk_ZBOJAYON = require("./chunk-ZBOJAYON.js");
|
@@ -59,20 +59,21 @@ var import_chunk_QBK5XTJE = require("./chunk-QBK5XTJE.js");
|
|
59
59
|
var import_chunk_INC2OACE = require("./chunk-INC2OACE.js");
|
60
60
|
var import_chunk_GN5BY5N2 = require("./chunk-GN5BY5N2.js");
|
61
61
|
var import_chunk_76XWADEV = require("./chunk-76XWADEV.js");
|
62
|
-
var
|
62
|
+
var import_chunk_ZLGLVUFD = require("./chunk-ZLGLVUFD.js");
|
63
63
|
var import_chunk_CK5VLKFM = require("./chunk-CK5VLKFM.js");
|
64
64
|
var import_chunk_UJWMQPUH = require("./chunk-UJWMQPUH.js");
|
65
|
-
var
|
65
|
+
var import_chunk_LLGEQ76N = require("./chunk-LLGEQ76N.js");
|
66
66
|
var import_chunk_IFCV5MY4 = require("./chunk-IFCV5MY4.js");
|
67
67
|
var import_chunk_SGCF5OHF = require("./chunk-SGCF5OHF.js");
|
68
|
-
var
|
68
|
+
var import_chunk_EFPE3Q7J = require("./chunk-EFPE3Q7J.js");
|
69
69
|
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
70
70
|
var import_chunk_6QFE3AWR = require("./chunk-6QFE3AWR.js");
|
71
71
|
var import_chunk_LKTTJWFT = require("./chunk-LKTTJWFT.js");
|
72
|
-
var
|
72
|
+
var import_chunk_YA2IHLWJ = require("./chunk-YA2IHLWJ.js");
|
73
73
|
var import_chunk_VWV2NY26 = require("./chunk-VWV2NY26.js");
|
74
74
|
var import_chunk_XRTNIFND = require("./chunk-XRTNIFND.js");
|
75
75
|
var import_chunk_TKAGMA5K = require("./chunk-TKAGMA5K.js");
|
76
|
+
var import_chunk_WIZM7TFT = require("./chunk-WIZM7TFT.js");
|
76
77
|
var import_chunk_MWEO3VUS = require("./chunk-MWEO3VUS.js");
|
77
78
|
var import_chunk_6C7ESGWY = require("./chunk-6C7ESGWY.js");
|
78
79
|
var import_chunk_J46BJQHT = require("./chunk-J46BJQHT.js");
|
@@ -94,12 +95,12 @@ var import_chunk_WWAWV7DQ = require("./chunk-WWAWV7DQ.js");
|
|
94
95
|
(0, import_chunk_ZBOJAYON.init_DbExecute)();
|
95
96
|
(0, import_chunk_EXUBPCXZ.init_DbPull)();
|
96
97
|
(0, import_chunk_76XWADEV.init_DbPush)();
|
97
|
-
(0,
|
98
|
+
(0, import_chunk_ZLGLVUFD.init_DbSeed)();
|
98
99
|
(0, import_chunk_CK5VLKFM.init_MigrateCommand)();
|
99
100
|
(0, import_chunk_UJWMQPUH.init_MigrateDeploy)();
|
100
|
-
(0,
|
101
|
-
(0,
|
102
|
-
(0,
|
101
|
+
(0, import_chunk_LLGEQ76N.init_MigrateDev)();
|
102
|
+
(0, import_chunk_YA2IHLWJ.init_MigrateDiff)();
|
103
|
+
(0, import_chunk_XVL5RF2T.init_MigrateReset)();
|
103
104
|
(0, import_chunk_BAVMZZAR.init_MigrateResolve)();
|
104
105
|
(0, import_chunk_SV5GANSI.init_MigrateStatus)();
|
105
106
|
(0, import_chunk_MWEO3VUS.init_Migrate)();
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Warn, if yarn is older than 1.19.2 because Yarn used to remove all dot
|
3
|
+
* folders inside node_modules before. We use node_modules/.prisma/client
|
4
|
+
* directory as default location for generated Prisma Client. Changelog
|
5
|
+
* https://github.com/yarnpkg/yarn/blob/HEAD/CHANGELOG.md#1192
|
6
|
+
* https://www.prisma.io/docs/reference/system-requirements#software-requirements
|
7
|
+
* // TODO Maybe we replace this with the "engines" field in package.json
|
8
|
+
*/
|
9
|
+
export declare function checkYarnVersion(): void;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function isYarnUsed(baseDir: string): Promise<boolean>;
|
@@ -1 +1 @@
|
|
1
|
-
export declare function isCurrentBinInstalledGlobally(): 'npm' | false;
|
1
|
+
export declare function isCurrentBinInstalledGlobally(): 'npm' | 'yarn' | false;
|
package/dist/utils/seed.js
CHANGED
@@ -18,14 +18,15 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var seed_exports = {};
|
20
20
|
__export(seed_exports, {
|
21
|
-
executeSeedCommand: () =>
|
22
|
-
getSeedCommandFromPackageJson: () =>
|
23
|
-
legacyTsNodeScriptWarning: () =>
|
24
|
-
verifySeedConfigAndReturnMessage: () =>
|
21
|
+
executeSeedCommand: () => import_chunk_EFPE3Q7J.executeSeedCommand,
|
22
|
+
getSeedCommandFromPackageJson: () => import_chunk_EFPE3Q7J.getSeedCommandFromPackageJson,
|
23
|
+
legacyTsNodeScriptWarning: () => import_chunk_EFPE3Q7J.legacyTsNodeScriptWarning,
|
24
|
+
verifySeedConfigAndReturnMessage: () => import_chunk_EFPE3Q7J.verifySeedConfigAndReturnMessage
|
25
25
|
});
|
26
26
|
module.exports = __toCommonJS(seed_exports);
|
27
|
-
var
|
27
|
+
var import_chunk_EFPE3Q7J = require("../chunk-EFPE3Q7J.js");
|
28
|
+
var import_chunk_WIZM7TFT = require("../chunk-WIZM7TFT.js");
|
28
29
|
var import_chunk_J46BJQHT = require("../chunk-J46BJQHT.js");
|
29
30
|
var import_chunk_6TE2RIPN = require("../chunk-6TE2RIPN.js");
|
30
31
|
var import_chunk_WWAWV7DQ = require("../chunk-WWAWV7DQ.js");
|
31
|
-
(0,
|
32
|
+
(0, import_chunk_EFPE3Q7J.init_seed)();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prisma/migrate",
|
3
|
-
"version": "5.22.0-integration-
|
3
|
+
"version": "5.22.0-integration-engines-5-22-0-8-integration-itx-refactor-9bb49c906d23e0946061d551777bdac14ae4d17d.2",
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -31,6 +31,7 @@
|
|
31
31
|
"fp-ts": "2.16.9",
|
32
32
|
"fs-jetpack": "5.1.0",
|
33
33
|
"get-stdin": "8.0.0",
|
34
|
+
"has-yarn": "2.1.0",
|
34
35
|
"indent-string": "4.0.0",
|
35
36
|
"jest": "29.7.0",
|
36
37
|
"jest-junit": "16.0.0",
|
@@ -55,12 +56,12 @@
|
|
55
56
|
"@prisma/internals": "*"
|
56
57
|
},
|
57
58
|
"dependencies": {
|
58
|
-
"@prisma/engines-version": "5.22.0-
|
59
|
+
"@prisma/engines-version": "5.22.0-8.integration-itx-refactor-9bb49c906d23e0946061d551777bdac14ae4d17d",
|
59
60
|
"prompts": "2.4.2",
|
60
|
-
"@prisma/debug": "5.22.0-integration-
|
61
|
-
"@prisma/
|
62
|
-
"@prisma/
|
63
|
-
"@prisma/
|
61
|
+
"@prisma/debug": "5.22.0-integration-engines-5-22-0-8-integration-itx-refactor-9bb49c906d23e0946061d551777bdac14ae4d17d.2",
|
62
|
+
"@prisma/generator-helper": "5.22.0-integration-engines-5-22-0-8-integration-itx-refactor-9bb49c906d23e0946061d551777bdac14ae4d17d.2",
|
63
|
+
"@prisma/get-platform": "5.22.0-integration-engines-5-22-0-8-integration-itx-refactor-9bb49c906d23e0946061d551777bdac14ae4d17d.2",
|
64
|
+
"@prisma/internals": "5.22.0-integration-engines-5-22-0-8-integration-itx-refactor-9bb49c906d23e0946061d551777bdac14ae4d17d.2"
|
64
65
|
},
|
65
66
|
"files": [
|
66
67
|
"README.md",
|