File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -162,10 +162,10 @@ export class PlatformController implements IPlatformController {
162
162
path . join ( projectData . platformsDir , platformName )
163
163
) . length ;
164
164
165
- // 3 is a magic number to approximate a valid platform folder
166
- // any valid platform should contain at least 3 files
167
- // we choose 3 to avoid false-positives due to system files like .DS_Store etc.
168
- if ( platformDirectoryItemCount <= 3 ) {
165
+ // 2 is a magic number to approximate a valid platform folder
166
+ // any valid platform should contain at least 2 files/folders
167
+ // we choose 2 to avoid false-positives due to system files like .DS_Store etc.
168
+ if ( platformDirectoryItemCount <= 2 ) {
169
169
this . $logger . warn (
170
170
`The platforms/${ platformName } folder appears to be invalid. If the build fails, run 'ns clean' and rebuild the app.` ,
171
171
{ wrapMessageWithBorders : true }
You can’t perform that action at this time.
0 commit comments