Skip to content

Commit 874056f

Browse files
author
devgioele
committed
use new checks script where relevant and improve publishing and versioning
1 parent 3d14c6d commit 874056f

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

.githooks/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
set -e
44
set -o pipefail
55

6-
npm run lint
7-
npm run typecheck
6+
npm run checks

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,4 @@ jobs:
1010
node-version: '16.x'
1111
registry-url: 'https://registry.npmjs.org'
1212
- run: npm install
13-
- run: npm run lint
14-
- run: npm run typecheck
15-
- run: npm run test
13+
- run: npm run checks

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@
3232
"test:watch": "vitest watch --passWithNoTests",
3333
"typecheck": "tsc --noEmit",
3434
"checks": "npm run test && npm run lint && npm run typecheck",
35+
"prepublishOnly": "npm run checks",
3536
"prepare": "npm run build",
36-
"prepublishOnly": "npm run test && npm run lint",
37-
"version": "npm run test && npm run lint && git add -A src",
37+
"preversion": "npm run checks",
38+
"version": "git add -A src",
3839
"postversion": "git push && git push --tags"
3940
},
4041
"repository": {

0 commit comments

Comments
 (0)