Skip to content

Commit ee992d8

Browse files
fix: update pre-commit-checks to reference yarn instead of npm
1 parent fd7af2f commit ee992d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.cursor/rules/quality/pre-commit-checks.mdc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function runClientChecks() {
8989
// Run client lint
9090
console.log('Running client lint checks...');
9191
try {
92-
const lintOutput = execSync('cd app/client && npm run lint', { encoding: 'utf8' });
92+
const lintOutput = execSync('cd app/client && yarn lint', { encoding: 'utf8' });
9393
results.output.push('✅ Client lint passed');
9494
} catch (error) {
9595
results.success = false;
@@ -100,7 +100,7 @@ function runClientChecks() {
100100
// Run client unit tests
101101
console.log('Running client unit tests...');
102102
try {
103-
const testOutput = execSync('cd app/client && npm run test', { encoding: 'utf8' });
103+
const testOutput = execSync('cd app/client && yarn test', { encoding: 'utf8' });
104104
results.output.push('✅ Client unit tests passed');
105105
} catch (error) {
106106
results.success = false;
@@ -111,7 +111,7 @@ function runClientChecks() {
111111
// Check for cyclic dependencies
112112
console.log('Checking for cyclic dependencies...');
113113
try {
114-
const cyclicCheckOutput = execSync('cd app/client && npm run check-circular-deps', { encoding: 'utf8' });
114+
const cyclicCheckOutput = execSync('cd app/client && yarn check-circular-deps', { encoding: 'utf8' });
115115
results.output.push('✅ No cyclic dependencies found');
116116
} catch (error) {
117117
results.success = false;
@@ -122,7 +122,7 @@ function runClientChecks() {
122122
// Run prettier check
123123
console.log('Running prettier check...');
124124
try {
125-
const prettierOutput = execSync('cd app/client && npm run prettier', { encoding: 'utf8' });
125+
const prettierOutput = execSync('cd app/client && yarn prettier', { encoding: 'utf8' });
126126
results.output.push('✅ Prettier check passed');
127127
} catch (error) {
128128
results.success = false;
@@ -284,7 +284,7 @@ This rule runs automatically on pre-commit events. You can also manually trigger
284284

285285
### Requirements
286286

287-
- Node.js and npm for client-side checks
287+
- Node.js and yarn for client-side checks
288288
- Java and Gradle for server-side checks
289289
- Git for determining changed files
290290

0 commit comments

Comments
 (0)