web-documentation 1.0.21 → 1.0.23
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.
- package/build/deploy.js +1 -1
- package/package.json +1 -1
- package/source/deploy.ts +6 -3
package/package.json
CHANGED
package/source/deploy.ts
CHANGED
|
@@ -61,7 +61,7 @@ interface SCOPE_TYPE extends Mapping<unknown> {
|
|
|
61
61
|
version: string
|
|
62
62
|
}
|
|
63
63
|
// endregion
|
|
64
|
-
const log = new Logger({name: 'web-documentation.deploy'})
|
|
64
|
+
const log = new Logger({name: 'web-documentation.deploy', level: 'debug'})
|
|
65
65
|
// region globals
|
|
66
66
|
/// region locations
|
|
67
67
|
const DOCUMENTATION_BUILD_PATH = resolve('./build/')
|
|
@@ -574,12 +574,15 @@ const main = async (): Promise<void> => {
|
|
|
574
574
|
HAS_API_DOCUMENTATION =
|
|
575
575
|
Boolean(SCOPE.scripts) &&
|
|
576
576
|
Object.prototype.hasOwnProperty.call(SCOPE.scripts, 'document')
|
|
577
|
-
if (HAS_API_DOCUMENTATION)
|
|
577
|
+
if (HAS_API_DOCUMENTATION) {
|
|
578
|
+
log.info('API documentation creation script detected.')
|
|
578
579
|
try {
|
|
579
580
|
log.debug(run('yarn document'))
|
|
580
|
-
} catch {
|
|
581
|
+
} catch (error) {
|
|
582
|
+
log.error(error)
|
|
581
583
|
HAS_API_DOCUMENTATION = false
|
|
582
584
|
}
|
|
585
|
+
}
|
|
583
586
|
|
|
584
587
|
log.debug(run('git checkout gh-pages'))
|
|
585
588
|
log.debug(run('git pull'))
|