@uipkge/nuxt 0.1.33 → 0.1.34
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.
- package/bin/cli.mjs +2 -3
- package/dist/module.json +1 -1
- package/package.json +1 -1
package/bin/cli.mjs
CHANGED
|
@@ -37,11 +37,10 @@ if (!isInstalled) {
|
|
|
37
37
|
|
|
38
38
|
const nuxtConfigPath = path.join(TARGET_DIR, 'nuxt.config.ts')
|
|
39
39
|
|
|
40
|
-
const { createInterface } = await import('readline')
|
|
41
|
-
|
|
42
40
|
function prompt(question) {
|
|
41
|
+
const readline = require('readline')
|
|
43
42
|
return new Promise(resolve => {
|
|
44
|
-
const rl = createInterface({ input: process.stdin, output: process.stdout })
|
|
43
|
+
const rl = readline.createInterface({ input: process.stdin, output: process.stdout })
|
|
45
44
|
rl.question(question, ans => { rl.close(); resolve(ans) })
|
|
46
45
|
})
|
|
47
46
|
}
|
package/dist/module.json
CHANGED