@wrikka/create-docs 0.2.0 → 0.2.1

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wrikka/create-docs",
3
3
  "description": "Vite plugin for documentation sites built on Functional Clean Architecture with SolidJS support",
4
- "version": "0.2.0",
4
+ "version": "0.2.1",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "create-docs": "bin/cli.js",
@@ -12,6 +12,7 @@ import {
12
12
  mkdirSync,
13
13
  readdirSync,
14
14
  readFileSync,
15
+ rmSync,
15
16
  statSync,
16
17
  writeFileSync,
17
18
  } from "node:fs";
@@ -271,6 +272,8 @@ export async function pullFromGitHub(
271
272
  const collectionId = source.id;
272
273
 
273
274
  const collectionOut = path.join(docsOut, collectionId);
275
+ // Clean previous output so deleted/excluded upstream files don't linger.
276
+ rmSync(collectionOut, { recursive: true, force: true });
274
277
  mkdirSync(collectionOut, { recursive: true });
275
278
 
276
279
  // Local mode: copy files from a local directory.