Skip to content

Commit d74d5c8

Browse files
committed
hopefully final fix for delete bug
1 parent 17e601e commit d74d5c8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codingap/steve",
3-
"version": "2.0.8",
3+
"version": "2.0.9",
44
"exports": "./index.ts",
55
"description": "STEVE is a configurable template engine that allows JavaScript to run in files to create files. It has a plugin system to allow for custom generation and a built-in site generator.",
66
"tasks": {

src/plugin/site-generator.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ class SiteGenerator extends STEVEPlugin {
165165
});
166166

167167
for (const file of files) {
168-
Deno.removeSync(file.path, { recursive: true });
168+
if (existsSync(file.path)) {
169+
Deno.removeSync(file.path, { recursive: true });
170+
}
169171
}
170172
} else {
171173
// create the output directory if it doesn't exist

0 commit comments

Comments
 (0)