Skip to content

Commit

Permalink
Make the tool cleanup the directory it creates
Browse files Browse the repository at this point in the history
  • Loading branch information
ava-cassiopeia committed Jan 10, 2021
1 parent 76aa2ed commit 1a99065
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pdf-detiler",
"version": "1.0.1",
"version": "1.0.2",
"main": "src/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
2 changes: 2 additions & 0 deletions src/PdfDetiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ class PdfDetiler {
const fullPath = path.join(this.svgTempDir, filename);
fs.unlinkSync(fullPath);
}

fs.rmdirSync(this.svgTempDir);
}

/**
Expand Down

0 comments on commit 1a99065

Please sign in to comment.