create-zen 1.5.0 → 1.5.2
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/index.js +4 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -39,7 +39,7 @@ const displayHeader = () => {
|
|
|
39
39
|
|
|
40
40
|
// Get project name with Vue CLI exact styling
|
|
41
41
|
const getProjectName = async () => {
|
|
42
|
-
const { projectName } = await inquirer.prompt([
|
|
42
|
+
const { projectName } = await inquirer.default.prompt([
|
|
43
43
|
{
|
|
44
44
|
type: 'input',
|
|
45
45
|
name: 'projectName',
|
|
@@ -59,7 +59,7 @@ const getProjectVersion = async () => {
|
|
|
59
59
|
console.log(' ' + '◇' + ' ' + prompt('Select ZEN starter version:'));
|
|
60
60
|
console.log(' ' + description('(↑/↓ to navigate, space to select, enter to confirm)'));
|
|
61
61
|
|
|
62
|
-
const { version } = await inquirer.prompt([
|
|
62
|
+
const { version } = await inquirer.default.prompt([
|
|
63
63
|
{
|
|
64
64
|
type: 'list',
|
|
65
65
|
name: 'version',
|
|
@@ -139,8 +139,8 @@ const main = async () => {
|
|
|
139
139
|
console.log(' ' + vue('Happy coding with ZEN!') + ' ✨');
|
|
140
140
|
console.log();
|
|
141
141
|
|
|
142
|
-
} catch (
|
|
143
|
-
console.log(' ' + error('❌ An error occurred:'),
|
|
142
|
+
} catch (err) {
|
|
143
|
+
console.log(' ' + error('❌ An error occurred:'), err.message);
|
|
144
144
|
process.exit(1);
|
|
145
145
|
}
|
|
146
146
|
};
|