Ai
1 Star 4 Fork 0

linuxmail/node-thread-worker-group

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.js 395 Bytes
一键复制 编辑 原始数据 按行查看 历史
linuxmail 提交于 2025-02-24 17:01 +08:00 . publish
const child_process = require('child_process');
const fs = require("fs");
const path = require("path");
const exec = (cmd) => {
child_process.execSync(cmd, { stdio: 'inherit' });
}
fs.rmSync("./dist", { "recursive": true, force: true });
exec("npx tsc -m ES6")
fs.renameSync("dist/index.js", "dist/index.mjs")
exec("npx tsc -m CommonJS")
fs.renameSync("dist/index.js", "dist/index.cjs")
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/linuxmail/node-thread-worker-group.git
git@gitee.com:linuxmail/node-thread-worker-group.git
linuxmail
node-thread-worker-group
node-thread-worker-group
master

搜索帮助