E3FA Need to remove files from dist, unable to update `context.distFiles` · Issue #457 · ember-cli-deploy/ember-cli-deploy · GitHub
[go: up one dir, main page]

Skip to content

Need to remove files from dist, unable to update context.distFiles #457

@lolmaus

Description

@lolmaus

Current logic always appends to arrays in the context, making it impossible to remove entries from context.distFiles:

if (_.isArray(a)) {
return a.concat(b);
}

I've managed to monkey patch it like this and it worked:
https://github.com/lolmaus/lolma.us/blob/b7c1163dccab5d21c4bc4245b0483da5f698fa4a/lib/ember-cli-deploy-manipulate/index.js#L13-L20

I can try adding a test case and filing a pull request. Need confirmation, recommendations welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0