Skip to content

Commit

Permalink
Update tsup.config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Nov 6, 2024
1 parent 1e5f141 commit 94ad2c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/vscode/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
Expand Down

0 comments on commit 94ad2c4

Please sign in to comment.