package.jsonmanifest for our application to keep track of our dependencies and ensure our project is portable:
npm initand follow the prompts. You can add as much or as little information as you want here. For now, the default options suffice.
npmto install TypeScript as a development dependency:
tscbinary. Create a TypeScript configuration file i called
tsconfig.jsonn the root of the project. Use the template that follows:
outDir. These options describe where our source
.tsfiles and our compiled
.jsfiles, respectively, live within our project. Create the directories referenced by the setting values:
npx tscto compile the project.