@speedy-js/mono
Version:
Monorepo development & continuous integration tooling.
50 lines • 1.17 kB
TypeScript
import execa from 'execa';
import { ReleaseNS } from '../types';
export { execa };
/**
* Git push
*
* @returns {Promise<void>}
*/
export declare function gitPush(): Promise<void>;
/**
* Require json file with no cache
*
* @param {String} jsonPath
* @returns {Promise<Object>}
*/
export declare function requireJson(jsonPath: string): any;
/**
* Safely require json file with no cache
*
* @param {String} jsonPath
* @returns {Promise<Object>}
*/
export declare function safelyRequireJson(jsonPath: string): any;
/**
* Resolve content of `lerna.json` or `mono.json`
*
* @param {String} cwd
* @returns {Object}
*/
export declare function resolveLernaConfig(cwd?: string): {
path: string;
data: ReleaseNS.ILernaConfig;
};
/**
* Ensure lerna.json exists
*/
export declare function ensureLernaConfig(cwd: string): void;
/**
* Ensure that lerna.json does not exists when 'mono.json' exists.
*/
export declare function cleanLernaConfig(cwd: string): void;
/**
*
* Resolve content of `lerna.json`
*
* @param {String} cwd
* @returns {Object}
*/
export declare function resolvePackageJson(cwd?: string): any;
//# sourceMappingURL=helpers.d.ts.map