Skip to content

Commit 8f0404d

Browse files
committed
[javascript] fix: runCommand remove eol only last line
1 parent 3d54c12 commit 8f0404d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

packages/javascript/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog (JavaScript)
22

3+
## 1.9.4 (2025-03-12)
4+
5+
- The `machini` packages have now been merged into the `qsu` package
6+
37
## 1.9.3 (2025-03-08)
48

59
- `generateLicense`: Add bsd3 license

packages/javascript/lib/node/os/runCommand.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ export function runCommand(command: string): Promise<string | null> {
1212
return;
1313
}
1414

15-
const output = stdout.split(EOL)?.[0];
16-
1715
execCommandProcess?.stdin?.end();
1816

19-
resolve(output);
17+
resolve(stdout.replace(new RegExp(`${EOL}$`), ''));
2018
}
2119
);
2220
});

0 commit comments

Comments
 (0)