1.0.0 • Published 3 years ago

@vm-lib/patch-node-modules v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Patch Node Modules

A simple npx tool to replace certain files in the node_modules folder with patched versions of the same files.

Structure:

node_modules
    -- lib-1
        -- file1
        -- file2

node_modules_patches
    -- lib-1
            -- file1

run npx @vm-lib/patch-node-modules -s /path/to/node_modules_patches -o /path/to/node_modules

This will replace node_modules/lib-1/file1 with node_modules_patches/lib-1/file1

Note1: The folder structure of the file to be replaces needs to be an exact match between the node_modules & node_modules_patches

Note1: Only files in node_modules_patches will be replaced in node_modules. All other files will be left as is.