Skip to content

Commit db0cae5

Browse files
committed
Merge branch 'master' of https://github.com/TypeStrong/typedoc
2 parents 5ce43cf + b6a99d2 commit db0cae5

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
"dependencies": {
3333
"@types/fs-extra": "4.0.0",
3434
"@types/handlebars": "4.0.31",
35-
"@types/highlight.js": "9.1.8",
35+
"@types/highlight.js": "9.12.0",
3636
"@types/lodash": "4.14.74",
3737
"@types/marked": "0.3.0",
3838
"@types/minimatch": "2.0.29",
3939
"@types/shelljs": "0.7.0",
40-
"fs-extra": "^4.0.0",
40+
"fs-extra": "^5.0.0",
4141
"handlebars": "^4.0.6",
4242
"highlight.js": "^9.0.0",
4343
"lodash": "^4.13.1",

src/lib/utils/options/declaration.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export interface DeclarationOption {
2626
scope?: ParameterScope;
2727
map?: {};
2828
mapError?: string;
29-
isArray?: boolean;
3029
defaultValue?: any;
3130
convert?: (param: OptionDeclaration, value?: any) => any;
3231
}

src/lib/utils/plugins.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ export class PluginHost extends AbstractComponent<Application> {
1111
@Option({
1212
name: 'plugin',
1313
help: 'Specify the npm plugins that should be loaded. Omit to load all installed plugins, set to \'none\' to load no plugins.',
14-
type: ParameterType.String,
15-
isArray: true
14+
type: ParameterType.Array
1615
})
1716
plugins: string[];
1817

src/test/plugin-host.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Application } from '..';
2+
import Assert = require('assert');
3+
4+
describe('PluginHost', function () {
5+
it('parses plugins correctly', function () {
6+
let app = new Application({
7+
plugin: 'typedoc-plugin-1,typedoc-plugin-2'
8+
});
9+
10+
Assert.deepEqual(app.plugins.plugins, [
11+
'typedoc-plugin-1',
12+
'typedoc-plugin-2'
13+
]);
14+
});
15+
});

0 commit comments

Comments
 (0)