@yangrunchi/a_6 1.0.4 → 1.0.6
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.
|
@@ -273,16 +273,3 @@
|
|
|
273
273
|
### 方式二:远程执行脚本(适合非 VSCode 用户)无需安装 VSCode,打开浏览器即可使用
|
|
274
274
|
|
|
275
275
|
### 远程地址:http://10.13.0.26:9964/
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
cd a_tools/a_node
|
|
279
|
-
npm login # 先登录 npm 账号
|
|
280
|
-
npm publish # 发布
|
|
281
|
-
|
|
282
|
-
npm config set //registry.npmjs.org/:_authToken=ck_fovt6rin8irk.KCuiWzbxfGUfPwFAmFWRVrILcfO9p2bq5yzjHP73ucw
|
|
283
|
-
|
|
284
|
-
#检查 token 是否生效:
|
|
285
|
-
npm whoami
|
|
286
|
-
npm view @yangrunchi/a_6
|
|
287
|
-
npm publish --access public
|
|
288
|
-
|
package/AutoCfg/csvcfg.js
CHANGED
|
@@ -356,21 +356,21 @@ function main() {
|
|
|
356
356
|
|
|
357
357
|
// 添加新增文件
|
|
358
358
|
console.log('检查并添加新增文件...');
|
|
359
|
-
|
|
359
|
+
//const addedTFiles = addNewFilesToSvn(tPath);
|
|
360
360
|
const addedServerFiles = addNewFilesToSvn(sPath);
|
|
361
361
|
const addedClientFiles = addNewFilesToSvn(cPath);
|
|
362
362
|
|
|
363
|
-
|
|
363
|
+
//console.log(`表格目录新增文件: ${addedTFiles.length} 个`);
|
|
364
364
|
console.log(`服务器目录新增文件: ${addedServerFiles.length} 个`);
|
|
365
365
|
console.log(`客户端目录新增文件: ${addedClientFiles.length} 个`);
|
|
366
366
|
|
|
367
367
|
// 标记删除文件
|
|
368
368
|
console.log('检查并标记删除的文件...');
|
|
369
|
-
|
|
369
|
+
//const deletedTFiles = markDeletedFiles(tPath);
|
|
370
370
|
const deletedServerFiles = markDeletedFiles(sPath);
|
|
371
371
|
const deletedClientFiles = markDeletedFiles(cPath);
|
|
372
372
|
|
|
373
|
-
|
|
373
|
+
//console.log(`表格目录删除文件: ${deletedTFiles.length} 个`);
|
|
374
374
|
console.log(`服务器目录删除文件: ${deletedServerFiles.length} 个`);
|
|
375
375
|
console.log(`客户端目录删除文件: ${deletedClientFiles.length} 个`);
|
|
376
376
|
|
|
@@ -378,17 +378,18 @@ function main() {
|
|
|
378
378
|
const hasContentChanges = checkContentChanges();
|
|
379
379
|
|
|
380
380
|
// 检查各目录是否有更改
|
|
381
|
-
|
|
381
|
+
//const hasTChanges = hasChanges(tPath);
|
|
382
382
|
const hasSChanges = hasChanges(sPath);
|
|
383
383
|
const hasCChanges = hasChanges(cPath);
|
|
384
|
-
const hasAnyChanges =
|
|
384
|
+
const hasAnyChanges = hasSChanges || hasCChanges;
|
|
385
385
|
|
|
386
386
|
// 定义 shouldCommit
|
|
387
387
|
const shouldCommit = hasAnyChanges && hasContentChanges;
|
|
388
388
|
|
|
389
389
|
if (shouldCommit) {
|
|
390
390
|
console.log('📝 检测到实际内容变化,执行提交');
|
|
391
|
-
|
|
391
|
+
// 只提交 sPath 和 cPath,不提交 tPath (ModuleTable/table)
|
|
392
|
+
const successAll = svnUtils.runCommit([sPath, cPath], '自动同步功能模块表配置');
|
|
392
393
|
if (!successAll) {
|
|
393
394
|
console.log('⚠️ SVN 提交过程中出现错误');
|
|
394
395
|
}
|