1 |
|
2 |
|
3 |
|
4 | import { defaultCopyStaticFiles } from '@yarn-tool/static-file';
|
5 | import { parseStaticPackagesPaths } from 'workspaces-config';
|
6 | export declare function npmVersion(npmClient?: string, cwd?: string): any;
|
7 | export 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 | };
|
19 | export 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 | };
|
29 | export { defaultCopyStaticFiles };
|
30 | export 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?][];
|