UNPKG

@grnsft/if

Version:

Impact Framework

25 lines (24 loc) 980 B
#!/usr/bin/env node import { ManifestPlugin, PathWithVersion } from '../types/npm'; /** * Checks if the package.json is exists, if not, initializes it. */ export declare const initPackageJsonIfNotExists: (folderPath: string) => Promise<string>; /** * Installs packages from the specified dependencies in the specified folder. */ export declare const installDependencies: (folderPath: string, dependencies: { [path: string]: string; }) => Promise<void>; /** * Updates package.json dependencies. */ export declare const updatePackageJsonDependencies: (packageJsonPath: string, dependencies: PathWithVersion, cwd: boolean) => Promise<void>; /** * Gets depencecies with versions. */ export declare const extractPathsWithVersion: (plugins: ManifestPlugin, dependencies: string[]) => PathWithVersion; /** * Update the package.json properties. */ export declare const updatePackageJsonProperties: (newPackageJsonPath: string, appendDependencies: boolean) => Promise<void>;