@@ -15,7 +15,8 @@ const {
15
15
blue,
16
16
magenta,
17
17
lightRed,
18
- red
18
+ red,
19
+ reset
19
20
} = require ( 'kolorist' )
20
21
21
22
const cwd = process . cwd ( )
@@ -141,7 +142,7 @@ async function init() {
141
142
{
142
143
type : targetDir ? null : 'text' ,
143
144
name : 'projectName' ,
144
- message : 'Project name:' ,
145
+ message : reset ( 'Project name:' ) ,
145
146
initial : defaultProjectName ,
146
147
onState : ( state ) =>
147
148
( targetDir = state . value . trim ( ) || defaultProjectName )
@@ -168,7 +169,7 @@ async function init() {
168
169
{
169
170
type : ( ) => ( isValidPackageName ( targetDir ) ? null : 'text' ) ,
170
171
name : 'packageName' ,
171
- message : 'Package name:' ,
172
+ message : reset ( 'Package name:' ) ,
172
173
initial : ( ) => toValidPackageName ( targetDir ) ,
173
174
validate : ( dir ) =>
174
175
isValidPackageName ( dir ) || 'Invalid package.json name'
@@ -178,8 +179,10 @@ async function init() {
178
179
name : 'framework' ,
179
180
message :
180
181
typeof template === 'string' && ! TEMPLATES . includes ( template )
181
- ? `"${ template } " isn't a valid template. Please choose from below: `
182
- : 'Select a framework:' ,
182
+ ? reset (
183
+ `"${ template } " isn't a valid template. Please choose from below: `
184
+ )
185
+ : reset ( 'Select a framework:' ) ,
183
186
initial : 0 ,
184
187
choices : FRAMEWORKS . map ( ( framework ) => {
185
188
const frameworkColor = framework . color
@@ -193,7 +196,7 @@ async function init() {
193
196
type : ( framework ) =>
194
197
framework && framework . variants ? 'select' : null ,
195
198
name : 'variant' ,
196
- message : 'Select a variant:' ,
199
+ message : reset ( 'Select a variant:' ) ,
197
200
// @ts -ignore
198
201
choices : ( framework ) =>
199
202
framework . variants . map ( ( variant ) => {
0 commit comments