build: pass stripExportPattern as an array of RegExp (#26012)

This is a workaround for https://github.com/bazelbuild/rules_nodejs/issues/317

PR Close #26012
This commit is contained in:
Alan Agius
2018-09-19 13:40:21 +02:00
committed by Alex Rickabaugh
parent 63b795ae4a
commit aac08e0438
3 changed files with 13 additions and 7 deletions

View File

@ -22,7 +22,7 @@ export function startCli() {
const {argv, mode, errors} = parseArguments(process.argv.slice(2));
const options: SerializationOptions = {
stripExportPattern: argv['stripExportPattern'],
stripExportPattern: [].concat(argv['stripExportPattern']),
allowModuleIdentifiers: [].concat(argv['allowModuleIdentifiers']),
};