Skip to content

Commit

Permalink
feat: move pnpm workspace as the first package
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 22, 2025
1 parent a220ef4 commit 5ca6b8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/io/packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,14 @@ export async function loadPackages(options: CommonOptions): Promise<PackageMeta[
onlyFiles: true,
dot: false,
})
packagesNames.sort((a, b) => a.localeCompare(b))
}
else {
packagesNames = ['package.json']
}

if (existsSync(path.join(options.cwd || '', 'pnpm-workspace.yaml'))) {
packagesNames.push('pnpm-workspace.yaml')
packagesNames.unshift('pnpm-workspace.yaml')
}

const packages = (await Promise.all(
Expand Down

0 comments on commit 5ca6b8f

Please sign in to comment.