File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
engine-core/src/tasks/platform Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,7 @@ export const extractSingleExecutableTask = async (
47
47
suitableTasks : RnvTask [ ] ,
48
48
taskName : string
49
49
) : Promise < RnvTask | undefined > => {
50
- const { platform } = getContext ( ) ;
51
- if ( suitableTasks . length === 1 && platform ) {
50
+ if ( suitableTasks . length === 1 ) {
52
51
return suitableTasks [ 0 ] ;
53
52
} else if ( suitableTasks . length === 0 ) {
54
53
return undefined ;
Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ export default createTask({
26
26
isPrivate : true ,
27
27
dependsOn : [ RnvTaskName . projectConfigure ] ,
28
28
fn : async ( { ctx, taskName, originTaskName } ) => {
29
- const { program } = ctx ;
29
+ const { program, platform } = ctx ;
30
30
await isBuildSchemeSupported ( ) ;
31
31
32
32
const entryFile = getConfigProp ( 'entryFile' ) ;
33
33
34
34
const dest = path . join ( ctx . paths . project . dir , `${ entryFile } .js` ) ;
35
- if ( ! fsExistsSync ( dest ) ) {
35
+ if ( ! fsExistsSync ( dest ) && platform ) {
36
36
if ( ! entryFile ) {
37
37
logWarning (
38
38
`Missing ${ chalk ( ) . red ( entryFile ) } key for ${ chalk ( ) . bold . white (
You can’t perform that action at this time.
0 commit comments