mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-11 01:14:36 +00:00
chore: fix code styles
This commit is contained in:
@@ -4,12 +4,17 @@ const ts = require('typescript')
|
|||||||
const typedocJson = require('./typedoc.json')
|
const typedocJson = require('./typedoc.json')
|
||||||
|
|
||||||
async function createTSDocs() {
|
async function createTSDocs() {
|
||||||
if (!typedocJson.entryPoints?.length)
|
if (!typedocJson.entryPoints?.length) {
|
||||||
throw new Error('entryPoints option is missing in typedoc configuration.')
|
throw new Error(
|
||||||
|
'Typedoc error: entryPoints option is missing in typedoc configuration.'
|
||||||
if (!typedocJson.out)
|
)
|
||||||
throw new Error('out option is missing in typedoc configuration.')
|
}
|
||||||
|
|
||||||
|
if (!typedocJson.out) {
|
||||||
|
throw new Error(
|
||||||
|
'Typedoc error: out option is missing in typedoc configuration.'
|
||||||
|
)
|
||||||
|
}
|
||||||
const app = new td.Application()
|
const app = new td.Application()
|
||||||
app.options.addReader(new td.TSConfigReader())
|
app.options.addReader(new td.TSConfigReader())
|
||||||
|
|
||||||
@@ -23,7 +28,7 @@ async function createTSDocs() {
|
|||||||
if (project) {
|
if (project) {
|
||||||
await app.generateDocs(project, typedocJson.out)
|
await app.generateDocs(project, typedocJson.out)
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Error creating the TS docs.')
|
throw new Error('Typedoc error: error creating the TS docs.')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user