Use correct tsconfig.json when generating npm package
#21651
Merged
tsconfig.json when generating npm package
#21651