File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -149,15 +149,19 @@ export class PrepareController extends EventEmitter {
149149
150150 @hook ( 'watchPatterns' )
151151 public async getWatcherPatterns ( platformData : IPlatformData , projectData : IProjectData ) : Promise < string [ ] > {
152- const pluginsNativeDirectories = this . $nodeModulesDependenciesBuilder . getProductionDependencies ( projectData . projectDir )
153- . filter ( dep => dep . nativescript )
152+ const dependencies = this . $nodeModulesDependenciesBuilder . getProductionDependencies ( projectData . projectDir )
153+ . filter ( dep => dep . nativescript ) ;
154+ const pluginsNativeDirectories = dependencies
154155 . map ( dep => path . join ( dep . directory , PLATFORMS_DIR_NAME , platformData . platformNameLowerCase ) ) ;
156+ const pluginsPackageJsonFiles = dependencies . map ( dep => path . join ( dep . directory , PACKAGE_JSON_FILE_NAME ) ) ;
155157
156158 const patterns = [
157159 path . join ( projectData . projectDir , PACKAGE_JSON_FILE_NAME ) ,
158160 path . join ( projectData . getAppDirectoryPath ( ) , PACKAGE_JSON_FILE_NAME ) ,
159161 path . join ( projectData . getAppResourcesRelativeDirectoryPath ( ) , platformData . normalizedPlatformName ) ,
160- ] . concat ( pluginsNativeDirectories ) ;
162+ ]
163+ . concat ( pluginsNativeDirectories )
164+ . concat ( pluginsPackageJsonFiles ) ;
161165
162166 return patterns ;
163167 }
You can’t perform that action at this time.
0 commit comments