[Question] Why add *.js and *.d.ts files to source control?
See original GitHub issueIs there a reason why the *.js and *.d.ts files are added to the source control inside the bundle
-folder?
Build artifacts should usually not be stored inside a repository.
If these files get added to the .gitignore, it would lead to a smaller repository size and cleaner commits.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top Results From Across the Web
How to add TypeScript definition files to source control?
I would like to add the . d. ts files to source control, so that other developers does not have to rely on...
Read more >Documentation - Creating .d.ts Files from .js files - TypeScript
Run the TypeScript compiler to generate the corresponding d.ts files for JS files; (optional) Edit your package.json to reference the types. Adding TypeScript....
Read more >Working with JavaScript in Visual Studio Code
Visual Studio Code's JavaScript IntelliSense provides intelligent code completion, parameter info, references search, and many other advanced language features.
Read more >Better mapping between *.js and *.d.ts files : WEB-47153
I navigate to the index.d.ts file instead of index.js source file. ... the IDE can ask the user to include JavaScript sources in...
Read more >Understanding TypeScript's “Compilation Process” & the ...
These compiler options control how the TypeScript compiler outputs compiled JavaScript files from the source files.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I assume it’s because this allows you you to directly use this repository as npm package.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.