Skip to content

Commit 031c0c9

Browse files
Merge pull request #50 from wimpyprogrammer/feature/publish-with-release-it
Use `release-it` to publish to npm
2 parents fb99a8d + 89648fc commit 031c0c9

File tree

3 files changed

+17
-18
lines changed

3 files changed

+17
-18
lines changed

.publishrc

Lines changed: 0 additions & 15 deletions
This file was deleted.

.release-it.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"hooks": {
3+
"before:init": ["npm run lint", "npm test"],
4+
"after:bump": "npm run build"
5+
},
6+
"git": {
7+
"changelog": false,
8+
"commit": false,
9+
"requireBranch": "main",
10+
"requireCommits": true,
11+
"tagName": "${version}"
12+
}
13+
}

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
"description": "Condense a set of words into a regular expression pattern",
99
"author": "Drew Keller <drew@wimpyprogrammer.com>",
1010
"license": "MIT",
11+
"publishConfig": {
12+
"registry": "https://registry.npmjs.org/"
13+
},
1114
"main": "lib/index.js",
1215
"types": "./lib/index.d.ts",
1316
"files": [
@@ -27,9 +30,7 @@
2730
"lint": "run-s lint:*",
2831
"lint:src": "tsc -p ./tsconfig.json && eslint ./src --report-unused-disable-directives --ext .js,.ts --parser-options=project:./tsconfig.json",
2932
"lint:demo": "tsc -p ./demo/tsconfig.json && eslint ./demo --report-unused-disable-directives --ext .js,.ts --parser-options=project:./demo/tsconfig.json",
30-
"prepublish": "npx publish-please guard",
31-
"publish-please": "npx publish-please",
32-
"publish-please-prereqs": "run-s lint test build",
33+
"release": "npx release-it",
3334
"test": "jest --coverage"
3435
},
3536
"jest": {

0 commit comments

Comments
 (0)