Skip to content

support patch in node_modules #392

@jwangyangls

Description

@jwangyangls

This is a usage requirement for open source projects:
My open source project is also used by many people, I expect to use patch-package in the open source project and package the patches file and specify its location, use my open source project in the third party project, but in the third party project When installing dependencies, "postinstall": "patch-package --patch-dir ./patches", my expectation is to modify some dependency files in the project root directory node_modules, and the result of execution at this time is 'it will be open sourced in me The node_module in the project package looks for files', according to the existing method, how can I configure it to achieve the expected, if I can't configure the existing method, can I add parameters, such as "--target-dir ../../../ node_modules"
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions