refactor(common): Remove deprecated FileType (#28583)

FileType objects are deprecated. They are not required for specifying valid file types for rule attributes, a list of strings can be used instead.

PR Close #28583
This commit is contained in:
Vladimir Moskva 2019-02-07 01:22:30 +01:00 committed by Miško Hevery
parent c3fadadaa9
commit 6f9dd1bf28
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ NG_PACKAGE_ATTRS = dict(NPM_PACKAGE_ATTRS, **dict(ROLLUP_ATTRS, **{
allow_files = True,
),
"include_devmode_srcs": attr.bool(default = False),
"readme_md": attr.label(allow_single_file = FileType([".md"])),
"readme_md": attr.label(allow_single_file = [".md"]),
"globals": attr.string_dict(default = {}),
"entry_point_name": attr.string(
doc = "Name to use when generating bundle files for the primary entry-point.",