@forge/cli-shared
9.3.09.3.1-next.0
out/file-system/archiver.js~
out/file-system/archiver.jsModified+6
Index: package/out/file-system/archiver.js
===================================================================
--- package/out/file-system/archiver.js
+++ package/out/file-system/archiver.js
@@ -96,8 +96,14 @@
target;
constructor(target) {
super();
this.target = target;
+ try {
+ (0, fs_1.rmSync)(this.target, { recursive: true, force: true });
+ }
+ catch (e) {
+ throw new ArchiverError(e.message);
+ }
}
addContent(fileName, contents) {
validateArchivePath(fileName);
try {