UNPKG

npm-init2

Version:

a lazy npm init for create new package, support yarn workspace. make we without use `mkdir xxx && cd xxx && [npm|yarn] init` with `npx npm-init2 xxx`

12 lines (11 loc) 389 B
import { IPackageJson } from '@ts-type/package-dts'; export declare function initWithPreserveDeps({ npmClient, cwd, args, old_pkg, pkg_file_path }: { npmClient: string; cwd: string; args: string[]; old_pkg: IPackageJson; pkg_file_path: string; }): { cp: import("cross-spawn-extra").SpawnSyncReturns<Buffer<ArrayBufferLike>>; }; export default initWithPreserveDeps;