chore: fix a lint on win (#23554)
This commit is contained in:
parent
037da65d83
commit
294f5c965a
|
|
@ -22,7 +22,7 @@ const fs = require('fs');
|
||||||
const ts = require('typescript');
|
const ts = require('typescript');
|
||||||
const path = require('path').posix;
|
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();
|
const packages = new Map();
|
||||||
for (const package of fs.readdirSync(packagesDir))
|
for (const package of fs.readdirSync(packagesDir))
|
||||||
|
|
@ -64,7 +64,7 @@ async function innerCheckDeps(root) {
|
||||||
|
|
||||||
let packageJSON;
|
let packageJSON;
|
||||||
try {
|
try {
|
||||||
packageJSON = require(path.join(root, 'package.json'));
|
packageJSON = require(path.resolve(path.join(root, 'package.json')));
|
||||||
} catch {
|
} catch {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue