From fc1189c366bf74425a39b1a77301f8233a6302e8 Mon Sep 17 00:00:00 2001 From: Brian Ewins Date: Mon, 3 Sep 2018 02:00:06 +0100 Subject: [PATCH] fix: exclude build products under template from packaging `.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 #275 --- .gitignore | 2 ++ package.json | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a2c002a1..cad72b0d 100644 --- a/.gitignore +++ b/.gitignore @@ -90,6 +90,8 @@ repl-temp-* # create-elm-app template/build +template/elm-stuff +template/index.html template/package.json template/scripts/ template/config/ diff --git a/package.json b/package.json index caaf6be3..79205a45 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,13 @@ "config", "scripts", "template", - "README.md" + "README.md", + "!template/build", + "!template/config/", + "!template/elm-stuff/", + "!template/index.html", + "!template/package.json", + "!template/scripts/" ], "keywords": [ "cli",