File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { fileURLToPath } from 'node:url'
1111import colors from 'yoctocolors-cjs'
1212
1313import { isQuiet } from '#socketsecurity/lib/argv/flags'
14+ import { normalizePath } from '#socketsecurity/lib/paths'
1415import { pluralize } from '#socketsecurity/lib/words'
1516
1617const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
@@ -43,7 +44,9 @@ function checkExport(filePath) {
4344 // Skip external packages - they are internal implementation details
4445 // used by public dist/* modules. We only validate public exports.
4546 const relativePath = path . relative ( distDir , filePath )
46- if ( relativePath . startsWith ( 'external/' ) ) {
47+ // Normalize path for cross-platform compatibility (Windows uses backslashes)
48+ const normalizedPath = normalizePath ( relativePath )
49+ if ( normalizedPath . startsWith ( 'external/' ) ) {
4750 return { path : filePath , ok : true , skipped : true }
4851 }
4952
You can’t perform that action at this time.
0 commit comments