From 083d9bc20248436439eb73d7979d7647974ad304 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 16 Oct 2024 01:01:31 +0200 Subject: [PATCH] chore: wip --- build.ts | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/build.ts b/build.ts index b6c669a..8e28219 100644 --- a/build.ts +++ b/build.ts @@ -1,6 +1,5 @@ import { log } from '@stacksjs/cli' - -// import { $ } from 'bun' +import { generateDeclarationsFromFiles } from './src/generate' log.info('Building...') @@ -11,13 +10,11 @@ await Bun.build({ target: 'bun', }) -// tigger dts generation here - -// await $`cp ./dist/src/index.js ./dist/index.js` -// await $`rm -rf ./dist/src` -// await $`cp ./dist/bin/cli.js ./dist/cli.js` -// await $`rm -rf ./dist/bin` -// await $`cp ./bin/cli.d.ts ./dist/cli.d.ts` -// await $`rm ./bin/cli.d.ts` +try { + await generateDeclarationsFromFiles() + console.log('Generated declarations') +} catch (error) { + console.error('Error generating declarations:', error) +} log.success('Built')