()
| 33 | * Generate TypeScript definition files from JSDoc. |
| 34 | */ |
| 35 | export async function defTypings() { |
| 36 | task.stopOnFailures() |
| 37 | say('Generate TypeScript definition') |
| 38 | await shell`npx jsdoc -c typings/jsdocPromiseBased.conf.json` |
| 39 | fs.renameSync('typings/types.d.ts', 'typings/promiseBasedTypes.d.ts') |
| 40 | await shell`npx jsdoc -c typings/jsdoc.conf.json` |
| 41 | } |
| 42 | |
| 43 | /** |
| 44 | * Generate documentation for plugins: each plugin gets a dedicated page plus an overview index. |