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 bd9da268c1
commit 1b6fb5bc19

View File

@ -393,7 +393,7 @@ NG_PACKAGE_ATTRS = dict(NPM_PACKAGE_ATTRS, **dict(ROLLUP_ATTRS, **{
allow_files = True, allow_files = True,
), ),
"include_devmode_srcs": attr.bool(default = False), "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 = {}), "globals": attr.string_dict(default = {}),
"entry_point_name": attr.string( "entry_point_name": attr.string(
doc = "Name to use when generating bundle files for the primary entry-point.", doc = "Name to use when generating bundle files for the primary entry-point.",