Review the whole example, in serverless packaging
exclude: - tmp/** - .git/**
I can’t find any examples to exclude files. I write below codes:
package: exclude: - 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 to - .*.yml
- *.yml
- .*.yml
Meaning 0 or more(*) of any character(.) followed by .yml
Hope it helps.
Thanks, @bfieber . That fixes my issue.