find . -maxdepth 1 \
-not -path . \
-not -path './.*' \
-not -path './test' \
-not -path './yarn*' \
-not -path './package.json' \
-not -path './output' \
-not -path '*.md' \
-exec tar czf output/archive.tgz --exclude='**/example-input/*' {} +
find: -exec command {} +
is explained into man page of find command