Skip to content

Commit 59138d0

Browse files
committed
posixify generated paths
1 parent a8d6425 commit 59138d0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/kit/src/core/tsconfig.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'fs';
22
import path from 'path';
33
import colors from 'kleur';
4-
import { mkdirp } from '../utils/filesystem.js';
4+
import { mkdirp, posixify } from '../utils/filesystem.js';
55
import { SVELTE_KIT } from './constants.js';
66

77
/** @param {string} file */
@@ -17,10 +17,10 @@ export function generate_tsconfig(config) {
1717
mkdirp(SVELTE_KIT);
1818

1919
/** @param {string} file */
20-
const project_relative = (file) => path.relative('.', file);
20+
const project_relative = (file) => posixify(path.relative('.', file));
2121

2222
/** @param {string} file */
23-
const config_relative = (file) => path.relative(SVELTE_KIT, file);
23+
const config_relative = (file) => posixify(path.relative(SVELTE_KIT, file));
2424

2525
const dirs = new Set([
2626
project_relative(path.dirname(config.kit.files.routes)),

0 commit comments

Comments
 (0)