Skip to content

Commit

Permalink
allow to inject app module features
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacroldan committed Sep 19, 2024
1 parent 87a4a53 commit a370db8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/app/src/cli/models/extensions/specification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,12 @@ export function createContractBasedConfigModuleSpecification<TKey extends string

export function createContractBasedModuleSpecification<TConfiguration extends BaseConfigType = BaseConfigType>(
identifier: string,
appModuleFeatures?: ExtensionFeature[],
) {
return createExtensionSpecification({
identifier,
schema: zod.any({}) as unknown as ZodSchemaType<TConfiguration>,
appModuleFeatures: () => [],
appModuleFeatures: () => appModuleFeatures ?? [],
deployConfig: async (config, _) => {
return config
},
Expand Down

0 comments on commit a370db8

Please sign in to comment.