Skip to content
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

feat: add replace_packages to npm_translate_lock #1481

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Conversation

gregmagolan
Copy link
Member

@gregmagolan gregmagolan commented Feb 19, 2024

Prioritized feature request from an Aspect Workflows customer.

The use case is to be able to replace the npm package sources of an npm package as specified in the pnpm lock file with a custom npm_package target. The motivation for this feature is to allow users to replace non-hermetic lifecycle hooks in npm packages they depend on, such as node-gyp c++ compilation, with hermetic bazel targets. The feature, however, is generic so that it can be used for other use cases where a custom npm_package target to replace the sources specified in the pnpm lock file is useful.


Type of change

  • New feature or functionality (change which adds functionality)

Test plan

  • New test cases added

@gregmagolan gregmagolan changed the title feat: add inject_packages to npm_translate_lock feat: add replace_packages to npm_translate_lock Feb 19, 2024
@gregmagolan gregmagolan force-pushed the inject_packages branch 3 times, most recently from c10ea2e to 5e2fc5a Compare February 19, 2024 00:34
@gregmagolan gregmagolan requested a review from jbedard February 19, 2024 00:34
@gregmagolan gregmagolan marked this pull request as ready for review February 19, 2024 00:34
@gregmagolan
Copy link
Member Author

Internal slack link for reference: https://aspect-build.slack.com/archives/C05S94VJWNM/p1706724889343889

@gregmagolan gregmagolan self-assigned this Feb 19, 2024
@gregmagolan gregmagolan added customer request A request from a customer or potential customer enhancement New feature or request labels Feb 19, 2024
@gregmagolan gregmagolan force-pushed the inject_packages branch 4 times, most recently from e5631d5 to ed84d9a Compare February 19, 2024 01:01
@gregmagolan gregmagolan merged commit 38c573e into main Feb 22, 2024
97 checks passed
@gregmagolan gregmagolan deleted the inject_packages branch February 22, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer request A request from a customer or potential customer enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants