My project is structure such as
root
.gitignore
-src
- config.ts
-dist
- config.js
I have a .gitignore
file like this (I am showing just the first 2 lines)
config.ts
config.js
What I see is that config.ts
(present the src folder) is actually ignored and not saved on git while config.js
(present in the dist folder) is NOT ignored ans is actually saved on git.
Any suggestion on what I am doing wrong?