@atomist/atomist-sdm
Version:
Atomist SDM to deliver our own projects
16 lines (15 loc) • 692 B
TypeScript
import { AutofixRegistration } from "@atomist/sdm";
/**
* Change the version of NPM that gets installed into our Docker images
* @type {{name: string; pushTest: PredicatePushTest; transform: (p) => Promise<Project>}}
*/
export declare function npmDockerfileFix(...modules: string[]): AutofixRegistration;
export declare function updateToLatestVersion(module: string, content: string): Promise<string>;
/**
* Replace the version in an NPM install command.
*
* @param module module being installed
* @param version desired version
* @return content with installation of new version
*/
export declare function updateNpmInstall(content: string, module: string, version: string): string;