We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7931b8a commit acec273Copy full SHA for acec273
src/util.ts
@@ -79,7 +79,7 @@ export function isExternalReference(ref: string): boolean {
79
* @private
80
*/
81
export const resolve = async (files: string | string[], options: any) => {
82
- const parsedJsons: AsyncAPIObject[] = [];
+ const parsedJsons: any = [];
83
84
for (const file of files) {
85
const prevDir = process.cwd();
@@ -92,7 +92,7 @@ export const resolve = async (files: string | string[], options: any) => {
92
readFile = toJS(readFile);
93
94
if (filePath) {
95
- process.chdir(filePath);
+ process.chdir(path.resolve(prevDir, filePath));
96
}
97
98
readFile = await parse(readFile, getSpecVersion(readFile), options);
0 commit comments