Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 15, 2024
1 parent b81e275 commit 083d9bc
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions build.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { log } from '@stacksjs/cli'

// import { $ } from 'bun'
import { generateDeclarationsFromFiles } from './src/generate'

log.info('Building...')

Expand All @@ -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')

0 comments on commit 083d9bc

Please sign in to comment.