@prisma/cli-init 0.0.4 → 0.0.5
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.
|
@@ -345,7 +345,7 @@ import internals5 from "@prisma/internals";
|
|
|
345
345
|
import * as Checkpoint from "checkpoint-client";
|
|
346
346
|
|
|
347
347
|
// package.json
|
|
348
|
-
var version = "0.0.
|
|
348
|
+
var version = "0.0.5";
|
|
349
349
|
|
|
350
350
|
// src/platform/_lib/userAgent.ts
|
|
351
351
|
var debug = Debug("prisma:cli:platform:_lib:userAgent");
|
|
@@ -547,7 +547,7 @@ var $2 = createNamespace();
|
|
|
547
547
|
import { select } from "@inquirer/prompts";
|
|
548
548
|
import Debug2 from "@prisma/debug";
|
|
549
549
|
import internals7 from "@prisma/internals";
|
|
550
|
-
import listen from "async-listen";
|
|
550
|
+
import { listen } from "async-listen";
|
|
551
551
|
import http from "http";
|
|
552
552
|
import { green as green3 } from "kleur/colors";
|
|
553
553
|
import open from "open";
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
printPpgInitOutput,
|
|
5
5
|
requestOrThrow,
|
|
6
6
|
successMessage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-BGUTM6CI.js";
|
|
8
8
|
|
|
9
9
|
// src/Init.ts
|
|
10
10
|
import { confirm, input, select } from "@inquirer/prompts";
|
|
@@ -342,7 +342,7 @@ var Init = class _Init {
|
|
|
342
342
|
let generatedSchema;
|
|
343
343
|
let generatedName;
|
|
344
344
|
if (isPpgCommand) {
|
|
345
|
-
const PlatformCommands = await import("./_-
|
|
345
|
+
const PlatformCommands = await import("./_-MD33MAJW.js");
|
|
346
346
|
const credentials = await credentialsFile.load();
|
|
347
347
|
if (internals.isError(credentials))
|
|
348
348
|
throw credentials;
|
|
@@ -588,8 +588,13 @@ ${_Init.help}`);
|
|
|
588
588
|
};
|
|
589
589
|
|
|
590
590
|
// src/index.ts
|
|
591
|
-
function run(args, config) {
|
|
592
|
-
|
|
591
|
+
async function run(args, config) {
|
|
592
|
+
const response = await new Init().parse(args, config);
|
|
593
|
+
if (response instanceof Error) {
|
|
594
|
+
throw response;
|
|
595
|
+
} else {
|
|
596
|
+
console.log(response);
|
|
597
|
+
}
|
|
593
598
|
}
|
|
594
599
|
export {
|
|
595
600
|
run
|