Here is my boiler plate TypesScript project using packages and vercel-ncc. https://github.com/Daniel-Leontiev/Type-Script-Project
Here is the sample package https://github.com/Daniel-Leontiev/Type-Script-Project/tree/master/packages/utils
"scripts": {
"build": "ncc build -s --no-source-map-register ./src/main.ts -o ./build/",
"build-w": "ncc build -w -s --no-source-map-register ./src/main.ts -o ./build/",
}