1
1
import path from 'path' ;
2
- import chalk from 'chalk ' ;
2
+ import kleur from 'kleur ' ;
3
3
import fs from 'fs-extra' ;
4
4
import del from 'del' ;
5
5
import androidAssemble from '../utils/androidAssemble' ;
@@ -42,7 +42,7 @@ export default async function build({
42
42
} ;
43
43
44
44
report . info (
45
- `Cleaning up previous build at ${ chalk . blue ( path . relative ( root , output ) ) } `
45
+ `Cleaning up previous build at ${ kleur . blue ( path . relative ( root , output ) ) } `
46
46
) ;
47
47
48
48
await del ( [ output ] ) ;
@@ -54,7 +54,7 @@ export default async function build({
54
54
} ) ;
55
55
56
56
report . info (
57
- `Creating new output directory at ${ chalk . blue (
57
+ `Creating new output directory at ${ kleur . blue (
58
58
path . relative ( root , output )
59
59
) } `
60
60
) ;
@@ -70,22 +70,22 @@ export default async function build({
70
70
const targetAar = path . join ( output , targetOptions . androidBundleName ) ;
71
71
72
72
report . info (
73
- `Copying AAR from ${ chalk . blue (
73
+ `Copying AAR from ${ kleur . blue (
74
74
path . relative ( root , sourceAar )
75
- ) } to ${ chalk . blue ( path . relative ( root , targetAar ) ) } `
75
+ ) } to ${ kleur . blue ( path . relative ( root , targetAar ) ) } `
76
76
) ;
77
77
await fs . copyFile ( sourceAar , targetAar ) ;
78
78
79
79
const gradleFile = path . join ( output , 'build.gradle' ) ;
80
80
report . info (
81
- `Creating AAR Gradle file at ${ chalk . blue ( path . relative ( root , gradleFile ) ) } `
81
+ `Creating AAR Gradle file at ${ kleur . blue ( path . relative ( root , gradleFile ) ) } `
82
82
) ;
83
83
await createGradleFile ( gradleFile ) ;
84
84
85
85
if ( targetOptions . reverseJetify ) {
86
86
const supportOutputPath = path . join ( output , 'support' ) ;
87
87
report . info (
88
- `Creating new support output directory at ${ chalk . blue (
88
+ `Creating new support output directory at ${ kleur . blue (
89
89
path . relative ( root , supportOutputPath )
90
90
) } `
91
91
) ;
@@ -96,7 +96,7 @@ export default async function build({
96
96
targetOptions . androidBundleName
97
97
) ;
98
98
report . info (
99
- `Using Jetifier to convert AAR from AndroidX to Support AAR at ${ chalk . blue (
99
+ `Using Jetifier to convert AAR from AndroidX to Support AAR at ${ kleur . blue (
100
100
path . relative ( root , supportAar )
101
101
) } `
102
102
) ;
@@ -111,12 +111,12 @@ export default async function build({
111
111
112
112
const supportGradleFile = path . join ( supportOutputPath , 'build.gradle' ) ;
113
113
report . info (
114
- `Creating Support AAR Gradle file at ${ chalk . blue (
114
+ `Creating Support AAR Gradle file at ${ kleur . blue (
115
115
path . relative ( root , supportGradleFile )
116
116
) } `
117
117
) ;
118
118
await createGradleFile ( supportGradleFile ) ;
119
119
}
120
120
121
- report . success ( `Wrote files to ${ chalk . blue ( path . relative ( root , output ) ) } ` ) ;
121
+ report . success ( `Wrote files to ${ kleur . blue ( path . relative ( root , output ) ) } ` ) ;
122
122
}
0 commit comments