Skip to content

Conversation

ecraig12345
Copy link

Support passing regular expressions for inlinedLibraries, importedLibraries, and allowedTypesLibraries. This is to support scenarios like easily inlining all packages from the current repo's scope or certain dependency scopes: e.g. inlinedLibraries: [/^@scope\//].

While updating the config schema validation, I noticed that the SchemaDescriptor type was not properly validating types of sub-properties that weren't objects or arrays. So I updated it to use a series of conditional checks to handle all the expected values, and added error messages for a couple of cases that were previously missing.

I also fixed some type errors unrelated to my change which appear to be caused by typescript updates: certain APIs now return ts.ModuleExportName (ts.Identifier | ts.StringLiteral) instead of ts.Identifier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant