Skip to content

Ignore negations not implemented #9

@kf6kjg

Description

@kf6kjg

In the code the negations are skipped. This misses a critical feature in an ignore file: how to ignore all except some.

Use case: I want to drop everything in the locutus module except the datetime files I'm interested in:

node_modules/locutus/**
!node_modules/locutus/php/datetime/**/*.js

Since the current code skips all negated patterns I wind up not having anything in the locutus folder.

The following works in the serverless.yaml file, per the documentation:

package:
  patterns:
    - "!node_modules/locutus/**"
    - "node_modules/locutus/php/datetime/**/*.js"

Thus there's a workaround: handle most ignores in the .slsignore file, but anything you need negations for use the serverless.yaml file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions