In our monorepo, we have some local packages we use in the lambdas. We don't publish these packages to any registry, but reference locally.
Since it is referenced by file:.. , changes to these packages aren't identified by the plugin (no changes to package.json)
Solution
This PR will allow us to calculate hash for these packages code, and once it is changed, the layer will rebuild the node_module with updated code.
I believe this can be useful for more custom use cases.
Our use case:
In our monorepo, we have some local packages we use in the lambdas. We don't publish these packages to any registry, but reference locally. Since it is referenced by
file:..
, changes to these packages aren't identified by the plugin (no changes topackage.json
)Solution
This PR will allow us to calculate hash for these packages code, and once it is changed, the layer will rebuild the node_module with updated code.
I believe this can be useful for more custom use cases.
@agutoli hope you find it useful