Skip to content

Commit acec273

Browse files
committed
fix static analysis errors
1 parent 7931b8a commit acec273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export function isExternalReference(ref: string): boolean {
7979
* @private
8080
*/
8181
export const resolve = async (files: string | string[], options: any) => {
82-
const parsedJsons: AsyncAPIObject[] = [];
82+
const parsedJsons: any = [];
8383

8484
for (const file of files) {
8585
const prevDir = process.cwd();
@@ -92,7 +92,7 @@ export const resolve = async (files: string | string[], options: any) => {
9292
readFile = toJS(readFile);
9393

9494
if (filePath) {
95-
process.chdir(filePath);
95+
process.chdir(path.resolve(prevDir, filePath));
9696
}
9797

9898
readFile = await parse(readFile, getSpecVersion(readFile), options);

0 commit comments

Comments
 (0)