@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.
@@ -14,7 +14,7 @@ import {
14
14
  platformParameters,
15
15
  poll,
16
16
  printPpgInitOutput
17
- } from "./chunk-PNUQLAGM.js";
17
+ } from "./chunk-BGUTM6CI.js";
18
18
  export {
19
19
  __exports as Accelerate,
20
20
  __exports2 as Auth,
@@ -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.4";
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
@@ -1,5 +1,5 @@
1
1
  import { PrismaConfigInternal } from '@prisma/config';
2
2
 
3
- declare function run(args: string[], config: PrismaConfigInternal): Promise<string | Error>;
3
+ declare function run(args: string[], config: PrismaConfigInternal): Promise<void>;
4
4
 
5
5
  export { run };
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  printPpgInitOutput,
5
5
  requestOrThrow,
6
6
  successMessage
7
- } from "./chunk-PNUQLAGM.js";
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("./_-L7JAXIED.js");
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
- return new Init().parse(args, config);
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/cli-init",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Init CLI for Prisma",
5
5
  "type": "module",
6
6
  "sideEffects": false,