create-zen 1.6.7 → 1.6.8
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 +2 -15
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -58,17 +58,6 @@ const getProjectName = async () => {
|
|
|
58
58
|
const getProjectVersion = async () => {
|
|
59
59
|
console.log();
|
|
60
60
|
|
|
61
|
-
// Temporarily override console.log to filter out unwanted messages
|
|
62
|
-
const originalLog = console.log;
|
|
63
|
-
let filteredOutput = '';
|
|
64
|
-
|
|
65
|
-
console.log = (...args) => {
|
|
66
|
-
const message = args.join(' ');
|
|
67
|
-
if (!message.includes('Use arrow-keys. Return to submit.')) {
|
|
68
|
-
originalLog(...args);
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
|
|
72
61
|
const { version } = await prompts({
|
|
73
62
|
type: 'select',
|
|
74
63
|
name: 'version',
|
|
@@ -83,12 +72,10 @@ const getProjectVersion = async () => {
|
|
|
83
72
|
value: 'lite'
|
|
84
73
|
}
|
|
85
74
|
],
|
|
86
|
-
initial: 0
|
|
75
|
+
initial: 0,
|
|
76
|
+
hint: false
|
|
87
77
|
});
|
|
88
78
|
|
|
89
|
-
// Restore original console.log
|
|
90
|
-
console.log = originalLog;
|
|
91
|
-
|
|
92
79
|
console.log();
|
|
93
80
|
return version === 'lite';
|
|
94
81
|
};
|