UNPKG

1.11 kBTypeScriptView Raw
1/**
2 * Created by user on 2018/11/28/028.
3 */
4import { defaultCopyStaticFiles } from '@yarn-tool/static-file';
5import { parseStaticPackagesPaths } from 'workspaces-config';
6export declare function npmVersion(npmClient?: string, cwd?: string): any;
7export declare function getTargetDir(options: {
8 inputName: string;
9 cwd: string;
10 targetName?: string;
11 hasWorkspace?: string;
12 workspacePrefix?: string;
13 workspacesConfig?: ReturnType<typeof parseStaticPackagesPaths>;
14}): {
15 targetDir: string;
16 targetName: string;
17 cwd: string;
18};
19export declare function validateNpmPackageName(name: string, throwErr?: boolean): {
20 validForNewPackages: boolean;
21 validForOldPackages: boolean;
22 scopedPackagePattern: boolean;
23 warnings?: string[];
24 errors?: string[];
25 name: string;
26 user?: string;
27 subname?: string;
28};
29export { defaultCopyStaticFiles };
30export declare function copyStaticFiles(file_map: Record<string, string> | [string, string, string?][], options: {
31 cwd: string;
32 staticRoot?: string;
33 overwrite?: boolean;
34}): [string, string, string?][];