@@ -86,7 +86,7 @@ const main = async function () {
86
86
const tree = await arborist . loadVirtual ( { path : CWD , name : 'npm' } )
87
87
tree . name = 'npm'
88
88
89
- const [ annotationsOurs , heirarchyOurs ] = walk ( tree , true )
89
+ const [ annotationsOurs , hierarchyOurs ] = walk ( tree , true )
90
90
const [ annotationsAll ] = walk ( tree , false )
91
91
92
92
const out = [
@@ -104,13 +104,13 @@ const main = async function () {
104
104
...annotationsAll . sort ( ) ,
105
105
'```' ,
106
106
'' ,
107
- '## npm dependency heirarchy ' ,
107
+ '## npm dependency hierarchy ' ,
108
108
'' ,
109
109
'These are the groups of dependencies in npm that depend on each other.' ,
110
110
'Each group depends on packages lower down the chain, nothing depends on' ,
111
111
'packages higher up the chain.' ,
112
112
'' ,
113
- ` - ${ heirarchyOurs . reverse ( ) . join ( '\n - ' ) } ` ,
113
+ ` - ${ hierarchyOurs . reverse ( ) . join ( '\n - ' ) } ` ,
114
114
]
115
115
116
116
return fs . writeFile ( join ( CWD , 'DEPENDENCIES.md' ) , out . join ( '\n' ) )
@@ -124,7 +124,7 @@ const walk = function (tree, onlyOurs) {
124
124
125
125
const allDeps = new Set ( Object . keys ( dependedBy ) )
126
126
const foundDeps = new Set ( )
127
- const heirarchy = [ ]
127
+ const hierarchy = [ ]
128
128
129
129
if ( onlyOurs ) {
130
130
while ( allDeps . size ) {
@@ -158,13 +158,13 @@ const walk = function (tree, onlyOurs) {
158
158
throw new Error ( `Would do an infinite loop here, need to debug. ${ remaining } ` )
159
159
}
160
160
161
- heirarchy . push ( level . join ( ', ' ) )
162
- log . silly ( 'HIEARARCHY ' , heirarchy . length )
161
+ hierarchy . push ( level . join ( ', ' ) )
162
+ log . silly ( 'HIERARCHY ' , hierarchy . length )
163
163
log . silly ( '=' . repeat ( 80 ) )
164
164
}
165
165
}
166
166
167
- return [ annotations , heirarchy ]
167
+ return [ annotations , hierarchy ]
168
168
}
169
169
170
170
const iterate = function ( node , dependedBy , annotations , onlyOurs ) {
0 commit comments