@@ -149,6 +149,9 @@ export class ArduinoApp {
149
149
150
150
args . push ( "--pref" , `build.path=${ outputPath } ` ) ;
151
151
arduinoChannel . info ( `Please see the build logs in Output path: ${ outputPath } ` ) ;
152
+
153
+ fs . unlinkSync ( path . join ( outputPath , "build.options.json" ) ) ;
154
+ util . rmdirRecursivelySync ( path . join ( outputPath , "sketch" ) ) ;
152
155
} else {
153
156
const msg = "Output path is not specified. Unable to reuse previously compiled files. Upload could be slow. See README." ;
154
157
arduinoChannel . warning ( msg ) ;
@@ -214,6 +217,9 @@ export class ArduinoApp {
214
217
215
218
args . push ( "--pref" , `build.path=${ outputPath } ` ) ;
216
219
arduinoChannel . info ( `Please see the build logs in Output path: ${ outputPath } ` ) ;
220
+
221
+ fs . unlinkSync ( path . join ( outputPath , "build.options.json" ) ) ;
222
+ util . rmdirRecursivelySync ( path . join ( outputPath , "sketch" ) ) ;
217
223
} else {
218
224
const msg = "Output path is not specified. Unable to reuse previously compiled files. Upload could be slow. See README." ;
219
225
arduinoChannel . warning ( msg ) ;
@@ -276,6 +282,9 @@ export class ArduinoApp {
276
282
277
283
args . push ( "--pref" , `build.path=${ outputPath } ` ) ;
278
284
arduinoChannel . info ( `Please see the build logs in Output path: ${ outputPath } ` ) ;
285
+
286
+ fs . unlinkSync ( path . join ( outputPath , "build.options.json" ) ) ;
287
+ util . rmdirRecursivelySync ( path . join ( outputPath , "sketch" ) ) ;
279
288
} else {
280
289
const msg = "Output path is not specified. Unable to reuse previously compiled files. Verify could be slow. See README." ;
281
290
arduinoChannel . warning ( msg ) ;
0 commit comments