-
Create directory (cannot be named
typescript
) -
Initialize npm. This will create
packages.json
. $ npm init -
Add Typescript dependency to the project (updates
packages.json
). $ npm install typescript -
Initialize Typescript. This will create
tsconfig.json
. $ ./node_modules/.bin/tsc --init -
Updated
tsconfig.json
with source and output directories