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.

The repo should not include `./dist` directory

See original GitHub issue

While hacking into the code (npm run dev), every time the project is built, the ./dist files are generated. almost (not every) every master commit includes the ./dist/ files, and with every git pull I get conflicts in dist/. Some are because the master commits include functionality in src that have not been built and my local builds them

So I’m forced to cherry-pick my functionality without dist into a rebased clean master every time i need to pull. It’s a pain.

Also, i see PR from collaborators with dist folders that probably will cause huge conflicts when not fully rebased, and owners including dist folder with their PRs

If the dist is excluded and only generated when publishing (to npm, docker, whatever), dev history maybe is easier

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
shockeycommented, May 26, 2017

Github releases can be created programmatically, so it’d be possible to add creating a zip and attaching that zip to the Github release to our build process.

0reactions
shockeycommented, Feb 8, 2018

Closing this, as we’ve since discontinued the modification of /dist/ outside of releases.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the meaning of the /dist directory in open source ...
To answer your question: /dist means "distributable", the compiled code/library. Folder structure varies by build system and programming ...
Read more >
Unable to add library to repo because the `/dist` directory is ...
Problem I'm using this project in a Rails app that I've wired up to use Bower to manage dependencies and am deploying to...
Read more >
Do I include my dist folder when I upload to my github repo?
Depends on the project. If it's a tool-like thing you'd include dist which would be intended to be the final product to use...
Read more >
Why is the dist folder gitignored if it's required for the site to ...
The dist folder is .gitignore 'd in Sage because assets created by the build should not be included in your Git repository.
Read more >
How to make your own npm package with typescript
Every package likely does it a bit differently, and it can be tricky to get a ... and output the compiled files to...
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