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 {
149
149
150
150
@hook ( 'watchPatterns' )
151
151
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
154
155
. 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 ) ) ;
155
157
156
158
const patterns = [
157
159
path . join ( projectData . projectDir , PACKAGE_JSON_FILE_NAME ) ,
158
160
path . join ( projectData . getAppDirectoryPath ( ) , PACKAGE_JSON_FILE_NAME ) ,
159
161
path . join ( projectData . getAppResourcesRelativeDirectoryPath ( ) , platformData . normalizedPlatformName ) ,
160
- ] . concat ( pluginsNativeDirectories ) ;
162
+ ]
163
+ . concat ( pluginsNativeDirectories )
164
+ . concat ( pluginsPackageJsonFiles ) ;
161
165
162
166
return patterns ;
163
167
}
You can’t perform that action at this time.
0 commit comments