@nuxt/devtools-wizard-nightly 3.2.1-29518581.0216c08 → 3.2.1-29532104.1aa3d2d

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.
@@ -1,12 +1,12 @@
1
1
  import { existsSync } from 'node:fs';
2
2
  import fsp from 'node:fs/promises';
3
3
  import { relative } from 'node:path';
4
+ import * as p from '@clack/prompts';
4
5
  import { consola } from 'consola';
5
6
  import { colors } from 'consola/utils';
6
7
  import { diffLines } from 'diff';
7
8
  import { parseModule } from 'magicast';
8
9
  import { join } from 'pathe';
9
- import prompts from 'prompts';
10
10
 
11
11
  function findNuxtConfig(cwd) {
12
12
  const names = [
@@ -52,13 +52,11 @@ async function toggleConfig(cwd, value) {
52
52
  consola.log("");
53
53
  printDiffToCLI(source, generated);
54
54
  consola.log("");
55
- const { confirm } = await prompts({
56
- type: "confirm",
57
- name: "confirm",
55
+ const confirm = await p.confirm({
58
56
  message: "Continue?",
59
- initial: true
57
+ initialValue: true
60
58
  });
61
- if (!confirm)
59
+ if (confirm !== true)
62
60
  return false;
63
61
  await fsp.writeFile(nuxtConfig, `${generated.trimEnd()}
64
62
  `, "utf-8");
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { colors } from 'consola/utils';
3
3
  import { readPackageJSON } from 'pkg-types';
4
4
 
5
5
  const name = "@nuxt/devtools-wizard-nightly";
6
- const version = "3.2.1-29518581.0216c08";
6
+ const version = "3.2.1-29532104.1aa3d2d";
7
7
 
8
8
  async function getNuxtVersion(path) {
9
9
  try {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-wizard-nightly",
3
3
  "type": "module",
4
- "version": "3.2.1-29518581.0216c08",
4
+ "version": "3.2.1-29532104.1aa3d2d",
5
5
  "description": "CLI Wizard to toggle Nuxt DevTools",
6
6
  "license": "MIT",
7
7
  "homepage": "https://devtools.nuxt.com",
@@ -19,18 +19,17 @@
19
19
  "dist"
20
20
  ],
21
21
  "dependencies": {
22
+ "@clack/prompts": "^1.0.1",
22
23
  "consola": "^3.4.2",
23
24
  "diff": "^8.0.3",
24
25
  "execa": "^8.0.1",
25
26
  "magicast": "^0.5.2",
26
27
  "pathe": "^2.0.3",
27
28
  "pkg-types": "^2.3.0",
28
- "prompts": "^2.4.2",
29
29
  "semver": "^7.7.4"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/diff": "^8.0.0",
33
- "@types/prompts": "^2.4.9",
34
33
  "unbuild": "^3.6.1"
35
34
  },
36
35
  "scripts": {