File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 12
12
addons :
13
13
chrome : stable
14
14
cache : yarn
15
- before_script : npm run bundle
15
+ before_script : npm run bundle && npm run compile:cli
16
16
deploy :
17
17
- provider : npm
18
18
skip_cleanup : true
Original file line number Diff line number Diff line change 3
3
"version" : " 2.0.0-alpha.13" ,
4
4
"description" : " ReDoc" ,
5
5
"main" : " bundles/redoc.lib.js" ,
6
- "bin" : " bin/cli" ,
6
+ "bin" : " bin/cli.js " ,
7
7
"scripts" : {
8
8
"start" : " webpack-dev-server --hot" ,
9
9
"start:benchmark" : " webpack-dev-server --env.prod --env.perf" ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export function html2Str(html: string): string {
26
26
27
27
// scrollIntoViewIfNeeded polyfill
28
28
29
- if ( ! ( Element as any ) . prototype . scrollIntoViewIfNeeded ) {
29
+ if ( typeof Element !== 'undefined' && ! ( Element as any ) . prototype . scrollIntoViewIfNeeded ) {
30
30
( Element as any ) . prototype . scrollIntoViewIfNeeded = function ( centerIfNeeded ) {
31
31
centerIfNeeded = arguments . length === 0 ? true : ! ! centerIfNeeded ;
32
32
You can’t perform that action at this time.
0 commit comments