This commit is contained in:
Morten Olsen
2025-09-08 22:22:40 +02:00
commit 1b02bc8e81
30 changed files with 5459 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
import { resolve } from 'node:path';
import { findWorkspacePackages } from '@pnpm/find-workspace-packages';
const getAliases = async () => {
const packages = await findWorkspacePackages(process.cwd());
return Object.fromEntries(packages.map((pkg) => [pkg.manifest.name, resolve(pkg.dir, 'src', 'exports.ts')]));
};
export { getAliases };