Ai
187 Star 1.7K Fork 404

GVPAPITable/APITable

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.js 620 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jover 提交于 2024-01-29 17:11 +08:00 . sync: hosted cloud (#1592)
const { exec } = require('child_process');
const fs = require('fs');
const dir = 'src';
// Check if the file exists
fs.access(dir, fs.constants.F_OK, (err) => {
if (err) {
console.error(`${dir} does not exist, no compilation will be performed.`);
} else {
// File exists, execute the rollup -c command
exec('rm -rf ./dist && rollup -c --bundleConfigAsCjs && tsc-alias', (error, stdout, stderr) => {
if (error) {
console.error(`Error occurred while executing the compilation command: ${error}`);
} else {
console.log('Rollup compilation successful');
}
});
}
});
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/apitable/APITable.git
git@gitee.com:apitable/APITable.git
apitable
APITable
APITable
develop

搜索帮助