-
Notifications
You must be signed in to change notification settings - Fork 33
More external packages #790
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
js/src/cli.ts
Outdated
"@braintrust/", | ||
"config", | ||
"lightningcss", | ||
"@mapbox/node-pre-gyp", | ||
...additionalPackages, | ||
]; | ||
const knownPackagesFilter = new RegExp( | ||
`^(${knownPackages.map((pkg) => pkg.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't test but perhaps this so that you don't catch all package names that happen to have these prefixes
"@braintrust/", | |
"config", | |
"lightningcss", | |
"@mapbox/node-pre-gyp", | |
...additionalPackages, | |
]; | |
const knownPackagesFilter = new RegExp( | |
`^(${knownPackages.map((pkg) => pkg.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})`, | |
"@braintrust", | |
"config", | |
"lightningcss", | |
"@mapbox/node-pre-gyp", | |
...additionalPackages, | |
]; | |
const knownPackagesFilter = new RegExp( | |
`^(${knownPackages.map((pkg) => pkg.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})(?:/|$)`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a more invasive change here: https://github.com/braintrustdata/braintrust-sdk/pull/790/files#diff-4f2328e013899dee49744473623d1e46ecec44c3acdf5e10bf908edd59c04413R24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking a look!
@mapbox/node-pre-gyp
as a known binary package (to make external)