Skip to content

Commit b464120

Browse files
committed
build: fix svelte dts emit
1 parent 467f16c commit b464120

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/build.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ import { build } from 'vite'
2626
svelteShimsPath: 'node_modules/svelte2tsx/svelte-shims.d.ts',
2727
declarationDir: './dist',
2828
})
29+
glob.sync('./dist/src/*.svelte.d.ts').forEach((file) => {
30+
// console.log(file)
31+
fs.moveSync(file, file.replace('/src', ''))
32+
})
33+
fs.removeSync('./dist/src')
2934
}
3035

3136
// build js

0 commit comments

Comments
 (0)