@maiyunnet/kebab 9.2.6 → 9.2.7
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/doc/kebab-rag.md +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/sys/cmd.js +12 -0
package/doc/kebab-rag.md
CHANGED
|
@@ -1360,7 +1360,7 @@ index/variables/VER.md
|
|
|
1360
1360
|
|
|
1361
1361
|
# Variable: VER
|
|
1362
1362
|
|
|
1363
|
-
> `const` **VER**: `"9.2.
|
|
1363
|
+
> `const` **VER**: `"9.2.7"` = `'9.2.7'`
|
|
1364
1364
|
|
|
1365
1365
|
Defined in: [index.ts:10](https://github.com/maiyunnet/kebab/blob/master/index.ts#L10)
|
|
1366
1366
|
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* --- 本文件用来定义每个目录实体地址的常量 ---
|
|
7
7
|
*/
|
|
8
8
|
/** --- 当前系统版本号 --- */
|
|
9
|
-
export const VER = '9.2.
|
|
9
|
+
export const VER = '9.2.7';
|
|
10
10
|
// --- 服务端用的路径 ---
|
|
11
11
|
const imu = decodeURIComponent(import.meta.url).replace('file://', '').replace(/^\/(\w:)/, '$1');
|
|
12
12
|
/** --- /xxx/xxx --- */
|
package/package.json
CHANGED
package/sys/cmd.js
CHANGED
|
@@ -467,6 +467,18 @@ async function run() {
|
|
|
467
467
|
}
|
|
468
468
|
// --- JS 构建:整站一次构建,splitting 按实际共享情况自动提取 chunk ---
|
|
469
469
|
// --- outbase = outdir = stcRoot,入口保留子目录结构,chunk 落在 stcRoot 根 ---
|
|
470
|
+
// --- 构建前清除旧 chunk,避免 hash 变化后废弃文件堆积 ---
|
|
471
|
+
try {
|
|
472
|
+
const staleChunks = await lFs.readDir(stcRoot);
|
|
473
|
+
for (const item of staleChunks) {
|
|
474
|
+
if (!item.isDirectory() && /^chunk-[A-Z0-9]+\.js$/.test(item.name)) {
|
|
475
|
+
await lFs.unlink(`${stcRoot}/${item.name}`);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
catch {
|
|
480
|
+
// --- 目录不可读时跳过 ---
|
|
481
|
+
}
|
|
470
482
|
try {
|
|
471
483
|
await esbuild.build({
|
|
472
484
|
'entryPoints': tempFiles,
|