@ali-i18n-fe/dada-component
Version:
20 lines (14 loc) • 382 B
JavaScript
const path = require("path");
const { shellSyncExec } = require("./utils");
const binPath = path.resolve(__dirname, "../node_modules/.bin");
const tscPath = path.resolve(binPath, "tsc");
const Tsc = {
typesCmd: tscPath,
async load() {
shellSyncExec(`${this.typesCmd}`);
},
async watch() {
shellSyncExec(`${this.typesCmd} --watch`);
}
};
module.exports = Tsc;