> Common API Extractor configuration for Alokai Integrations
> Common API Extractor configuration for Alokai Integrations
``bash`
yarn add -D @vue-storefront/api-extractor-config
First, you need a configuration file in your package root:
`json`
{
"extends": "@vue-storefront/api-extractor-config",
"mainEntryPointFilePath": "./lib/api-extractor-data.d.ts",
"projectFolder": ".",
"compiler": {
"tsconfigFilePath": "
},
"dtsRollup": {
"untrimmedFilePath": "./lib/
},
"docModel": {
"apiJsonFilePath": "
}
}
This configuration assumes, that you have also a file src/api-extractor-data.ts in your project that exports the API definitions:
`ts
/**
* Package documentation description.
*
* @packageDocumentation
*/
export * from "./types";
// etc...
`
mainEntryPointFilePath points to lib`, so you need to build your package before running API Extractor.