fast-ejs-builder 0.0.5 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/build.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fast-ejs-builder",
3
- "version": "0.0.5",
3
+ "version": "1.0.0",
4
4
  "description": "Fast-EJS is a simple and fast tool to pre-render EJS templates into static HTML files with clean conventions and flexible data handling.",
5
5
  "keywords": [
6
6
  "tailwind",
package/src/build.js CHANGED
@@ -228,9 +228,11 @@ async function ejsbuild(code = 0) {
228
228
 
229
229
  const junk = _tree(config.build.output).filter(
230
230
  (f) =>
231
+ !f.isDir &&
231
232
  f.fullpath != _p(configTailwindOutput()) &&
232
- !built.find((b) => b.startsWith(f.fullpath)),
233
+ !built.find((b) => b == f.fullpath),
233
234
  );
235
+
234
236
  for (let file of junk) {
235
237
  fs.rmSync(file.fullpath, { force: true, recursive: true });
236
238
  }