File tree Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Expand file tree Collapse file tree 2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,19 @@ while (args.length) {
103
103
104
104
}
105
105
106
+ if ( ! input . length ) {
107
+
108
+ input = process . cwd ( ) ;
109
+
110
+ }
111
+
106
112
if ( pkg ) {
107
113
108
- pkg = utils . findPackagePath ( pkg ) ;
114
+ pkg = utils . findPackageFileInPath ( pkg ) ;
109
115
110
116
} else {
111
117
112
- pkg = utils . findPackagePath ( input ) ;
118
+ pkg = utils . findPackageFileInPath ( input ) ;
113
119
114
120
}
115
121
@@ -137,12 +143,6 @@ if (!config.title) {
137
143
138
144
}
139
145
140
- if ( ! input . length ) {
141
-
142
- input = process . cwd ( ) ;
143
-
144
- }
145
-
146
146
doxdox . parseInput ( input , config , pkg ) . then ( function ( content ) {
147
147
148
148
if ( output ) {
Original file line number Diff line number Diff line change @@ -127,11 +127,17 @@ module.exports.buildWiki = function (input) {
127
127
128
128
} ;
129
129
130
- module . exports . findPackagePath = function ( input ) {
130
+ module . exports . findPackageFileInPath = function ( input ) {
131
131
132
132
var pkg ,
133
133
stat ;
134
134
135
+ if ( ! input ) {
136
+
137
+ input = process . cwd ( ) ;
138
+
139
+ }
140
+
135
141
if ( fs . existsSync ( input ) ) {
136
142
137
143
stat = fs . statSync ( input ) ;
You can’t perform that action at this time.
0 commit comments