Skip to content

Commit 94dd3c5

Browse files
author
xiong
committed
English comments
1 parent 0ecfe9c commit 94dd3c5

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/core/prompts/sections/lint-rules.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export interface LinterReport {
3131
export function runCommand(command: string, options: string[], projectFolder: string) {
3232
return new Promise<string>((resolve, reject) => {
3333
const child = spawn(command, options, {
34-
cwd: projectFolder, // 设置子进程的工作目录
34+
cwd: projectFolder, // Set the working directory of the subprocess
3535
stdio: ["ignore", "pipe", "pipe"],
3636
})
3737

@@ -41,11 +41,6 @@ export function runCommand(command: string, options: string[], projectFolder: st
4141
output += data.toString()
4242
})
4343

44-
child.stderr?.on("data", (data) => {
45-
console.log(data.toString())
46-
// reject(data);
47-
})
48-
4944
child.on("close", (code) => {
5045
console.log(`child process exited with code ${code}`)
5146
if (Number(code) === 0 || Number(code) === 1) {

0 commit comments

Comments
 (0)