@@ -4,7 +4,7 @@ const execa = require('execa');
44const inquirer = require ( 'inquirer' ) ;
55const Listr = require ( 'listr' ) ;
66const semver = require ( 'semver' ) ;
7- const tc = require ( 'turbocolor ' ) ;
7+ const { bold , cyan , dim } = require ( 'colorette ' ) ;
88
99const rootDir = path . join ( __dirname , '../' ) ;
1010
@@ -55,7 +55,7 @@ async function askNpmTag(version) {
5555 type : 'confirm' ,
5656 name : 'confirm' ,
5757 message : answers => {
58- return `Will publish ${ tc . cyan ( version ) } to ${ tc . cyan ( answers . npmTag ) } . Continue?` ;
58+ return `Will publish ${ cyan ( version ) } to ${ cyan ( answers . npmTag ) } . Continue?` ;
5959 }
6060 }
6161 ] ;
@@ -192,7 +192,7 @@ function preparePackage(tasks, package, version, install) {
192192
193193 // Add project tasks
194194 tasks . push ( {
195- title : `Prepare ${ tc . bold ( pkg . name ) } ` ,
195+ title : `Prepare ${ bold ( pkg . name ) } ` ,
196196 task : ( ) => new Listr ( projectTasks )
197197 } ) ;
198198}
@@ -234,7 +234,7 @@ function prepareDevPackage(tasks, package, version) {
234234
235235 // Add project tasks
236236 tasks . push ( {
237- title : `Prepare dev build: ${ tc . bold ( pkg . name ) } ` ,
237+ title : `Prepare dev build: ${ bold ( pkg . name ) } ` ,
238238 task : ( ) => new Listr ( projectTasks )
239239 } ) ;
240240}
@@ -244,7 +244,7 @@ function updatePackageVersions(tasks, packages, version) {
244244 updatePackageVersion ( tasks , package , version ) ;
245245
246246 tasks . push ( {
247- title : `${ package } update @ionic/core dependency, if present ${ tc . dim ( `(${ version } )` ) } ` ,
247+ title : `${ package } update @ionic/core dependency, if present ${ dim ( `(${ version } )` ) } ` ,
248248 task : async ( ) => {
249249 if ( package !== 'core' ) {
250250 const pkg = readPkg ( package ) ;
@@ -261,7 +261,7 @@ function updatePackageVersions(tasks, packages, version) {
261261 updatePackageVersion ( tasks , distPackage , version ) ;
262262
263263 tasks . push ( {
264- title : `${ package } update @ionic/core dependency, if present ${ tc . dim ( `(${ version } )` ) } ` ,
264+ title : `${ package } update @ionic/core dependency, if present ${ dim ( `(${ version } )` ) } ` ,
265265 task : async ( ) => {
266266 const pkg = readPkg ( distPackage ) ;
267267 updateDependency ( pkg , '@ionic/core' , version ) ;
@@ -272,7 +272,7 @@ function updatePackageVersions(tasks, packages, version) {
272272
273273 if ( package === 'packages/react-router' ) {
274274 tasks . push ( {
275- title : `${ package } update @ionic/react dependency, if present ${ tc . dim ( `(${ version } )` ) } ` ,
275+ title : `${ package } update @ionic/react dependency, if present ${ dim ( `(${ version } )` ) } ` ,
276276 task : async ( ) => {
277277 const pkg = readPkg ( package ) ;
278278 updateDependency ( pkg , '@ionic/react' , version ) ;
@@ -287,7 +287,7 @@ function updatePackageVersion(tasks, package, version) {
287287 const projectRoot = projectPath ( package ) ;
288288
289289 tasks . push ( {
290- title : `${ package } : update package.json ${ tc . dim ( `(${ version } )` ) } ` ,
290+ title : `${ package } : update package.json ${ dim ( `(${ version } )` ) } ` ,
291291 task : async ( ) => {
292292 await execa ( 'npm' , [ 'version' , version ] , { cwd : projectRoot } ) ;
293293 }
0 commit comments