---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [plugins](../index.md) / DiscoveredPlugin

# Interface: DiscoveredPlugin

Defined in: [packages/b2c-tooling-sdk/src/plugins/discovery.ts:21](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/plugins/discovery.ts#L21)

A discovered plugin with its hook file paths.

## Properties

### hooks

> **hooks**: `Partial`\<`Record`\<[`SupportedHookName`](../type-aliases/SupportedHookName.md), `string`[]\>\>

Defined in: [packages/b2c-tooling-sdk/src/plugins/discovery.ts:27](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/plugins/discovery.ts#L27)

Map of hook name to relative file path(s) within the plugin package

***

### name

> **name**: `string`

Defined in: [packages/b2c-tooling-sdk/src/plugins/discovery.ts:23](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/plugins/discovery.ts#L23)

Plugin package name

***

### packageDir

> **packageDir**: `string`

Defined in: [packages/b2c-tooling-sdk/src/plugins/discovery.ts:25](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/plugins/discovery.ts#L25)

Absolute path to the plugin's package directory
