File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 59
59
"remark-reference-links" : " ^4.0.1" ,
60
60
"remark-toc" : " ^5.0.0" ,
61
61
"remote-origin-url" : " 0.4.0" ,
62
+ "resolve" : " ^1.8.1" ,
62
63
"stream-array" : " ^1.1.2" ,
63
64
"strip-json-comments" : " ^2.0.1" ,
64
65
"tiny-lr" : " ^1.1.0" ,
123
124
"doc" : " node ./bin/documentation.js build src/index.js -f md --access=public > docs/NODE_API.md" ,
124
125
"self-lint" : " node ./bin/documentation.js lint src" ,
125
126
"test" : " npm run build && eslint . && flow check && jest" ,
127
+ "test2" : " npm run build && flow check && jest" ,
126
128
"test-ci" : " npm run build && eslint . && flow check && jest --runInBand"
127
129
},
128
130
"jest" : {
Original file line number Diff line number Diff line change @@ -70,7 +70,12 @@ function dependencyStream(
70
70
]
71
71
} )
72
72
] ,
73
- postFilter : moduleFilters . externals ( indexes , config )
73
+ postFilter : moduleFilters . externals ( indexes , config ) ,
74
+ resolve : ( id , opts , cb ) => {
75
+ const r = require ( 'resolve' ) ;
76
+ opts . basedir = path . dirname ( opts . filename ) ;
77
+ r ( id , opts , cb ) ;
78
+ }
74
79
} ) ;
75
80
smartGlob ( indexes , config . parseExtension ) . forEach ( index => {
76
81
md . write ( path . resolve ( index ) ) ;
You can’t perform that action at this time.
0 commit comments