Skip to content

Commit

Permalink
fix(builder): single repo should't collect relations
Browse files Browse the repository at this point in the history
  • Loading branch information
deot committed Dec 15, 2023
1 parent d85b39b commit dccc259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/builder/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export const run = (options: Options) => Utils.autoCatch(async () => {
}

// 当仅打包一个或多个时,需要寻找关联需要提前打包的模块
if (options.packageName && options.packageName !== '*') {
if (locals.workspace && options.packageName && options.packageName !== '*') {
let relations: string[] = [];
const walk = (packageNames: string[]) => {
const walk = (packageNames: string[] = []) => {
relations = packageNames.concat(relations);
packageNames.forEach((i) => {
if (locals.packageRelation[i].length) {
Expand Down

0 comments on commit dccc259

Please sign in to comment.