Skip to content

Commit

Permalink
refactor(app-builder): move defineConfig to separate file
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Sep 4, 2024
1 parent 4c3bc48 commit 024b06b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/app-builder/src/defineConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import {type PdkBuilderConfig} from './types';

export const defineConfig = <C extends PdkBuilderConfig | (() => PdkBuilderConfig)>(config: C): C => config;
2 changes: 1 addition & 1 deletion apps/app-builder/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ export {
writeFile,
} from './utils';

export const defineConfig = <C extends PdkBuilderConfig | (() => PdkBuilderConfig)>(config: C): C => config;
export {defineConfig} from './defineConfig';

0 comments on commit 024b06b

Please sign in to comment.