Skip to content

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

Merged
merged 5 commits into from
Jul 15, 2025
Merged

More external packages #790

merged 5 commits into from
Jul 15, 2025

Conversation

ankrgyl
Copy link
Contributor

@ankrgyl ankrgyl commented Jul 14, 2025

  • Explicitly mark @mapbox/node-pre-gyp as a known binary package (to make external)
  • Allow users to specify additional packages via CLI

js/src/cli.ts Outdated
Comment on lines 726 to 733
"@braintrust/",
"config",
"lightningcss",
"@mapbox/node-pre-gyp",
...additionalPackages,
];
const knownPackagesFilter = new RegExp(
`^(${knownPackages.map((pkg) => pkg.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("|")})`,

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

Suggested change
"@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("|")})(?:/|$)`,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

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!

@ankrgyl ankrgyl merged commit d80b52a into main Jul 15, 2025
18 checks passed
@ankrgyl ankrgyl deleted the more-external-packages branch July 15, 2025 04:00
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.

4 participants