Local modules like this should work properly.. so long as you don't have it in .gitignore
or .npmignore
.
Modules in the node_modules
directory require that you add it to the bundledDependencies
array in your package.json
file.
An easy way to check for whether the file is included in your deploy is to run tar -tf $(npm pack)
.