File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 85
85
"map-reverse" : " ^1.0.1" ,
86
86
"mkdirp" : " ^0.5.1" ,
87
87
"moment" : " ^2.10.3" ,
88
- "moment-duration-format" : " ^1.3.0 " ,
88
+ "moment-duration-format" : " ^2.2.2 " ,
89
89
"mustache" : " ^2.1.2" ,
90
90
"nanoid" : " ^1.0.1" ,
91
91
"node-version" : " ^1.0.0" ,
Original file line number Diff line number Diff line change @@ -2,11 +2,13 @@ import chalk from 'chalk';
2
2
import indentString from 'indent-string' ;
3
3
import { identity , escape as escapeHtml , assignIn } from 'lodash' ;
4
4
import moment from 'moment' ;
5
- import 'moment-duration-format' ;
5
+ import momentDurationFormatSetup from 'moment-duration-format' ;
6
6
import OS from 'os-family' ;
7
7
import { wordWrap , removeTTYColors } from '../utils/string' ;
8
8
import getViewportWidth from '../utils/get-viewport-width' ;
9
9
10
+ momentDurationFormatSetup ( moment ) ;
11
+
10
12
// NOTE: we should not expose internal state to
11
13
// the plugin, to avoid accidental rewrites.
12
14
// Therefore we use symbols to store them.
You can’t perform that action at this time.
0 commit comments