1
1
import * as fs from 'fs' ;
2
2
import * as path from 'path' ;
3
3
4
- import { Config , FileSystemUtils } from '@src' ;
4
+ import { ArrayUtils , Config , FileSystemUtils } from '@src' ;
5
5
6
6
const fetch = require ( 'node-fetch' ) ;
7
7
@@ -39,7 +39,7 @@ export class PackageJsonToMarkdown {
39
39
let devDependenciesMarkdown = '' ;
40
40
let peerDependenciesMarkdown = '' ;
41
41
const dependenciesRequests : Promise < { name : string , description : string } > [ ] = [ ] ;
42
- dependencies . sort ( ) . forEach ( pckName => {
42
+ dependencies . sort ( ArrayUtils . sortStrings ) . forEach ( pckName => {
43
43
dependenciesRequests . push ( this . makeRequest ( pckName ) ) ;
44
44
} ) ;
45
45
Promise . all ( dependenciesRequests ) . then ( responses => {
@@ -50,7 +50,7 @@ export class PackageJsonToMarkdown {
50
50
} ) ;
51
51
} ) . then ( ( ) => {
52
52
const devDependenciesRequests : Promise < { name : string , description : string } > [ ] = [ ] ;
53
- devDependencies . sort ( ) . forEach ( pckName => {
53
+ devDependencies . sort ( ArrayUtils . sortStrings ) . forEach ( pckName => {
54
54
devDependenciesRequests . push ( this . makeRequest ( pckName ) ) ;
55
55
} ) ;
56
56
Promise . all ( devDependenciesRequests ) . then ( responses => {
@@ -61,7 +61,7 @@ export class PackageJsonToMarkdown {
61
61
} ) ;
62
62
} ) . then ( ( ) => {
63
63
const peerDependenciesRequests : Promise < { name : string , description : string } > [ ] = [ ] ;
64
- peerDependencies . sort ( ) . forEach ( pckName => {
64
+ peerDependencies . sort ( ArrayUtils . sortStrings ) . forEach ( pckName => {
65
65
peerDependenciesRequests . push ( this . makeRequest ( pckName ) ) ;
66
66
} ) ;
67
67
Promise . all ( peerDependenciesRequests ) . then ( responses => {
0 commit comments