Skip to content

Commit e902d82

Browse files
committed
Update NPM versioning scripts
Ensure package is tested, then built and staged, then versioned and committed. Afterwards, manually update the 'CHANGELOG.md', amend the version commit, then push changes and tag.
1 parent e88a4cd commit e902d82

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Changelog

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@
8181
"build:dts": "make build-dts",
8282
"clean": "make clean",
8383
"lint": "tsc --noEmit; eslint 'src/**/*.ts' 'tests/**/*.js' 'examples/**/*.js'",
84-
"preversion": "npm run build",
85-
"postversion": "git push --follow-tags",
8684
"test": "uvu tests",
87-
"test:coverage": "c8 --per-file npm test"
85+
"test:coverage": "c8 --per-file npm test",
86+
"preversion": "npm test",
87+
"version": "npm run build && git add -A dist"
8888
},
8989
"engines": {
9090
"node": ">=14"

0 commit comments

Comments
 (0)