Skip to content

Don't remove excluded modules from the node modules directory #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martinbooth
Copy link

I have a solution to this problem I was facing: #17

Any module excluded from browserify's bundle is not deleted by the cleapup step.

@andeerssoni
Copy link

This commit would be nice to have in master and also why the cleanup deletes all .json files? We have some schema files that needs to be blank files instead of .json because this cleanup deletes them..

@Titozzz
Copy link

Titozzz commented May 26, 2016

I agree, that stuff would be cool :)

_cleanup(pathDist) {
let ignore = '**/_serverless_handler.js';
_cleanup(func, pathDist) {
let exclude = _.get(func, 'custom.runtime').exclude || [],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it breaks if custom/runtime is not defined in s-function.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants