Skip to content

Commit 5b656e7

Browse files
authored
Merge pull request #148 from nrabinowitz/fail-publish
Fix: Fail pre-publish script if there are uncommitted changes
2 parents 5adbab6 + 7ad8d16 commit 5b656e7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
All notable changes to this project will be documented in this file. This library adheres to a versioning policy described in [the README](./README.md#versioning). The public API of this library consists of the functions exported in [h3core.js](./lib/h3core.js).
44

55
## [Unreleased]
6+
### Fixed
7+
- Fail package publish if there are library changes
68

7-
## [4.0.0-rc2] - 2022-08-10
9+
## [4.0.0-rc2] - 2022-08-11
810
### Added
911
- Added legacy API wrapper with Typescript types (#146)
1012

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"cover-view": "yarn rollup-test && nyc --clean --reporter=html node dist/test.js && open coverage/index.html",
6363
"benchmark-node": "yarn rollup-benchmark-node && node dist/benchmark.node.js",
6464
"benchmark-browser": "yarn rollup-benchmark-browser && budo dist/benchmark.browser.js --open --title 'h3-js benchmarks'",
65-
"prepublishOnly": "yarn dist",
65+
"prepublishOnly": "yarn dist && git diff --exit-code",
6666
"prettier": "prettier --write --config .prettierrc 'lib/**/*.js' 'build/**/*.js' 'test/**/*.js'"
6767
},
6868
"browser": {

0 commit comments

Comments
 (0)