import { repoDirs } from "@adpt/utils" ; import fs from "fs-extra" ; import path from "path" ; export type RepoVersions = typeof repoDirs ; export const repoVersions = { } as RepoVersions ; const dirNames = Object . keys ( repoDirs ) as any [ ] ; for ( const dir of dirNames ) { const pkgJ = fs . readJsonSync ( path . join ( repoDirs [ dir ] , "package.json" ) ) ; repoVersions [ dir ] = pkgJ . version ; }