[next] use `tsconfig.build.json` for production build (#76373)
### Why?
The types of unit tests and stories were included in the package.
Exclude them by using `tsconfig.declaration.json` when `pnpm run types`
during production build.
| Before | After |
|--------|--------|
| 
| 
|
Closes NDX-747
---------
Co-authored-by: Sebastian Sebbie Silbermann <sebastian.silbermann@vercel.com>