diff --git a/packages/gasket-plugin-metadata/CHANGELOG.md b/packages/gasket-plugin-metadata/CHANGELOG.md index 416897a78..4da8dbb5f 100644 --- a/packages/gasket-plugin-metadata/CHANGELOG.md +++ b/packages/gasket-plugin-metadata/CHANGELOG.md @@ -1,5 +1,7 @@ # `@gasket/plugin-metadata` +- Add missing `configurations` property to plugin metadata type + ### 6.35.0 - Fix package object type ([#489]) diff --git a/packages/gasket-plugin-metadata/lib/index.d.ts b/packages/gasket-plugin-metadata/lib/index.d.ts index 3df7b2acd..eeb41f178 100644 --- a/packages/gasket-plugin-metadata/lib/index.d.ts +++ b/packages/gasket-plugin-metadata/lib/index.d.ts @@ -40,6 +40,9 @@ export interface PluginData extends ModuleData { /** App files and directories used by plugin */ structures?: Array, + /** Configuration options for gasket.config.js */ + configurations?: Array + /** Description of lifecycles invoked by plugin */ lifecycles?: Array, diff --git a/packages/gasket-typescript-tests/test/plugin-metadata.spec.ts b/packages/gasket-typescript-tests/test/plugin-metadata.spec.ts index cc863bac1..9a0a9d13c 100644 --- a/packages/gasket-typescript-tests/test/plugin-metadata.spec.ts +++ b/packages/gasket-typescript-tests/test/plugin-metadata.spec.ts @@ -23,8 +23,8 @@ describe('@gasket/plugin-metadata', () => { }); }); - it('adds a manifest property to Gasket', () => { - const metadata: SlimGasket = { + it('adds a metadata property to Gasket', () => { + const gasket1: SlimGasket = { metadata: { app: { name: 'example', @@ -34,13 +34,26 @@ describe('@gasket/plugin-metadata', () => { name: 'example' } }, - plugins: [], + plugins: [ + { + module: {}, + name: '@mock/gasket-plugin-x', + configurations: [ + { + name: 'configX', + description: 'Configures the X plugin', + type: 'object', + link: 'https://some.docs.url/' + } + ] + } + ], presets: [], modules: [] } }; - const metadata2: SlimGasket = { + const gasket2: SlimGasket = { metadata: { app: { name: 'example',