File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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" ;
44
55export function getCordovaProjectAppVersion ( projectRoot ?: string ) : Promise < string > {
66 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" ;
22
33export function isBinaryOrZip ( path : string ) : boolean {
44 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(
338338 } ) ;
339339 } ) ;
340340 } ) . then ( ( ) => {
341+ if ( ! sourcemapOutput ) {
342+ // skip source map compose if source map is not enabled
343+ return ;
344+ }
345+
341346 const composeSourceMapsPath = getComposeSourceMapsPath ( ) ;
342- if ( sourcemapOutput && ! composeSourceMapsPath ) {
347+ if ( ! composeSourceMapsPath ) {
343348 throw new Error ( "react-native compose-source-maps.js scripts is not found" ) ;
344349 }
345350
Original file line number Diff line number Diff line change 1- import * as semver from "semver" ;
1+ import semver from "semver" ;
22
33const regexpForMajor = / ^ \d + $ / ;
44const regexpForMajorMinor = / ^ \d + \. \d + $ / ;
You can’t perform that action at this time.
0 commit comments