Skip to content

Commit

Permalink
Fix rmdirSync regression
Browse files Browse the repository at this point in the history
  • Loading branch information
giuseppeg committed Nov 24, 2020
1 parent 393bdff commit 96d9a04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ args.push("--posthtml-md2html.gfm");
args.push("true");

if (fs.existsSync(outDir)) {
fs.rmSync(outDir, { recursive: true, force: true });
fs.rmdirSync(outDir, { recursive: true });
}

const htmlOnlyIndex = args.findIndex((a) => a === "-x" || a === "--htmlOnly");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A tiny compiler for HTML that adds imports, slots/fills and markdown tags.",
"main": "index.js",
"bin": {
"xm": "index.js"
"xm": "./index.js"
},
"scripts": {
"test:build": "rm -rf test/.tmp && node index.js build --output test/.tmp --root test/cases --config test/cases/config.js",
Expand Down

0 comments on commit 96d9a04

Please sign in to comment.