Fix windows fast-glob usage in lint-deps test task
* Introduce normalize-path wherever we use fastGlob * CI: Update yarn version; install yarn via npm on windows * Add more logging to Grunt file spectron usage * Lock core.js to what it was resolving to before: 2.4.1 * test/index.html: Remove nonexistent test file * test/index.html: Remove missing registration.js * preload.js: Introduce client-side logging for load failures * Gruntfile: Introduce better debuggability if prod test fails * Reintroduce glob for searches inside asar
This commit is contained in:
parent
455c7449e3
commit
1726e1b77a
11 changed files with 497 additions and 440 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
import { readFileSync } from 'fs';
|
||||
import { join, relative } from 'path';
|
||||
import normalizePath from 'normalize-path';
|
||||
|
||||
import { sync as fgSync } from 'fast-glob';
|
||||
import { forEach, some, values } from 'lodash';
|
||||
|
@ -36,7 +37,7 @@ const rulesPath = join(__dirname, 'rules.json');
|
|||
const exceptionsPath = join(__dirname, 'exceptions.json');
|
||||
const basePath = join(__dirname, '../../..');
|
||||
|
||||
const searchPattern = join(basePath, '**/*.{js,ts,tsx}');
|
||||
const searchPattern = normalizePath(join(basePath, '**/*.{js,ts,tsx}'));
|
||||
|
||||
const rules: Array<RuleType> = loadJSON(rulesPath);
|
||||
const exceptions: Array<ExceptionType> = loadJSON(exceptionsPath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue