File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ const asset_copier = () => {
39
39
p ,
40
40
dest ,
41
41
options
42
- ) . on ( copy . events . COPY_FILE_COMPLETE , ( copyOperation ) => {
42
+ ) . on ( copy . events . COPY_FILE_COMPLETE , ( ) => {
43
43
if ( options . debug ) {
44
44
console . log ( `Moved ${ p } to ${ dest } ` ) ;
45
45
}
@@ -121,7 +121,7 @@ const asset_copier = () => {
121
121
if ( options . watch ) {
122
122
123
123
// watch global structures, such as _data/* and _meta/
124
- const globalSources = [ assetDirectories . source . data , assetDirectories . source . meta ]
124
+ const globalSources = [ assetDirectories . source . data , assetDirectories . source . meta ] ;
125
125
const globalPaths = globalSources . map ( globalSource => path . join (
126
126
basePath ,
127
127
globalSource ,
@@ -154,14 +154,13 @@ const asset_copier = () => {
154
154
globalWatcher . on ( 'addDir' , ( p ) => {
155
155
patternlab . events . emit ( 'patternlab-global-change' , {
156
156
file : p
157
- } )
157
+ } ) ;
158
158
} )
159
159
. on ( 'add' , ( p ) => {
160
160
patternlab . events . emit ( 'patternlab-global-change' , {
161
161
file : p
162
162
} ) ;
163
163
} ) . on ( 'change' , ( p ) => {
164
- console . log ( 145 , 'global change watch' )
165
164
patternlab . events . emit ( 'patternlab-global-change' , {
166
165
file : p
167
166
} ) ;
You can’t perform that action at this time.
0 commit comments