mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 12:05:24 -04:00
update compiler/server/build_pipe_server.js.
Signed-off-by: 卡哥 <lizhouze@huawei.com>
This commit is contained in:
@@ -17,7 +17,7 @@ const WebSocket = require('ws');
|
||||
const ts = require('typescript');
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
const process = require('child_process');
|
||||
const pipeProcess = require('child_process');
|
||||
|
||||
const { processComponentChild } = require('../lib/process_component_build');
|
||||
const { createWatchCompilerHost } = require('../lib/ets_checker');
|
||||
@@ -145,7 +145,7 @@ function es2abc(receivedMsg) {
|
||||
const cmd = es2abcFilePath + ' --base64Input ' +
|
||||
Buffer.from(receivedMsg.data.script).toString('base64') + ' --base64Output';
|
||||
try {
|
||||
process.exec(cmd, (error, stdout, stderr) => {
|
||||
pipeProcess.exec(cmd, (error, stdout, stderr) => {
|
||||
if (stdout) {
|
||||
receivedMsg.data.script = stdout;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user