build: use third_party DEPOT_TOOLS when running lint scripts (#34846)
Some folks (especially build_tools users) do not have a version of depot_tools on their path
This commit is contained in:
parent
2eb0e5dcab
commit
fa8e4a7610
1 changed files with 5 additions and 0 deletions
|
@ -15,6 +15,11 @@ const ELECTRON_ROOT = path.normalize(path.dirname(__dirname));
|
|||
const SOURCE_ROOT = path.resolve(ELECTRON_ROOT, '..');
|
||||
const DEPOT_TOOLS = path.resolve(SOURCE_ROOT, 'third_party', 'depot_tools');
|
||||
|
||||
// Augment the PATH for this script so that we can find executables
|
||||
// in the depot_tools folder even if folks do not have an instance of
|
||||
// DEPOT_TOOLS in their path already
|
||||
process.env.PATH = `${process.env.PATH}${path.delimiter}${DEPOT_TOOLS}`;
|
||||
|
||||
const IGNORELIST = new Set([
|
||||
['shell', 'browser', 'resources', 'win', 'resource.h'],
|
||||
['shell', 'common', 'node_includes.h'],
|
||||
|
|
Loading…
Reference in a new issue