mirror of
https://github.com/google/blockly.git
synced 2026-05-09 05:30:11 +02:00
chore(build): Suppress spurious warnings from closure-make-deps (#6253)
A little bit of an ugly hack, but it works: pipe stderr through grep -v to suppress error output starting with "WARNING in".
This commit is contained in:
committed by
GitHub
parent
9eeb4fea0b
commit
e36a10327f
@@ -324,13 +324,20 @@ function buildDeps(done) {
|
||||
];
|
||||
|
||||
const args = roots.map(root => `--root '${root}' `).join('');
|
||||
execSync(`closure-make-deps ${args} > '${DEPS_FILE}'`,
|
||||
{stdio: 'inherit'});
|
||||
execSync(
|
||||
`set -o pipefail; \
|
||||
(closure-make-deps ${args} >'${DEPS_FILE}') 2>&1 \
|
||||
| (grep -v '^WARNING in' ; true)`,
|
||||
{stdio: 'inherit'});
|
||||
|
||||
// Use grep to filter out the entries that are already in deps.js.
|
||||
const testArgs = testRoots.map(root => `--root '${root}' `).join('');
|
||||
execSync(`closure-make-deps ${testArgs} | grep 'tests/mocha' ` +
|
||||
`> '${TEST_DEPS_FILE}'`, {stdio: 'inherit'});
|
||||
execSync(
|
||||
`set -o pipefail; \
|
||||
(closure-make-deps ${testArgs} | grep 'tests/mocha' \
|
||||
> '${TEST_DEPS_FILE}') 2>&1 \
|
||||
| (grep -v '^WARNING in' ; true)`,
|
||||
{stdio: 'inherit'});
|
||||
done();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user