[fixed] how to exclude files

Review the whole example, in serverless packaging

  - tmp/**
  - .git/**

I can’t find any examples to exclude files. I write below codes:

    - test/**
    - *.yml

Got this error

unidentified alias ".yml" in "~/serverless.yml" at line 10, column 12:
    - *.yml

How to fix it?

It’s the regular expression format that it doesn’t like… * means zero or more of whatever character comes before it.
You can fix that by changing:
- *.yml
- .*.yml

Meaning 0 or more(*) of any character(.) followed by .yml

Hope it helps.

1 Like

Thanks, @bfieber . That fixes my issue.

1 Like