Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 19, 2024
1 parent 1aa14fd commit 8db4670
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions build.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { log } from '@stacksjs/cli'
import { fs } from '@stacksjs/storage'
import { generateDeclarationsFromFiles } from './src/generate'

log.info('Building...')
Expand All @@ -18,4 +19,10 @@ catch (error) {
console.error('Error generating declarations:', error)
}

// prepare dist for publishing
await fs.move('./dist/bin/cli.js', './dist/cli.js')
await fs.move('./dist/src/index.js', './dist/index.js')
await fs.remove('./dist/src')
await fs.remove('./dist/bin')

log.success('Built')
Binary file modified bun.lockb
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"docs:preview": "vitepress preview docs"
},
"devDependencies": {
"@stacksjs/cli": "^0.65.0",
"@stacksjs/development": "^0.65.0",
"@stacksjs/cli": "^0.67.0",
"@stacksjs/development": "^0.67.0",
"@stacksjs/eslint-config": "^3.8.1-beta.2",
"@types/bun": "^1.1.11",
"c12": "^2.0.1",
Expand Down
2 changes: 2 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export async function checkIsolatedDeclarations(options?: DtsGenerationConfig):
return tsconfig.compilerOptions?.isolatedDeclarations === true
}
catch (error) {
// eslint-disable-next-line no-console
console.log('Error reading tsconfig.json:', error)
return false
}
}
Expand Down

0 comments on commit 8db4670

Please sign in to comment.