@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,15 +26,15 @@ 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_LLGEQ76N_exports = {};
|
30
|
+
__export(chunk_LLGEQ76N_exports, {
|
31
31
|
MigrateDev: () => MigrateDev,
|
32
32
|
init_MigrateDev: () => init_MigrateDev
|
33
33
|
});
|
34
|
-
module.exports = __toCommonJS(
|
34
|
+
module.exports = __toCommonJS(chunk_LLGEQ76N_exports);
|
35
35
|
var import_chunk_IFCV5MY4 = require("./chunk-IFCV5MY4.js");
|
36
36
|
var import_chunk_SGCF5OHF = require("./chunk-SGCF5OHF.js");
|
37
|
-
var
|
37
|
+
var import_chunk_EFPE3Q7J = require("./chunk-EFPE3Q7J.js");
|
38
38
|
var import_chunk_WOOPRG54 = require("./chunk-WOOPRG54.js");
|
39
39
|
var import_chunk_6QFE3AWR = require("./chunk-6QFE3AWR.js");
|
40
40
|
var import_chunk_MWEO3VUS = require("./chunk-MWEO3VUS.js");
|
@@ -60,7 +60,7 @@ var init_MigrateDev = (0, import_chunk_WWAWV7DQ.__esm)({
|
|
60
60
|
(0, import_chunk_WOOPRG54.init_printFiles)();
|
61
61
|
(0, import_chunk_6QFE3AWR.init_printMigrationId)();
|
62
62
|
(0, import_chunk_IFCV5MY4.init_promptForMigrationName)();
|
63
|
-
(0,
|
63
|
+
(0, import_chunk_EFPE3Q7J.init_seed)();
|
64
64
|
debug = (0, import_debug.default)("prisma:migrate:dev");
|
65
65
|
_MigrateDev = class _MigrateDev2 {
|
66
66
|
static new() {
|
@@ -268,10 +268,10 @@ ${(0, import_chunk_6TE2RIPN.green)("Your database is now in sync with your schem
|
|
268
268
|
}
|
269
269
|
if ((wasDbCreated || devDiagnostic.action.tag === "reset") && !process.env.PRISMA_MIGRATE_SKIP_SEED && !args["--skip-seed"]) {
|
270
270
|
try {
|
271
|
-
const seedCommandFromPkgJson = await (0,
|
271
|
+
const seedCommandFromPkgJson = await (0, import_chunk_EFPE3Q7J.getSeedCommandFromPackageJson)(process.cwd());
|
272
272
|
if (seedCommandFromPkgJson) {
|
273
273
|
process.stdout.write("\n");
|
274
|
-
const successfulSeeding = await (0,
|
274
|
+
const successfulSeeding = await (0, import_chunk_EFPE3Q7J.executeSeedCommand)({ commandFromConfig: seedCommandFromPkgJson });
|
275
275
|
if (successfulSeeding) {
|
276
276
|
process.stdout.write(`
|
277
277
|
${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been executed.
|
@@ -281,7 +281,7 @@ ${process.platform === "win32" ? "" : "\u{1F331} "}The seed command has been ex
|
|
281
281
|
}
|
282
282
|
} else {
|
283
283
|
const { schemaPath: schemaPath2 } = await (0, import_internals.getSchemaWithPath)(args["--schema"]);
|
284
|
-
await (0,
|
284
|
+
await (0, import_chunk_EFPE3Q7J.verifySeedConfigAndReturnMessage)(schemaPath2);
|
285
285
|
}
|
286
286
|
} catch (e) {
|
287
287
|
console.error(e);
|