build: update ts-api-guardian jsdoc tag requirements (#26595)

Now `@experimental` tags are banned; and `@publicApi`
tags are required on exports.

PR Close #26595
This commit is contained in:
Pete Bacon Darwin
2018-10-19 12:31:32 +01:00
committed by Alex Rickabaugh
parent 24521f549c
commit c5949f85ef
8 changed files with 16 additions and 3 deletions

View File

@ -24,9 +24,9 @@ export function startCli() {
const options: SerializationOptions = {
stripExportPattern: [].concat(argv['stripExportPattern']),
allowModuleIdentifiers: [].concat(argv['allowModuleIdentifiers']),
exportTags: {required: [], banned: [], toCopy: ['deprecated', 'experimental']},
memberTags: {required: [], banned: [], toCopy: ['deprecated', 'experimental']},
paramTags: {required: [], banned: [], toCopy: ['deprecated', 'experimental']}
exportTags: {required: ['publicApi'], banned: ['experimental'], toCopy: ['deprecated']},
memberTags: {required: [], banned: ['experimental', 'publicApi'], toCopy: ['deprecated']},
paramTags: {required: [], banned: ['experimental', 'publicApi'], toCopy: ['deprecated']}
};
for (const error of errors) {