forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
javascript: Add an explicit
npm_distribution
target instead of coup…
…ling to `node_package` (pantsbuild#18925) The coupling of `node_package` (generated from the `package_json` target) with the `package` goal caused some unwanted side effects when trying to integrate with other backends, `docker` to be exact. Because of the way the dependency graph is constructed between in-repo nodejs packages, this caused package:able targets to always be included. See this bit of code: https://github.com/pantsbuild/pants/blob/f95ed94d13a8531a7fdab8318d9f597b08d04371/src/python/pants/backend/docker/util_rules/docker_build_context.py#L280 The transitive dependencies of the `docker_image` currently causes packaging of workspace packages, even though you probably do not want to include the resulting tarballs at all. Even worse, some package manager + workspace combinations are flat out broken, see pnpm/pnpm#4351. This solution "moves" the package:able target out of the dependency graph by placing it as standalone thing, outside of the automagically constructed dependencies. Fixes pantsbuild#18922 This PR does not provide a work-around for the linked PNPM issue.
- Loading branch information
Showing
5 changed files
with
64 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters