use posix style paths for all path ops
This commit is contained in:
		
							parent
							
								
									de72dd4e4a
								
							
						
					
					
						commit
						663c41fa41
					
				
					 7 changed files with 6 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -91,7 +91,7 @@ export function createFileParser(ctx: BuildCtx, fps: FilePath[]) {
 | 
			
		|||
        }
 | 
			
		||||
 | 
			
		||||
        // base data properties that plugins may use
 | 
			
		||||
        file.data.slug = slugifyFilePath(path.relative(argv.directory, file.path) as FilePath)
 | 
			
		||||
        file.data.slug = slugifyFilePath(path.posix.relative(argv.directory, file.path) as FilePath)
 | 
			
		||||
        file.data.filePath = fp
 | 
			
		||||
 | 
			
		||||
        const ast = processor.parse(file)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue