Skip to content

Commit dcb4091

Browse files
committed
fix(makefile): fix newline at end of package.json on publish
1 parent 0656b14 commit dcb4091

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ define release
7979
var j = require(fileName);\
8080
j.version = \"$$NEXT_VERSION\";\
8181
var s = JSON.stringify(j, null, 2);\
82-
require('fs').writeFileSync(fileName, s);\
82+
require('fs').writeFileSync(fileName, s + '\\n');\
8383
});" && \
8484
git add package.json CHANGELOG.md $(MIN) $(MIN_MAP) && \
85-
git commit -m "release $$NEXT_VERSION" && \
85+
git commit -nm "release $$NEXT_VERSION" && \
8686
git tag "$$NEXT_VERSION" -m "release $$NEXT_VERSION"
8787
npm pack --dry-run
8888
endef

0 commit comments

Comments
 (0)