@@ -116,13 +116,13 @@ function checkDependencies() {
116116function installDependencies ( ) {
117117 logStep ( 'Installing Dependencies' ) ;
118118
119- // Install npm dependencies
120- const npmResult = runCommand ( 'npm install' ) ;
121- if ( ! npmResult . success ) {
122- logError ( 'Failed to install npm dependencies' ) ;
119+ // Install pnpm dependencies
120+ const pnpmResult = runCommand ( 'pnpm install' ) ;
121+ if ( ! pnpmResult . success ) {
122+ logError ( 'Failed to install pnpm dependencies' ) ;
123123 return false ;
124124 }
125- logSuccess ( 'npm dependencies installed' ) ;
125+ logSuccess ( 'pnpm dependencies installed' ) ;
126126
127127 // Install Rust dependencies if Cargo.toml exists
128128 if ( fs . existsSync ( 'workers/rust-worker/Cargo.toml' ) ) {
@@ -144,7 +144,7 @@ function runStaticAnalysis() {
144144
145145 // ESLint
146146 logInfo ( 'Running ESLint...' ) ;
147- const eslintResult = runCommand ( 'npm run lint' ) ;
147+ const eslintResult = runCommand ( 'pnpm run lint' ) ;
148148 if ( eslintResult . success ) {
149149 logSuccess ( 'ESLint passed' ) ;
150150 } else {
@@ -154,7 +154,7 @@ function runStaticAnalysis() {
154154
155155 // TypeScript type check
156156 logInfo ( 'Running TypeScript type check...' ) ;
157- const tscResult = runCommand ( 'npm run type-check' ) ;
157+ const tscResult = runCommand ( 'pnpm run type-check' ) ;
158158 if ( tscResult . success ) {
159159 logSuccess ( 'TypeScript type check passed' ) ;
160160 } else {
@@ -164,7 +164,7 @@ function runStaticAnalysis() {
164164
165165 // Prettier check
166166 logInfo ( 'Running Prettier check...' ) ;
167- const prettierResult = runCommand ( 'npm run format:check' ) ;
167+ const prettierResult = runCommand ( 'pnpm run format:check' ) ;
168168 if ( prettierResult . success ) {
169169 logSuccess ( 'Prettier check passed' ) ;
170170 } else {
@@ -207,7 +207,7 @@ function runUnitTests() {
207207 for ( const pkg of packages ) {
208208 if ( fs . existsSync ( path . join ( pkg , 'package.json' ) ) ) {
209209 logInfo ( `Running tests for ${ pkg } ...` ) ;
210- const testResult = runCommand ( 'npm run test:unit' , pkg ) ;
210+ const testResult = runCommand ( 'pnpm run test:unit' , pkg ) ;
211211 if ( testResult . success ) {
212212 logSuccess ( `${ pkg } tests passed` ) ;
213213 } else {
0 commit comments