diff --git a/extensions/vscode/tsup.config.ts b/extensions/vscode/tsup.config.ts index 8c8ec1e84d..127555f84a 100644 --- a/extensions/vscode/tsup.config.ts +++ b/extensions/vscode/tsup.config.ts @@ -36,6 +36,9 @@ export default defineConfig([ name: 'schemas', setup(build) { build.onEnd(() => { + if (!fs.existsSync(path.resolve(__dirname, './dist'))) { + fs.mkdirSync(path.resolve(__dirname, './dist')); + } if (!fs.existsSync(path.resolve(__dirname, './dist/schemas'))) { fs.mkdirSync(path.resolve(__dirname, './dist/schemas')); }