I have wasted years if not decades of my life rebuilding the starting point for a working typescript repo w all the goodies (ethers, waffles, typescripts, typechain, erc20s etc). Fork this guy instead. Please.
git clone https://github.com/sragss/ts-hh
mv ts-hh <new-name>
cd <new-name>
rm -rf .git
npm i
You may also want to rip out some of the default deps (openzeppelin).
- Compile:
npx hardhat compile
- Test:
npx hardhat test