@alwatr/dedupe
Version:
A package manager helper tool for debug list of defined (imported) packages in your ecosystem and prevent to duplicate import (install) multiple versions of the same package in your project (deduplicate packages).
20 lines • 591 B
TypeScript
/**
* Prevent duplication in any entities like loading node packages.
* @param name package name including scope. e.g. `@scope/package-name`
* @param version package version (optional)
*
* @example
* ```typescript
* deduplicate({name: __package_name__, strict: true});
* ```
*/
export declare function deduplicate(args: {
name: string;
strict?: true;
}): void;
/**
* Old `definePackage` for backward compatibility.
* @deprecated Use `deduplicate` instead.
*/
export declare function definePackage(packageName: string, _?: string): void;
//# sourceMappingURL=main.d.ts.map