chore: fix a lint on win (#23554)

This commit is contained in:
Pavel Feldman 2023-06-06 14:50:44 -07:00 committed by GitHub
parent 037da65d83
commit 294f5c965a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ const fs = require('fs');
const ts = require('typescript');
const path = require('path').posix;
const packagesDir = path.normalize(path.join(__dirname, '..', 'packages'));
const packagesDir = path.resolve(path.join(__dirname, '..', 'packages'));
const packages = new Map();
for (const package of fs.readdirSync(packagesDir))
@ -64,7 +64,7 @@ async function innerCheckDeps(root) {
let packageJSON;
try {
packageJSON = require(path.join(root, 'package.json'));
packageJSON = require(path.resolve(path.join(root, 'package.json')));
} catch {
}