docusaurus-plugin-typedoc-api icon indicating copy to clipboard operation
docusaurus-plugin-typedoc-api copied to clipboard

Feature request: configure the tsconfig package by package

Open Sc0ra opened this issue 3 years ago • 1 comments

In our project, we use absolute path in our monorepo packages thanks to tsconfig-paths. This doesn't allow us to use a common tsconfig file in the plugin configuration, because the absolute paths would not be resolved correctly.

A fix for us would be able to configure a different tsconfig file for each package:

plugins: [
    [
      'docusaurus-plugin-typedoc-api',
      {
        packages: [
          { path: 'packages/package-2', tsconfigName: 'packages/package-1/tsconfig.json' },
          { path: 'packages/package-1, tsconfigName: 'packages/package-2/tsconfig.json' },
        ],
      },
    ],
  ],

Do you think this could be possible ? Would you like us to possibly work on this subject and propose a PR ?

Sc0ra avatar May 20 '22 15:05 Sc0ra

@Sc0ra I don't do anything with the tsconfig.json, the underlying TypeDoc library does.

It also really only cares about entry points (https://github.com/milesj/docusaurus-plugin-typedoc-api/blob/master/packages/plugin/src/plugin/data.ts#L72), so I'm not 100% sure how the configs are resolved.

milesj avatar May 20 '22 16:05 milesj