question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Question] Why add *.js and *.d.ts files to source control?

See original GitHub issue

Is 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
weecocommented, May 9, 2018

I assume it’s because this allows you you to directly use this repository as npm package.

0reactions
lock[bot]commented, Sep 24, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found