Alex W.'s Blog

TypeScript, Lerna, and .dockerignore

This approach ignores everything by default and then whitelists what’s permitted. Or at least it takes that approach for the top-level directory but has to explicitly restrict nested directories because exception statements don’t support wildcard directories.


# Can't do the following because exception statements don't support wildcard directories (and see other related issues at
# !packages/*/src
# !packages/*/tsconfig.json
# !packages/*/package.json

# Consider using an approach with a manual `tar` step like