From 382fe6b7b97c652ded76a6f082f143f8ed0a2d78 Mon Sep 17 00:00:00 2001 From: mrkishi Date: Fri, 26 Oct 2018 11:03:29 -0300 Subject: [PATCH] Add missing posixify --- src/core/create_manifests.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/create_manifests.ts b/src/core/create_manifests.ts index 74a85ff..3ff7a95 100644 --- a/src/core/create_manifests.ts +++ b/src/core/create_manifests.ts @@ -226,8 +226,8 @@ function generate_server( error };`.replace(/^\t\t/gm, '').trim(); - const build_dir = path.relative(cwd, dest); - const src_dir = path.relative(cwd, src); + const build_dir = posixify(path.relative(cwd, dest)); + const src_dir = posixify(path.relative(cwd, src)); return `// This file is generated by Sapper — do not edit it!\n` + template .replace('__BUILD__DIR__', JSON.stringify(build_dir)) @@ -242,4 +242,4 @@ function get_file(path_to_routes: string, component: PageComponent) { } return posixify(`${path_to_routes}/${component.file}`); -} \ No newline at end of file +}