@@ -21,11 +21,11 @@ const watchPatternLabFiles = (
2121 assetDirectories . source . meta ,
2222 ] ;
2323 const globalPaths = globalSources . map ( globalSource =>
24- path . join ( basePath , globalSource , '*' )
24+ path . join ( path . resolve ( basePath , globalSource ) , '*' )
2525 ) ;
2626
2727 _ . each ( globalPaths , globalPath => {
28- logger . debug ( `Pattern Lab is watching ${ globalPath } for changes` ) ;
28+ logger . debug ( `Pattern Lab is watching ${ globalPath } for changes! ` ) ;
2929
3030 if ( patternlab . watchers [ globalPath ] ) {
3131 patternlab . watchers [ globalPath ] . close ( ) ;
@@ -80,13 +80,14 @@ const watchPatternLabFiles = (
8080 . concat ( patternlab . engines . getSupportedFileExtensions ( ) )
8181 . map ( dotExtension =>
8282 path . join (
83- basePath ,
84- assetDirectories . source . patterns ,
83+ path . resolve ( basePath , assetDirectories . source . patterns ) ,
8584 `/**/*${ dotExtension } `
8685 )
8786 ) ;
8887 _ . each ( patternWatches , patternWatchPath => {
89- logger . debug ( `Pattern Lab is watching ${ patternWatchPath } for changes` ) ;
88+ logger . debug (
89+ `Pattern Lab is watching ${ patternWatchPath } for changes - local!`
90+ ) ;
9091
9192 if ( patternlab . watchers [ patternWatchPath ] ) {
9293 patternlab . watchers [ patternWatchPath ] . close ( ) ;
0 commit comments