@@ -164,14 +164,14 @@ export class ProjectData implements IProjectData {
164164 this . projectName = this . $projectHelper . sanitizeName (
165165 path . basename ( projectDir )
166166 ) ;
167- this . platformsDir = path . join ( projectDir , constants . PLATFORMS_DIR_NAME ) ;
167+ this . nsConfig = nsConfig ;
168+ this . platformsDir = path . join ( projectDir , this . getBuildRelativeDirectoryPath ( ) ) ;
168169 this . projectFilePath = projectFilePath ;
169170 this . projectIdentifiers = this . initializeProjectIdentifiers ( nsConfig ) ;
170171 this . packageJsonData = packageJsonData ;
171172 this . dependencies = packageJsonData . dependencies ;
172173 this . devDependencies = packageJsonData . devDependencies ;
173174 this . projectType = this . getProjectType ( ) ;
174- this . nsConfig = nsConfig ;
175175 this . ignoredDependencies = nsConfig ?. ignoredNativeDependencies ;
176176 this . appDirectoryPath = this . getAppDirectoryPath ( ) ;
177177 this . appResourcesDirectoryPath = this . getAppResourcesDirectoryPath ( ) ;
@@ -270,6 +270,17 @@ export class ProjectData implements IProjectData {
270270 return this . resolveToProjectDir ( appRelativePath , projectDir ) ;
271271 }
272272
273+ public getBuildRelativeDirectoryPath ( ) : string {
274+ if (
275+ this . nsConfig &&
276+ this . nsConfig [ constants . CONFIG_NS_BUILD_ENTRY ]
277+ ) {
278+ return this . nsConfig [ constants . CONFIG_NS_BUILD_ENTRY ] ;
279+ }
280+
281+ return constants . PLATFORMS_DIR_NAME ;
282+ }
283+
273284 public getAppDirectoryRelativePath ( ) : string {
274285 if ( this . nsConfig && this . nsConfig [ constants . CONFIG_NS_APP_ENTRY ] ) {
275286 return this . nsConfig [ constants . CONFIG_NS_APP_ENTRY ] ;
0 commit comments