UNPKG

module-replacements

Version:

This package provides a set of manifests which each define a mapping of JS modules to their suggested replacements.

6 lines (5 loc) 286 B
import { fileURLToPath } from 'node:url'; import * as path from 'node:path'; // @ts-ignore filthy cjs/esm polyfill hacks so we can have import.meta const currentDir = fileURLToPath(new URL('.', import.meta.url)); export const manifestsDir = path.resolve(currentDir, '../../manifests');