Last active
November 15, 2022 16:19
-
-
Save sergejbog/e309a080885ae10755ad3771bb3668f5 to your computer and use it in GitHub Desktop.
Intro commands for typescript #typescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm i typescript ts-node | |
npx tsc --init --rootdir src --outdir lib | |
# either do this or do the package.json commands | |
npx tsc --watch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"start": "ts-node src/index.ts" | |
} | |
} | |
// to run it: npm start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment