UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

18 lines (17 loc) 891 B
export declare const serializeGlobPathForNpmPackaging: (path: string) => string; export declare const deserializeGlobPathFromNpmPackaging: (path: string) => string; /** * * compiles declarations from a `sourceDirectory` into `distributionDirectory`, making sure that they can be packaged and used with npm successfully * * specifically, while copying each file from `sourceDirectory` to `distributionDirectory`: * - replaces file path `*` chars to `<star>` chars (https://github.com/uladkasach/declapract/issues/5) * * note: this is expected to be temporarily required functionality * - hopefully, we will be able to remove this when npm supports `*` in path names itself * - https://github.com/npm/cli/issues/3722 */ export declare const compile: ({ sourceDirectory, distributionDirectory, }: { sourceDirectory: string; distributionDirectory: string; }) => Promise<void>;