@vue-storefront/api-extractor-config

1.0.0 • Public • Published

@vue-storefront/api-extractor-config

Common API Extractor configuration for Alokai Integrations

Usage

Install

yarn add -D @vue-storefront/api-extractor-config

Package configuration

First, you need a configuration file in your package root:

{
  "extends": "@vue-storefront/api-extractor-config",
  "mainEntryPointFilePath": "./lib/api-extractor-data.d.ts",
  "projectFolder": ".",
  "compiler": {
    "tsconfigFilePath": "<projectFolder>/tsconfig.json"
  },
  "dtsRollup": {
    "untrimmedFilePath": "./lib/<unscopedPackageName>.d.ts"
  },
  "docModel": {
    "apiJsonFilePath": "<projectFolder>/../../docs/reference/api/<unscopedPackageName>.api.json"
  }
}

This configuration assumes, that you have also a file src/api-extractor-data.ts in your project that exports the API definitions:

/**
 * Package documentation description.
 *
 * @packageDocumentation
 */

export * from "./types";
// etc...

mainEntryPointFilePath points to lib, so you need to build your package before running API Extractor.

/@vue-storefront/api-extractor-config/

    Package Sidebar

    Install

    npm i @vue-storefront/api-extractor-config

    Weekly Downloads

    26

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.56 kB

    Total Files

    3

    Last publish

    Collaborators

    • filrak
    • fifciuu
    • lukasborawski
    • wojciechsikora
    • skirianov
    • mtokarskivsf
    • dzalewski
    • macryb
    • rickrohrig