Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aff09df

Browse files
committed
Resolves #441
1 parent 99dda79 commit aff09df

5 files changed

Lines changed: 11 additions & 3 deletions

File tree

.changeset/fuzzy-snakes-wash.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ultracite": patch
3+
---
4+
5+
Fix plugin install logging

packages/cli/src/initialize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const installDependencies = async (
6363
await addDevDependency(pkg, {
6464
packageManager,
6565
workspace: await isMonorepo(),
66-
silent: quiet,
66+
silent: true,
6767
});
6868
}
6969
} else {

packages/cli/src/integrations/husky.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const husky = {
8181
await addDevDependency("husky", {
8282
packageManager,
8383
workspace: await isMonorepo(),
84+
silent: true,
8485
});
8586

8687
// Add prepare script to package.json to ensure husky is initialized
@@ -97,7 +98,7 @@ export const husky = {
9798
});
9899

99100
try {
100-
execSync(initCommand, { stdio: "inherit" });
101+
execSync(initCommand, { stdio: "pipe" });
101102
} catch (_error) {
102103
// If init fails, it might be because it's already initialized
103104
// Continue anyway as we'll create the hook file next

packages/cli/src/integrations/lefthook.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export const lefthook = {
3636
await addDevDependency("lefthook", {
3737
packageManager,
3838
workspace: await isMonorepo(),
39+
silent: true,
3940
});
4041

4142
// Add prepare script to package.json to ensure lefthook is initialized
@@ -50,7 +51,7 @@ export const lefthook = {
5051
short: packageManager === "npm",
5152
});
5253

53-
execSync(installCommand, { stdio: "inherit" });
54+
execSync(installCommand, { stdio: "pipe" });
5455
},
5556
create: async (packageManager: PackageManagerName) => {
5657
const config = createLefthookConfig(packageManager);

packages/cli/src/integrations/lint-staged.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ export const lintStaged = {
298298
await addDevDependency("lint-staged", {
299299
packageManager,
300300
workspace: await isMonorepo(),
301+
silent: true,
301302
});
302303
},
303304
create: async (packageManager: PackageManagerName) => {

0 commit comments

Comments
 (0)