docusaurus-plugin-typedoc 1.2.1 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,8 @@ async function generateTypedoc(context, opts) {
33
33
  }
34
34
  const { plugin, ...options } = getPluginOptions(context, opts);
35
35
  // spawn typedoc process and pass docusaurus.config options as a string
36
- spawnSync('typedoc', [
36
+ const typedocExecutable = process.platform === 'win32' ? 'typedoc.cmd' : 'typedoc';
37
+ spawnSync(typedocExecutable, [
37
38
  ...plugin.flatMap((plugin) => ['--plugin', plugin]),
38
39
  '--docusaurusConfigOptions',
39
40
  `${JSON.stringify(options)}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docusaurus-plugin-typedoc",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "A Docusaurus plugin to integrate TypeDoc ( + typedoc-plugin-markdown ) into a Docusaurus project.",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",