Skip to content

Commit 4b9892c

Browse files
committed
add missing attachments module to generate-types
1 parent 2970576 commit 4b9892c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/svelte/scripts/generate-types.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@ const pkg = JSON.parse(fs.readFileSync(`${dir}/package.json`, 'utf-8'));
88

99
// For people not using moduleResolution: 'bundler', we need to generate these files. Think about removing this in Svelte 6 or 7
1010
// It may look weird, but the imports MUST be ending with index.js to be properly resolved in all TS modes
11-
for (const name of ['action', 'animate', 'easing', 'motion', 'store', 'transition', 'legacy']) {
11+
for (const name of [
12+
'action',
13+
'attachments',
14+
'animate',
15+
'easing',
16+
'motion',
17+
'store',
18+
'transition',
19+
'legacy'
20+
]) {
1221
fs.writeFileSync(`${dir}/${name}.d.ts`, "import './types/index.js';\n");
1322
}
1423

0 commit comments

Comments
 (0)