mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-17 18:57:10 +00:00
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:
parent
e0d9ba5556
commit
bc3a672e73
1 changed files with 1 additions and 5 deletions
|
|
@ -17,11 +17,7 @@ worker.on("exit", (code) => {
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
// HACK: npm package removes .npmignore. If the file is present, then it means that we're in the Slint git repo,
|
// 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).
|
// and we don't want to automatically build (see https://github.com/slint-ui/slint/pull/6780).
|
||||||
if (existsSync("./.npmignore")) {
|
if (!existsSync("./.npmignore")) {
|
||||||
console.log(
|
|
||||||
"slint-ui: loading rust-module.cjs failed, please run `npm run build` first.",
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
console.log(
|
console.log(
|
||||||
"slint-ui: loading rust-module.cjs failed, building now",
|
"slint-ui: loading rust-module.cjs failed, building now",
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue