@@ -20,7 +20,7 @@ import { parse } from '@babel/parser'
2020
2121const SCRIPT_DIR = dirname ( fileURLToPath ( import . meta. url ) )
2222const ROOT = resolve ( SCRIPT_DIR , '..' )
23- export const SCAN_DIRS = [ join ( ROOT , 'apps' ) , join ( ROOT , 'packages' ) , join ( ROOT , 'scripts' ) ]
23+ const SCAN_DIRS = [ join ( ROOT , 'apps' ) , join ( ROOT , 'packages' ) , join ( ROOT , 'scripts' ) ]
2424const SKIP_DIRS = new Set ( [ 'node_modules' , '.next' , '.turbo' , 'coverage' , 'dist' , 'build' , 'out' ] )
2525const SOURCE_EXTENSIONS = new Set ( [ '.ts' , '.tsx' , '.mts' , '.cts' ] )
2626const ALLOW_ANNOTATION = '// sql-date-bound:'
@@ -372,11 +372,7 @@ const TEMPLATE_REASON =
372372 'a Date interpolated into a raw sql template has no encoder; bind it with sql.param(date, table.column)'
373373const PARAM_REASON = 'sql.param(date) has no encoder; pass the column as the second argument'
374374
375- export function findSqlDateBindingViolations ( source : string , file = 'source.ts' ) : Violation [ ] {
376- return analyzeSource ( source , file ) . violations
377- }
378-
379- export function analyzeSource ( source : string , file = 'source.ts' ) : FileAnalysis {
375+ function analyzeSource ( source : string , file = 'source.ts' ) : FileAnalysis {
380376 let program : SyntaxNode
381377 try {
382378 const syntaxTree = parse ( source , {
0 commit comments