Skip to content

Commit 867a9ae

Browse files
committed
fix and changeset
1 parent 450ec48 commit 867a9ae

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/slimy-cows-listen.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
fix: make param matchers generated type import end with `.js`

packages/kit/src/core/sync/write_types/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ function replace_ext_with_js(file_path) {
585585
function generate_params_type(params, outdir, config) {
586586
/** @param {string} matcher */
587587
const path_to_matcher = (matcher) =>
588-
posixify(path.relative(outdir, path.join(config.kit.files.params, matcher)));
588+
posixify(path.relative(outdir, path.join(config.kit.files.params, matcher + '.js')));
589589

590590
return `{ ${params
591591
.map(

0 commit comments

Comments
 (0)