From 4692337d7d348abae7be98b76c1320146411273d Mon Sep 17 00:00:00 2001 From: Clark Buehler Date: Thu, 28 Jul 2022 18:30:46 -0400 Subject: [PATCH] Path.sep is wrong, Path.parse() will return with / as the delimiter even on Windows. --- src/parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parser.ts b/src/parser.ts index 5c52e09..363d0c3 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -20,7 +20,7 @@ export function parseFiles(root_directories: string[]): T.SqlFile[] { const path = Path.parse(relative_path) const file_contents = Fs.readFileSync(f, 'utf8') - const path_parts = _.compact(path.dir.split(Path.sep).concat(path.name)) + const path_parts = _.compact(path.dir.split('/').concat(path.name)) const sql_name = path_parts.join('_') const sql_key = path_parts.join('.')