Skip to content

Commit 1e9d9a8

Browse files
committed
fix: publish the vite build so the package ESM entry resolves
The exports map pointing at dist/index.mjs and dist/index.cjs has been on main since the vite migration, but npm latest is still 2.18.0 and ships the old dual-.js bundle that Node cannot load. Every commit since the v2.18.0 tag used a type outside the default release rules, so semantic-release ran green and published nothing. Declare the plugin list so commit-analyzer can treat build changes and dependency bumps as patch releases. Shipped output and vendored dependencies reach users, so a change to either warrants a version.
1 parent a586f3b commit 1e9d9a8

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,27 @@
7070
"branches": [
7171
"main",
7272
"next"
73+
],
74+
"plugins": [
75+
[
76+
"@semantic-release/commit-analyzer",
77+
{
78+
"releaseRules": [
79+
{
80+
"type": "build",
81+
"release": "patch"
82+
},
83+
{
84+
"type": "chore",
85+
"scope": "deps",
86+
"release": "patch"
87+
}
88+
]
89+
}
90+
],
91+
"@semantic-release/release-notes-generator",
92+
"@semantic-release/npm",
93+
"@semantic-release/github"
7394
]
7495
},
7596
"publishConfig": {

0 commit comments

Comments
 (0)