For TypeScript Configuration use this link
Below command will compile the contract and generates Typescript typings for contracts
npx hardhat compile
Below command will run TypeScript compiler and convert all TypeScript files to JS and placed them in dist folder
tsc
Below command will deploy contracts on hardhat network
npx hardhat run dist/scripts/sample-script.js
Try running some of the following tasks:
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help