@kenjura/ursa 0.77.0 → 0.78.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.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/package.json +4 -2
- package/src/jobs/generate.js +6 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# 0.78.0
|
|
2
|
+
2026-02-13
|
|
3
|
+
|
|
4
|
+
- added release-it
|
|
5
|
+
- --clean now fully deletes the .ursa cache folder and clears the output directory before generation, ensuring a completely fresh build without any stale files. Previously, --clean only ignored the cache but left existing output files in place, which could cause issues with stale auto-generated indexes and other files blocking new generation. This change provides a more robust clean build experience.
|
|
6
|
+
|
|
1
7
|
# 0.77.0
|
|
2
8
|
2026-02-13
|
|
3
9
|
|
package/README.md
CHANGED
|
@@ -66,7 +66,7 @@ Start a development server that:
|
|
|
66
66
|
- `--port, -p` - Port for development server (default: 8080, serve command only)
|
|
67
67
|
- `--whitelist, -w` - Path to whitelist file containing patterns for files to include
|
|
68
68
|
- `--exclude, -e` - Folders to exclude: comma-separated paths relative to source, or path to file with one folder per line
|
|
69
|
-
- `--clean` -
|
|
69
|
+
- `--clean` - Delete the `.ursa` cache folder and clear output directory, forcing full regeneration
|
|
70
70
|
|
|
71
71
|
### Whitelist File Format
|
|
72
72
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@kenjura/ursa",
|
|
3
3
|
"author": "Andrew London <andrew@kenjura.com>",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.78.0",
|
|
6
6
|
"description": "static site generator from MD/wikitext/YML",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"bin": {
|
|
@@ -72,7 +72,9 @@
|
|
|
72
72
|
"CHANGELOG.md"
|
|
73
73
|
],
|
|
74
74
|
"pnpm": {
|
|
75
|
-
"onlyBuiltDependencies": [
|
|
75
|
+
"onlyBuiltDependencies": [
|
|
76
|
+
"esbuild"
|
|
77
|
+
]
|
|
76
78
|
},
|
|
77
79
|
"publishConfig": {
|
|
78
80
|
"access": "public",
|
package/src/jobs/generate.js
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
saveHashCache,
|
|
18
18
|
needsRegeneration,
|
|
19
19
|
updateHash,
|
|
20
|
+
getUrsaDir,
|
|
20
21
|
} from "../helper/contentHash.js";
|
|
21
22
|
import {
|
|
22
23
|
buildValidPaths,
|
|
@@ -32,7 +33,7 @@ import { bundleMetaTemplateAssets, bundleDocumentCss, bundleDocumentJs, clearMet
|
|
|
32
33
|
import { buildFullTextIndex, buildIncrementalIndex, loadIndexCache, saveIndexCache } from "../helper/fullTextIndex.js";
|
|
33
34
|
import { dependencyTracker } from "../helper/dependencyTracker.js";
|
|
34
35
|
import { CacheBustHashMap } from "../helper/build/cacheBust.js";
|
|
35
|
-
import { copy as copyDir, emptyDir, outputFile } from "fs-extra";
|
|
36
|
+
import { copy as copyDir, emptyDir, outputFile, remove } from "fs-extra";
|
|
36
37
|
import { basename, dirname, extname, join, parse, resolve } from "path";
|
|
37
38
|
import { URL } from "url";
|
|
38
39
|
import o2x from "object-to-xml";
|
|
@@ -131,9 +132,12 @@ export async function generate({
|
|
|
131
132
|
// Initialize dependency tracker for this build
|
|
132
133
|
dependencyTracker.init(source);
|
|
133
134
|
|
|
134
|
-
// Clear output directory when --clean is specified
|
|
135
|
+
// Clear output directory and cache when --clean is specified
|
|
135
136
|
if (_clean) {
|
|
136
137
|
progress.startTimer('Clean');
|
|
138
|
+
const ursaDir = getUrsaDir(source);
|
|
139
|
+
progress.logTimed(`Clean build: deleting cache folder ${ursaDir}`);
|
|
140
|
+
await remove(ursaDir);
|
|
137
141
|
progress.logTimed(`Clean build: clearing output directory ${output}`);
|
|
138
142
|
await emptyDir(output);
|
|
139
143
|
progress.logTimed(`Clean complete [${progress.stopTimer('Clean')}]`);
|