Skip to content

Commit 24b3547

Browse files
committed
Updated package installation failure cleanup (#28)
1 parent 4bb42e4 commit 24b3547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class Packages {
187187

188188
// FIXME: npm packages have a 'package' subdirectory
189189
if (!await fs.exists(path.resolve(target, 'metadata.json'))) {
190-
await fs.unlink(target);
190+
await fs.remove(target);
191191

192192
throw new Error('Invalid package');
193193
}

0 commit comments

Comments
 (0)