File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import fg from 'fast-glob'
6
6
import { intersection } from '@murongg/utils'
7
7
import type { Package } from '../constants'
8
8
import { haveWorkspacePackages , packages } from '../constants'
9
- import { selectPkgs } from '../common'
10
9
11
10
const rootDir = path . resolve ( process . cwd ( ) )
12
11
@@ -28,7 +27,7 @@ export function clean() {
28
27
}
29
28
30
29
export async function build ( pkgs ?: Package [ ] ) {
31
- pkgs = pkgs ?? ( await selectPkgs ( ) ) . value as Package [ ]
30
+ pkgs = pkgs ?? packages as Package [ ]
32
31
consola . log ( 'Building packages:' , pkgs . map ( pkg => pkg . color ( pkg . packName ) ) . join ( ', ' ) )
33
32
pkgs = intersection ( pkgs , haveWorkspacePackages )
34
33
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export async function release() {
37
37
if ( pkg . isMain ) {
38
38
mainVersion = version
39
39
}
40
- else {
40
+ else if ( ! includeMain ) {
41
41
execSync ( 'git add .' , { stdio : 'inherit' , cwd : rootDir } )
42
42
execSync ( `git commit -m "chore: release v${ version } "` , { stdio : 'inherit' , cwd : rootDir } )
43
43
}
You can’t perform that action at this time.
0 commit comments