feat: call executable file directly
This commit is contained in:
parent
0477e5790b
commit
52ffe8d80c
@ -4,7 +4,7 @@ import fs from "fs";
|
||||
import { glob } from "./util";
|
||||
import path from "path";
|
||||
export async function build() {
|
||||
let ret = await Shell.exec("node", ["node_modules/.bin/tsc", "-p", "."], {
|
||||
let ret = await Shell.exec("node_modules/.bin/tsc", ["-p", "."], {
|
||||
env: process.env,
|
||||
consoleHandler: (info) => {
|
||||
console.log(info);
|
||||
@ -14,7 +14,7 @@ export async function build() {
|
||||
console.log("Compile error".red);
|
||||
return -1;
|
||||
}
|
||||
ret = await Shell.exec("node", ["node_modules/.bin/rollup", "-c",], {
|
||||
ret = await Shell.exec("node_modules/.bin/rollup", ["-c",], {
|
||||
env: process.env,
|
||||
consoleHandler: (info) => {
|
||||
console.log(info);
|
||||
|
@ -78,10 +78,10 @@ export default async function dev() {
|
||||
}
|
||||
});
|
||||
|
||||
const tscProcess = exec("node node_modules/.bin/tsc -w -p .", {
|
||||
const tscProcess = exec("node_modules/.bin/tsc -w -p .", {
|
||||
env: process.env,
|
||||
});
|
||||
const rollupProcess = exec("node node_modules/.bin/rollup -c -w", {
|
||||
const rollupProcess = exec("node_modules/.bin/rollup -c -w", {
|
||||
env: process.env,
|
||||
});
|
||||
[tscProcess, rollupProcess].forEach(e => {
|
||||
|
Reference in New Issue
Block a user