Building the foundation

Using `tsc` to build the foundation package