Skip to content

Commit 9cd8433

Browse files
committed
chore: update semantic release config
1 parent 1a2b625 commit 9cd8433

File tree

1 file changed

+83
-1
lines changed

1 file changed

+83
-1
lines changed

package.json

Lines changed: 83 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,24 @@
33
"version": "9.0.0",
44
"description": "JavaScript implementation of the bitswap data exchange protocol used by IPFS",
55
"main": "src/index.js",
6-
"types": "types/src/index.d.ts",
76
"type": "module",
7+
"types": "types/src/index.d.ts",
8+
"typesVersions": {
9+
"*": {
10+
"*": [
11+
"types/*",
12+
"types/src/*"
13+
],
14+
"types/*": [
15+
"types/*",
16+
"types/*"
17+
]
18+
}
19+
},
820
"files": [
921
"*",
22+
"!**/*/browser-test",
23+
"!**/*/node-test",
1024
"!**/*.tsbuildinfo"
1125
],
1226
"exports": {
@@ -25,6 +39,74 @@
2539
"*.test-d.ts"
2640
]
2741
},
42+
"release": {
43+
"branches": [
44+
"master"
45+
],
46+
"plugins": [
47+
[
48+
"@semantic-release/commit-analyzer", {
49+
"preset": "conventionalcommits",
50+
"releaseRules": [{
51+
"breaking": true,
52+
"release": "major"
53+
}, {
54+
"revert": true,
55+
"release": "patch"
56+
}, {
57+
"type": "feat",
58+
"release": "minor"
59+
}, {
60+
"type": "fix",
61+
"release": "patch"
62+
}, {
63+
"type": "chore",
64+
"release": "patch"
65+
}, {
66+
"type": "docs",
67+
"release": "patch"
68+
}, {
69+
"type": "test",
70+
"release": "patch"
71+
}, {
72+
"scope": "no-release",
73+
"release": false
74+
}]
75+
}
76+
],
77+
[
78+
"@semantic-release/release-notes-generator", {
79+
"preset": "conventionalcommits",
80+
"presetConfig": {
81+
"types": [{
82+
"type": "feat",
83+
"section": "Features"
84+
}, {
85+
"type": "fix",
86+
"section": "Bug Fixes"
87+
}, {
88+
"type": "chore",
89+
"section": "Trivial Changes"
90+
}, {
91+
"type": "docs",
92+
"section": "Trivial Changes"
93+
}, {
94+
"type": "test",
95+
"section": "Tests"
96+
}]
97+
}
98+
}
99+
],
100+
"@semantic-release/changelog",
101+
[
102+
"@semantic-release/npm", {
103+
"pkgRoot": "dist"
104+
}
105+
],
106+
"@semantic-release/github",
107+
"@semantic-release/git"
108+
]
109+
},
28110
"scripts": {
29111
"lint": "aegir lint",
30112
"dep-check": "aegir dep-check",

0 commit comments

Comments
 (0)