File tree Expand file tree Collapse file tree 3 files changed +13
-11
lines changed
Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ import assert from "node:assert/strict";
22import fs from "node:fs" ;
33import path from "node:path" ;
44
5- import { Option , oraPromise , chalk } from "@react-native-node-api/cli-utils" ;
5+ import {
6+ Option ,
7+ oraPromise ,
8+ prettyPath ,
9+ } from "@react-native-node-api/cli-utils" ;
610import {
711 createAndroidLibsDirectory ,
812 AndroidTriplet as Triplet ,
@@ -177,9 +181,7 @@ export const platform: Platform<Triplet[], AndroidOpts> = {
177181 } ) ,
178182 {
179183 text : `Assembling Android libs directory (${ libraryName } )` ,
180- successText : `Android libs directory (${ libraryName } ) assembled into ${ chalk . dim (
181- path . relative ( process . cwd ( ) , prebuildOutputPath ) ,
182- ) } `,
184+ successText : `Android libs directory (${ libraryName } ) assembled into ${ prettyPath ( prebuildOutputPath ) } ` ,
183185 failText : ( { message } ) =>
184186 `Failed to assemble Android libs directory (${ libraryName } ): ${ message } ` ,
185187 } ,
Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ import assert from "node:assert/strict";
22import path from "node:path" ;
33import fs from "node:fs" ;
44
5- import { Option , oraPromise , chalk } from "@react-native-node-api/cli-utils" ;
5+ import {
6+ Option ,
7+ oraPromise ,
8+ prettyPath ,
9+ } from "@react-native-node-api/cli-utils" ;
610import {
711 AppleTriplet as Triplet ,
812 createAppleFramework ,
@@ -187,9 +191,7 @@ export const platform: Platform<Triplet[], AppleOpts> = {
187191 } ) ,
188192 {
189193 text : `Assembling XCFramework (${ libraryName } )` ,
190- successText : `XCFramework (${ libraryName } ) assembled into ${ chalk . dim (
191- path . relative ( process . cwd ( ) , xcframeworkOutputPath ) ,
192- ) } `,
194+ successText : `XCFramework (${ libraryName } ) assembled into ${ prettyPath ( xcframeworkOutputPath ) } ` ,
193195 failText : ( { message } ) =>
194196 `Failed to assemble XCFramework (${ libraryName } ): ${ message } ` ,
195197 } ,
Original file line number Diff line number Diff line change @@ -258,9 +258,7 @@ export const buildCommand = new Command("build")
258258 } ) ,
259259 {
260260 text : "Assembling XCFramework" ,
261- successText : `XCFramework assembled into ${ chalk . dim (
262- path . relative ( process . cwd ( ) , xcframeworkOutputPath ) ,
263- ) } `,
261+ successText : `XCFramework assembled into ${ prettyPath ( xcframeworkOutputPath ) } ` ,
264262 failText : ( { message } ) =>
265263 `Failed to assemble XCFramework: ${ message } ` ,
266264 } ,
You can’t perform that action at this time.
0 commit comments