>_ IzzyLab

Topic breakdown

Excluding paths during archiving is specified with the --exclude=PATTERN flag, where the pattern is a glob over the paths inside the archive. Two key nuances determine whether the filter works: --exclude must come before the name of the directory being packed on the command line, and the pattern itself is written relative to the paths inside the archive — when packing with -C they start with the folder name, not with an absolute path. It's always worth double-checking the final contents with the archive listing mode.

What's checked

  1. sources made it into the archive
  2. node_modules excluded from the archive

What it looks like