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

fix: exclude build products under template from packaging #278

Merged
merged 1 commit into from
Sep 3, 2018

Conversation

bazzargh
Copy link
Contributor

@bazzargh bazzargh commented Sep 3, 2018

.gitignore was ignoring some items under template that still appeared in the packaged releases,
because template was explicitly included in package.json, and that overrides those ignores.

Both the 2.0.0-rc1 and 2.0.0-rc2 releases included stray build products.

Adding explicit exclusions for the build products under template to package.json prevents
packaging errors.

I've added template/elm-stuff and template/index.html to .gitignore too, because those
are created if elm make src/Main.elm is run in template, which seems to have been the cause.

verified the changes by using rm *.tgz; (cd template; elm make src/Main.elm); npm pack, and inspecting the list of files packed.

re #275

`.gitignore` was ignoring some items under template that still appeared in the packaged releases,
because `template` was explicitly included in package.json, and that overrides those ignores.

Adding explicit exclusions for the build products under `template` to `package.json` prevents
packaging errors.

I've added `template/elm-stuff` and `template/index.html` to `.gitignore` too, because those
are created if `elm make src/Main.elm` is run in `template`, which seems to have been the cause.

re halfzebra#275
@halfzebra
Copy link
Owner

Good catch! I have completely forgotten about this 👍

@halfzebra halfzebra merged commit 5434092 into halfzebra:master Sep 3, 2018
@bazzargh bazzargh deleted the pack-bug branch September 3, 2018 13:00
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

Successfully merging this pull request may close these issues.

2 participants