@@ -15,7 +15,8 @@ const {
1515 blue,
1616 magenta,
1717 lightRed,
18- red
18+ red,
19+ reset
1920} = require ( 'kolorist' )
2021
2122const cwd = process . cwd ( )
@@ -141,7 +142,7 @@ async function init() {
141142 {
142143 type : targetDir ? null : 'text' ,
143144 name : 'projectName' ,
144- message : 'Project name:' ,
145+ message : reset ( 'Project name:' ) ,
145146 initial : defaultProjectName ,
146147 onState : ( state ) =>
147148 ( targetDir = state . value . trim ( ) || defaultProjectName )
@@ -168,7 +169,7 @@ async function init() {
168169 {
169170 type : ( ) => ( isValidPackageName ( targetDir ) ? null : 'text' ) ,
170171 name : 'packageName' ,
171- message : 'Package name:' ,
172+ message : reset ( 'Package name:' ) ,
172173 initial : ( ) => toValidPackageName ( targetDir ) ,
173174 validate : ( dir ) =>
174175 isValidPackageName ( dir ) || 'Invalid package.json name'
@@ -178,8 +179,10 @@ async function init() {
178179 name : 'framework' ,
179180 message :
180181 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:' ) ,
183186 initial : 0 ,
184187 choices : FRAMEWORKS . map ( ( framework ) => {
185188 const frameworkColor = framework . color
@@ -193,7 +196,7 @@ async function init() {
193196 type : ( framework ) =>
194197 framework && framework . variants ? 'select' : null ,
195198 name : 'variant' ,
196- message : 'Select a variant:' ,
199+ message : reset ( 'Select a variant:' ) ,
197200 // @ts -ignore
198201 choices : ( framework ) =>
199202 framework . variants . map ( ( variant ) => {
0 commit comments