use posix style paths for all path ops

This commit is contained in:
Jacky Zhao committed 2023-08-02 23:04:26 -07:00
1 parent de72dd4e4a
commit 663c41fa41
7 files changed
+6 -13

No files matched your search

+1 -1
View File
@@ -27,7 +27,7 @@ export const CreatedModifiedDate: QuartzTransformerPlugin<Partial<Options> | und
let modified: MaybeDate = undefined
let published: MaybeDate = undefined
const fp = path.join(file.cwd, file.data.filePath as string)
const fp = path.posix.join(file.cwd, file.data.filePath as string)
for (const source of opts.priority) {
if (source === "filesystem") {
const st = await fs.promises.stat(fp)