@@ -27,20 +27,21 @@ function testComponent(component: string, baseAppPath: string): TestResult {
2727 } ) ;
2828
2929 // Install the component from registry
30- const addOutput = execFileSync ( 'pnpm' , [ 'exec' , 'shadcn' , 'add' , `@uipath/${ component } ` ] , {
30+ const addOutput = execFileSync ( 'pnpm' , [ 'exec' , 'shadcn' , 'add' , `@uipath/${ component } ` , '--overwrite' ] , {
3131 encoding : 'utf-8' ,
3232 stdio : [ 'pipe' , 'pipe' , 'pipe' ] ,
3333 cwd : testDir ,
3434 } ) ;
3535
36- // Run build to verify all imports resolve correctly
37- const buildOutput = execFileSync ( 'pnpm' , [ 'run' , 'build' ] , {
36+ // Type-check all files to verify all imports resolve correctly
37+ // (next build only checks files in the build graph — components not imported by any page would be skipped)
38+ const tscOutput = execFileSync ( 'pnpm' , [ 'exec' , 'tsc' , '--noEmit' ] , {
3839 encoding : 'utf-8' ,
3940 stdio : [ 'pipe' , 'pipe' , 'pipe' ] ,
4041 cwd : testDir ,
4142 } ) ;
4243
43- return { component, success : true , output : `${ addOutput } \n${ buildOutput } ` } ;
44+ return { component, success : true , output : `${ addOutput } \n${ tscOutput } ` } ;
4445 } catch ( error ) {
4546 if ( error instanceof Error && 'stdout' in error && 'stderr' in error ) {
4647 return { component, success : false , output : `${ error . stdout } \n${ error . stderr } ` } ;
0 commit comments