Simplify libraries/publications pattern.
Resolve transitively ONLY for "dist".