Fixes on the admin initialization cmd
This commit is contained in:
parent
96690e1354
commit
4f2790f6d3
@ -109,9 +109,12 @@ export async function command(params: { buildContext: BuildContext }) {
|
||||
.toString("utf8")
|
||||
.trim()
|
||||
) as string[]
|
||||
).find(version =>
|
||||
uiSharedMajor === undefined ? true : version.startsWith(`${uiSharedMajor}.`)
|
||||
);
|
||||
)
|
||||
.reverse()
|
||||
.filter(version => !version.includes("-"))
|
||||
.find(version =>
|
||||
uiSharedMajor === undefined ? true : version.startsWith(`${uiSharedMajor}.`)
|
||||
);
|
||||
|
||||
assert(version !== undefined);
|
||||
|
||||
|
@ -105,16 +105,16 @@ async function runPackageManagerInstall(params: {
|
||||
shell: true
|
||||
});
|
||||
|
||||
child.stdout.on("data", data => {
|
||||
child.stdout.on("data", data => process.stdout.write(data));
|
||||
|
||||
child.stderr.on("data", data => {
|
||||
if (data.toString("utf8").includes("has unmet peer dependency")) {
|
||||
return;
|
||||
}
|
||||
|
||||
process.stdout.write(data);
|
||||
process.stderr.write(data);
|
||||
});
|
||||
|
||||
child.stderr.on("data", data => process.stderr.write(data));
|
||||
|
||||
child.on("exit", code => {
|
||||
if (code !== 0) {
|
||||
dCompleted.reject(new Error(`Failed with code ${code}`));
|
||||
|
Loading…
x
Reference in New Issue
Block a user