@@ -17,8 +17,8 @@ export async function dev(schemaPath: string, options: DevOptions) {
1717 const cwd = process . cwd ( ) ;
1818
1919 // Resolve the actual project root and schema file
20- let projectRoot = cwd ;
21- let targetSchemaPath = schemaPath ;
20+ let _projectRoot = cwd ;
21+ const targetSchemaPath = schemaPath ;
2222 let hasPagesDir = false ;
2323 let pagesDir = '' ;
2424 let appConfig : unknown = null ;
@@ -33,15 +33,15 @@ export async function dev(schemaPath: string, options: DevOptions) {
3333
3434 if ( existsSync ( potentialPagesDir ) ) {
3535 console . log ( chalk . blue ( `📂 Detected project structure at ${ fileDir } ` ) ) ;
36- projectRoot = fileDir ;
36+ _projectRoot = fileDir ;
3737 hasPagesDir = true ;
3838 pagesDir = potentialPagesDir ;
3939
4040 // Try to load app.json as config
4141 try {
4242 appConfig = parseSchemaFile ( absoluteSchemaPath ) ;
4343 console . log ( chalk . blue ( '⚙️ Loaded App Config from app.json' ) ) ;
44- } catch ( e ) {
44+ } catch ( _e ) {
4545 console . warn ( 'Failed to parse app config' ) ;
4646 }
4747 }
@@ -170,7 +170,7 @@ export async function dev(schemaPath: string, options: DevOptions) {
170170 // We might get the cjs entry, but for aliasing usually fine.
171171 // Better yet, if we can find the package root, but require.resolve gives file.
172172 // Let's just use what require.resolve gives.
173- // @ts -ignore
173+ // @ts -expect-error - lucidePath is dynamically resolved
174174 viteConfig . resolve . alias [ 'lucide-react' ] = lucidePath ;
175175 } catch ( e ) {
176176 console . warn ( '⚠️ Could not resolve lucide-react automatically:' , e ) ;
@@ -192,7 +192,7 @@ export async function dev(schemaPath: string, options: DevOptions) {
192192 ] ,
193193 } ,
194194 } ;
195- } catch ( e ) {
195+ } catch ( _e ) {
196196 console . warn ( chalk . yellow ( '⚠️ Failed to load PostCSS plugins from root node_modules. Styles might not work correctly.' ) ) ;
197197 }
198198 }
0 commit comments