-
Notifications
You must be signed in to change notification settings - Fork 0
Chapter 3 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: initial
Are you sure you want to change the base?
Conversation
|
||
There aren't any red lines in the TypeScript file, so why is this happening? | ||
|
||
### Runtimes Can't Run TypeScript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess, I'd expect mention of Deno (and maybe Bun) here to show that some can't run TypeScript. YMMV as maybe you don't want to go into too much details depending on the target audience
|
||
Open a terminal, and navigate to the parent directory of `example.ts` and `index.html`. | ||
|
||
To double check that you have TypeScript installed properly, run `tsc --version` in your terminal. If you see a version number, you're good to go. Otherwise, install TypeScript globally with PNPM by running: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it might simplify ur examples and stuff... but installing globally? 😢
|
||
### A Note on Version Control | ||
|
||
We've successfully transpiled our TypeScript code to JavaScript, but we've also added a new file to our project. Adding a `.gitignore` file to the root of the project and including `*.js` will prevent the JavaScript files from being added to version control. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is true and all but wouldn't it be more useful to go straight with rootDir+outDir combination here?
No description provided.