File tree 2 files changed +3
-2
lines changed
src/lib/converter/plugins
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ export class IncludePlugin extends ConverterComponent {
63
63
}
64
64
65
65
const file = path . resolve ( relative , part . text . trim ( ) ) ;
66
+ this . application . watchFile ( file ) ;
66
67
if ( included . includes ( file ) && part . tag === "@include" ) {
67
68
this . logger . error (
68
69
this . logger . i18n . include_0_in_1_specified_2_circular_include_3 (
@@ -73,7 +74,6 @@ export class IncludePlugin extends ConverterComponent {
73
74
) ,
74
75
) ;
75
76
} else if ( isFile ( file ) ) {
76
- this . application . watchFile ( file ) ;
77
77
const text = fs . readFileSync ( file , "utf-8" ) ;
78
78
if ( part . tag === "@include" ) {
79
79
const sf = new MinimalSourceFile ( text , file ) ;
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ export class PackagePlugin extends ConverterComponent {
98
98
99
99
if ( this . readme ) {
100
100
// Readme path provided, read only that file.
101
+ this . application . watchFile ( this . readme ) ;
101
102
try {
102
103
this . readmeContents = readFile ( this . readme ) ;
103
104
this . readmeFile = this . readme ;
@@ -119,6 +120,7 @@ export class PackagePlugin extends ConverterComponent {
119
120
if ( result ) {
120
121
this . readmeFile = result . file ;
121
122
this . readmeContents = result . content ;
123
+ this . application . watchFile ( this . readmeFile ) ;
122
124
}
123
125
}
124
126
}
@@ -135,7 +137,6 @@ export class PackagePlugin extends ConverterComponent {
135
137
) ;
136
138
137
139
project . readme = content ;
138
- this . application . watchFile ( this . readmeFile ) ;
139
140
140
141
// This isn't ideal, but seems better than figuring out the readme
141
142
// path over in the include plugin...
You can’t perform that action at this time.
0 commit comments