feat: initial dev-configs monorepo
Shared configs for TypeScript projects: ESLint, Prettier, TypeScript, Vite, Jest, Playwright, Knip. Published as @vigdorov/* npm packages to Gitea registry. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
9
packages/vite/src/utils.ts
Normal file
9
packages/vite/src/utils.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import path from 'node:path';
|
||||
|
||||
export function resolveAliases(aliases: Record<string, string> | undefined): Record<string, string> {
|
||||
if (!aliases) return {};
|
||||
|
||||
return Object.fromEntries(
|
||||
Object.entries(aliases).map(([key, value]) => [key, path.resolve(process.cwd(), value)]),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user