Skip to content

Commit fc4cbba

Browse files
committed
chore: update scripts
1 parent 76ad898 commit fc4cbba

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

scripts/common/build.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import fg from 'fast-glob'
66
import { intersection } from '@murongg/utils'
77
import type { Package } from '../constants'
88
import { haveWorkspacePackages, packages } from '../constants'
9-
import { selectPkgs } from '../common'
109

1110
const rootDir = path.resolve(process.cwd())
1211

@@ -28,7 +27,7 @@ export function clean() {
2827
}
2928

3029
export async function build(pkgs?: Package[]) {
31-
pkgs = pkgs ?? (await selectPkgs()).value as Package[]
30+
pkgs = pkgs ?? packages as Package[]
3231
consola.log('Building packages:', pkgs.map(pkg => pkg.color(pkg.packName)).join(', '))
3332
pkgs = intersection(pkgs, haveWorkspacePackages)
3433

scripts/common/release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function release() {
3737
if (pkg.isMain) {
3838
mainVersion = version
3939
}
40-
else {
40+
else if (!includeMain) {
4141
execSync('git add .', { stdio: 'inherit', cwd: rootDir })
4242
execSync(`git commit -m "chore: release v${version}"`, { stdio: 'inherit', cwd: rootDir })
4343
}

0 commit comments

Comments
 (0)