fix lint CI check on windows
Reviewed By: lblasa Differential Revision: D49503462 fbshipit-source-id: c047e72edda644d42cf4454a3a8b2023eca8d2ea
This commit is contained in:
committed by
Facebook GitHub Bot
parent
21d86c09af
commit
412b05ad8d
@@ -21,6 +21,7 @@
|
||||
"dotenv": "^14.2.0",
|
||||
"electron-builder": "23.0.3",
|
||||
"express": "^4.17.3",
|
||||
"fast-glob": "3.3.1",
|
||||
"flipper-common": "0.0.0",
|
||||
"flipper-pkg-lib": "0.0.0",
|
||||
"flipper-plugin-lib": "0.0.0",
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import cp from 'child_process';
|
||||
import fs from 'fs-extra';
|
||||
import semver from 'semver';
|
||||
import fg from 'fast-glob';
|
||||
|
||||
/**
|
||||
* Lists all dependencies that DO NOT have to match their type declaration package major versions
|
||||
@@ -107,11 +107,9 @@ async function validatePackageJson(
|
||||
}
|
||||
|
||||
async function main() {
|
||||
const out = cp.execSync(
|
||||
'find . -name "package.json" -not -path "*/node_modules/*"',
|
||||
);
|
||||
|
||||
const packageJsons = out.toString().trim().split('\n');
|
||||
const packageJsons = await fg('**/package.json', {
|
||||
ignore: ['**/node_modules'],
|
||||
});
|
||||
|
||||
const unmatched = await Promise.all(
|
||||
packageJsons.map(validatePackageJson),
|
||||
|
||||
Reference in New Issue
Block a user