Skip to content
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

Respect gitignore when publishing #169

Open
Haroenv opened this issue Jan 16, 2023 · 0 comments
Open

Respect gitignore when publishing #169

Haroenv opened this issue Jan 16, 2023 · 0 comments

Comments

@Haroenv
Copy link

Haroenv commented Jan 16, 2023

I often publish a local version of an example I have so that I can revert the changes, but there's some files commonly ignored that I need to remove from the final sandbox, or even prevent the publish if I don't remove them first. A couple examples are:

  • dist
  • .next

I could see even .env, which would be even more problematic.

When gathering the files to publish, it should first check git to list any files that are ignored in the current repo and not publish those.

I'm happy to do a PR if it's clear where to add these checks + will be approved.

Thanks!

similar issue: #67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant