File tree Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Expand file tree Collapse file tree 1 file changed +6
-11
lines changed Original file line number Diff line number Diff line change 11import fs from 'fs-extra'
2- import semverUtils from 'semver-utils '
2+ import semverCompare from 'semver-compare '
33import { normalizeYuiDocClassItem } from './yuidoc-fixer/normalize-yui-doc-class-item'
44import { yuiDocClassItemKeys } from './yuidoc-fixer/yui-doc-class-item-keys'
55import { normalizeYuiDocClass } from './yuidoc-fixer/normalize-yui-doc-class'
@@ -18,17 +18,12 @@ export default async function fixBorkedYuidocFiles(file) {
1818 return
1919 }
2020
21- const version = semverUtils . parse (
22- file
23- . replace ( 'tmp/s3-docs/v' , '' )
24- . replace ( '/ember-docs.json' , '' )
25- . replace ( '/ember-data-docs.json' , '' )
26- )
21+ const version = file
22+ . replace ( 'tmp/s3-docs/v' , '' )
23+ . replace ( '/ember-docs.json' , '' )
24+ . replace ( '/ember-data-docs.json' , '' )
2725
28- if (
29- parseInt ( version [ 'major' ] ) < 3 ||
30- ! ( parseInt ( version [ 'major' ] ) === 3 && parseInt ( version [ 'minor' ] ) >= 10 )
31- ) {
26+ if ( semverCompare ( version , '3.10.0' ) === - 1 ) {
3227 return file
3328 }
3429
You can’t perform that action at this time.
0 commit comments