File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -91,15 +91,14 @@ export async function version_handler(version, options) {
91
91
} else {
92
92
nextVersion = semver . inc ( lastVersion , version ) ;
93
93
}
94
+ // Rust crate version is major version of `@rspack/core` - 1
95
+ const nextCrateVersion = nextVersion . replace (
96
+ / ^ ( \d + ) / ,
97
+ ( match , major ) => Number . parseInt ( major ) - 1
98
+ ) ;
99
+ await $ `${ path . resolve ( path . dirname ( new URL ( import . meta. url ) . pathname ) , "../../x" ) } crate-version custom ${ nextCrateVersion } ` ;
94
100
}
95
101
96
- // Rust crate version is major version of `@rspack/core` - 1
97
- const nextCrateVersion = nextVersion . replace (
98
- / ^ ( \d + ) / ,
99
- ( match , major ) => Number . parseInt ( major ) - 1
100
- ) ;
101
- await $ `${ path . resolve ( path . dirname ( new URL ( import . meta. url ) . pathname ) , "../../x" ) } crate-version custom ${ nextCrateVersion } ` ;
102
-
103
102
const packageFiles = await glob ( "{packages,npm,crates}/*/package.json" , {
104
103
cwd : root ,
105
104
ignore : [ "**/node_modules/**" , "**/dist/**" ] ,
You can’t perform that action at this time.
0 commit comments