build public directory on non-plain packages.