mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-26 15:30:58 +01:00
Don't include requirements of non-providers in celerity map
Summary: Tests and docstubs don't provide anything and they are not required in celerity map. Test Plan: View Options in Differential. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D1893
This commit is contained in:
parent
af260c38cb
commit
0c728bd7a3
1 changed files with 5 additions and 1 deletions
|
@ -191,8 +191,12 @@ foreach ($file_map as $path => $info) {
|
|||
$provides = array_filter($provides);
|
||||
$requires = array_filter($requires);
|
||||
|
||||
if (!$provides) {
|
||||
// Tests and documentation-only JS is permitted to @provide no targets.
|
||||
continue;
|
||||
}
|
||||
|
||||
if (count($provides) > 1) {
|
||||
// NOTE: Documentation-only JS is permitted to @provide no targets.
|
||||
throw new Exception(
|
||||
"File {$path} must @provide at most one Celerity target.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue