Skip to content

Commit

Permalink
fix:统一注册定时任务,插件包目录细化
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowwarmth committed Nov 12, 2024
1 parent 64f49df commit 687d8fe
Show file tree
Hide file tree
Showing 32 changed files with 2,709 additions and 128 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ node_modules
config/pm2
config/config.json
generate
package-lock.json
package-lock.yaml
9 changes: 7 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@ const { execSync } = require('child_process');
const fs = require('fs');
const path = require('path');

// 编译 TypeScript 文件
execSync("tsc");
try {
// 编译 TypeScript 文件并捕获错误
execSync("tsc", { stdio: 'inherit' });
} catch (error) {
console.error("TypeScript 编译过程中发生错误:", error.message);
process.exit(1); // 编译失败时退出程序
}

// 删除 .map 文件的函数
function deleteMapFiles(dir) {
Expand Down
Loading

0 comments on commit 687d8fe

Please sign in to comment.