INNER CODE UNIT · TypeScript
checkAllPackageVersionsAligned
onejs/one · packages/lllink/src/index.ts:115
async function checkAllPackageVersionsAligned(
workspaceDirs: string[],
packagesToCheck: Record<string, string>
) {
const allPackageVersions: PackageVersionInfo[] = []
// Include current directory along with provided workspace directories
const allDirs = [process.cwd(), ...workspaceDirs]
// Get all dependencies of packages we're going to link
const allDepsToCheck = new Set<string>()
// Add the packages we're linking
for (const pkgName of Object.keys(packagesToCheck)) {
allDepsToCheck.add(pkgName)
}
// Add dependencies of packages we're linking