Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Commit

Permalink
fix(Dependencies): Use main Typedoc package
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Feb 24, 2020
1 parent b59e869 commit 9822014
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 45 deletions.
94 changes: 57 additions & 37 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
"typescript": "3.8.2"
},
"dependencies": {
"@gerrit0/typedoc": "^0.15.10",
"@stencila/logga": "^2.1.0",
"ajv": "^6.10.2",
"chalk": "^3.0.0",
"globby": "^11.0.0",
"json5": "^2.1.1",
"rc": "^1.2.8"
"rc": "^1.2.8",
"typedoc": "^0.16.10"
},
"commitlint": {
"extends": [
Expand Down
2 changes: 1 addition & 1 deletion src/config.schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"description": "Configa 0.3.0",
"description": "Configa 0.4.2",
"$comment": "",
"properties": {
"appName": {
Expand Down
7 changes: 3 additions & 4 deletions src/develop-parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* during development of a package using Configa.
*/

import * as typedoc from '@gerrit0/typedoc'
import * as typedoc from 'typedoc'
import json5 from 'json5'
import { Application, log, Option, Validator } from './common'
import { validateDefault } from './develop-schema'
Expand All @@ -17,9 +17,8 @@ import { validateDefault } from './develop-schema'
* @returns An array of configuration options
*/
export function parseConfig(filePath: string): Application | undefined {
const app = new typedoc.Application({
module: 'commonjs',
target: 'es2017',
const app = new typedoc.Application()
app.bootstrap({
esModuleInterop: true,
experimentalDecorators: true
})
Expand Down
2 changes: 1 addition & 1 deletion src/develop.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('parseConfig', () => {
'Option is missing description: ConfigSimpleErrors.optionA',
"Option has type 'any': ConfigSimpleErrors.optionC",
"Option has type 'any': ConfigSimpleErrors.optionD",
"Option default value can not be parsed: ConfigSimpleErrors.optionE: JSON5: invalid character 'c' at 1:2",
"Option default value can not be parsed: ConfigSimpleErrors.optionE: JSON5: invalid character 'c' at 1:1",
'Option has long description: ConfigSimpleErrors.optionF'
])
})
Expand Down

0 comments on commit 9822014

Please sign in to comment.