mirror of
https://github.com/morten-olsen/reservoir.git
synced 2026-02-08 01:46:24 +01:00
init
This commit is contained in:
10
packages/tests/src/vitest.ts
Normal file
10
packages/tests/src/vitest.ts
Normal 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 };
|
||||
Reference in New Issue
Block a user