Skip to content

Commit

Permalink
fix: enable declarations and export defineBuildConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 21, 2021
1 parent bf1ba63 commit 0e7d62b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { BuildConfig } from './src/types'

export default <BuildConfig> {
declaration: true,
entries: [
'src/index',
'src/cli'
Expand Down
4 changes: 4 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ export interface BuildContext extends BuildOptions {
export interface BuildConfig extends Partial<Omit<BuildOptions, 'entries'>> {
entries: (BuildEntry | string)[],
}

export function defineBuildConfig (config: BuildConfig): BuildConfig {
return config
}

0 comments on commit 0e7d62b

Please sign in to comment.