Remove slightly confusing log when the slint-ui npm package gets installed locally

This would appear also when running `pnpm install` globally. If there's diagnostic output to be generated for this situation, it needs to go elsewhere.
This commit is contained in:
Simon Hausmann 2024-11-14 12:59:33 +01:00
parent e0d9ba5556
commit bc3a672e73

View file

@ -17,11 +17,7 @@ worker.on("exit", (code) => {
if (code !== 0) {
// HACK: npm package removes .npmignore. If the file is present, then it means that we're in the Slint git repo,
// and we don't want to automatically build (see https://github.com/slint-ui/slint/pull/6780).
if (existsSync("./.npmignore")) {
console.log(
"slint-ui: loading rust-module.cjs failed, please run `npm run build` first.",
);
} else {
if (!existsSync("./.npmignore")) {
console.log(
"slint-ui: loading rust-module.cjs failed, building now",
);