File tree 4 files changed +11
-6
lines changed
4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
- import * as xml2js from "xml2js" ;
2
- import * as fs from "fs" ;
3
- import * as path from "path" ;
1
+ import xml2js from "xml2js" ;
2
+ import fs from "fs" ;
3
+ import path from "path" ;
4
4
5
5
export function getCordovaProjectAppVersion ( projectRoot ?: string ) : Promise < string > {
6
6
return new Promise < string > ( ( resolve , reject ) => {
Original file line number Diff line number Diff line change 1
- import * as fs from "fs" ;
1
+ import fs from "fs" ;
2
2
3
3
export function isBinaryOrZip ( path : string ) : boolean {
4
4
return path . search ( / \. z i p $ / i) !== - 1 || path . search ( / \. a p k $ / i) !== - 1 || path . search ( / \. i p a $ / i) !== - 1 ;
Original file line number Diff line number Diff line change @@ -338,8 +338,13 @@ export function runHermesEmitBinaryCommand(
338
338
} ) ;
339
339
} ) ;
340
340
} ) . then ( ( ) => {
341
+ if ( ! sourcemapOutput ) {
342
+ // skip source map compose if source map is not enabled
343
+ return ;
344
+ }
345
+
341
346
const composeSourceMapsPath = getComposeSourceMapsPath ( ) ;
342
- if ( sourcemapOutput && ! composeSourceMapsPath ) {
347
+ if ( ! composeSourceMapsPath ) {
343
348
throw new Error ( "react-native compose-source-maps.js scripts is not found" ) ;
344
349
}
345
350
Original file line number Diff line number Diff line change 1
- import * as semver from "semver" ;
1
+ import semver from "semver" ;
2
2
3
3
const regexpForMajor = / ^ \d + $ / ;
4
4
const regexpForMajorMinor = / ^ \d + \. \d + $ / ;
You can’t perform that action at this time.
0 commit comments