Skip to content

Commit

Permalink
fix(lint): correctly find api.ts on windows (#5308)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelEinbinder committed Feb 4, 2021
1 parent 3c36322 commit 3126fee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/doclint/missingDocs.js
Expand Up @@ -18,6 +18,7 @@
const ts = require('typescript');
const EventEmitter = require('events');
const Documentation = require('./documentation');
const path = require('path');

/** @typedef {import('../../markdown').MarkdownNode} MarkdownNode */

Expand Down Expand Up @@ -92,8 +93,7 @@ function listMethods(rootNames, apiFileName) {
const checker = program.getTypeChecker();
const apiClassNames = new Set();
const apiMethods = new Map();
const apiSource = program.getSourceFiles().find(f => f.fileName === apiFileName);

const apiSource = program.getSourceFiles().find(f => f.fileName === apiFileName.split(path.sep).join(path.posix.sep));
/**
* @param {ts.Type} type
*/
Expand Down

0 comments on commit 3126fee

Please sign in to comment.