@arcgis/components-build-utils 5.0.0-next.99 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +9 -5
- package/README.md +2 -3
- package/dist/file.d.cts +3 -1
- package/dist/file.d.ts +3 -1
- package/dist/index.cjs +46 -4
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +46 -4
- package/dist/packageJson.d.cts +15 -11
- package/dist/packageJson.d.ts +15 -11
- package/package.json +3 -16
- package/dist/commands/affected-packages.d.cts +0 -2
- package/dist/commands/affected-packages.d.ts +0 -2
- package/dist/commands/assign-zenhub-release.d.cts +0 -2
- package/dist/commands/assign-zenhub-release.d.ts +0 -2
- package/dist/commands/compare-rss.d.cts +0 -10
- package/dist/commands/compare-rss.d.ts +0 -10
- package/dist/commands/copy-folder.d.cts +0 -2
- package/dist/commands/copy-folder.d.ts +0 -2
- package/dist/commands/deprecate.d.cts +0 -2
- package/dist/commands/deprecate.d.ts +0 -2
- package/dist/commands/detect-broken-links.d.cts +0 -2
- package/dist/commands/detect-broken-links.d.ts +0 -2
- package/dist/commands/detect-large-files.d.cts +0 -3
- package/dist/commands/detect-large-files.d.ts +0 -3
- package/dist/commands/ensure-working-tree-clean.d.cts +0 -6
- package/dist/commands/ensure-working-tree-clean.d.ts +0 -6
- package/dist/commands/generate-builddate.d.cts +0 -12
- package/dist/commands/generate-builddate.d.ts +0 -12
- package/dist/commands/generate-info-html.d.cts +0 -2
- package/dist/commands/generate-info-html.d.ts +0 -2
- package/dist/commands/generate-t9n-manifest.d.cts +0 -2
- package/dist/commands/generate-t9n-manifest.d.ts +0 -2
- package/dist/commands/git-copy/dumpSizes.d.cts +0 -1
- package/dist/commands/git-copy/dumpSizes.d.ts +0 -1
- package/dist/commands/git-copy/getFileNames.d.cts +0 -4
- package/dist/commands/git-copy/getFileNames.d.ts +0 -4
- package/dist/commands/git-copy/helpers.d.cts +0 -4
- package/dist/commands/git-copy/helpers.d.ts +0 -4
- package/dist/commands/git-copy/index.d.cts +0 -16
- package/dist/commands/git-copy/index.d.ts +0 -16
- package/dist/commands/git-copy/updateReferences.d.cts +0 -4
- package/dist/commands/git-copy/updateReferences.d.ts +0 -4
- package/dist/commands/git-copy/utils.d.cts +0 -8
- package/dist/commands/git-copy/utils.d.ts +0 -8
- package/dist/commands/git-copy.d.cts +0 -2
- package/dist/commands/git-copy.d.ts +0 -2
- package/dist/commands/github-actions-utils.d.cts +0 -8
- package/dist/commands/github-actions-utils.d.ts +0 -8
- package/dist/commands/migrate-repo-issues/devtopia.d.cts +0 -44
- package/dist/commands/migrate-repo-issues/devtopia.d.ts +0 -44
- package/dist/commands/migrate-repo-issues/zentopia.d.cts +0 -102
- package/dist/commands/migrate-repo-issues/zentopia.d.ts +0 -102
- package/dist/commands/migrate-repo-issues.d.cts +0 -2
- package/dist/commands/migrate-repo-issues.d.ts +0 -2
- package/dist/commands/npm-utils.d.cts +0 -29
- package/dist/commands/npm-utils.d.ts +0 -29
- package/dist/commands/run-lint-test.d.cts +0 -2
- package/dist/commands/run-lint-test.d.ts +0 -2
- package/dist/commands/run.d.cts +0 -1
- package/dist/commands/run.d.ts +0 -1
- package/dist/commands/scan-dist.d.cts +0 -7
- package/dist/commands/scan-dist.d.ts +0 -7
- package/dist/commands/update-core-dep.d.cts +0 -2
- package/dist/commands/update-core-dep.d.ts +0 -2
- package/dist/commands/update-version.d.cts +0 -2
- package/dist/commands/update-version.d.ts +0 -2
- package/dist/commands/utils.d.cts +0 -71
- package/dist/commands/utils.d.ts +0 -71
- package/src/commands/run-wrapper.js +0 -6
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const markdownLog: string[];
|
|
2
|
-
export declare function addKeyValueToOutput(key: string, value: string[] | string): void;
|
|
3
|
-
export declare function addMarkdownToOutput(key?: string): void;
|
|
4
|
-
export declare function addHeadingToSummary(text: string, level?: 1 | 2 | 3): void;
|
|
5
|
-
export declare function addLineToSummary(text: string): void;
|
|
6
|
-
export declare function addListToSummary(items: string[], ordered?: boolean): void;
|
|
7
|
-
export declare function addNewlineToSummary(): void;
|
|
8
|
-
export declare function writeSummary(): void;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const markdownLog: string[];
|
|
2
|
-
export declare function addKeyValueToOutput(key: string, value: string[] | string): void;
|
|
3
|
-
export declare function addMarkdownToOutput(key?: string): void;
|
|
4
|
-
export declare function addHeadingToSummary(text: string, level?: 1 | 2 | 3): void;
|
|
5
|
-
export declare function addLineToSummary(text: string): void;
|
|
6
|
-
export declare function addListToSummary(items: string[], ordered?: boolean): void;
|
|
7
|
-
export declare function addNewlineToSummary(): void;
|
|
8
|
-
export declare function writeSummary(): void;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export interface Issue {
|
|
2
|
-
id: string;
|
|
3
|
-
number: number;
|
|
4
|
-
title: string;
|
|
5
|
-
author: {
|
|
6
|
-
login: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
declare class Devtopia {
|
|
10
|
-
private issuesPerPage;
|
|
11
|
-
constructor(owner: string, name: string);
|
|
12
|
-
readonly owner: string;
|
|
13
|
-
readonly name: string;
|
|
14
|
-
/**
|
|
15
|
-
* Requests to github graphql server
|
|
16
|
-
*/
|
|
17
|
-
static makeGraphQlQuery(query: string): Promise<unknown>;
|
|
18
|
-
/**
|
|
19
|
-
* Get github repository id and database id
|
|
20
|
-
* repository id is a unique string used to identify the repository in github
|
|
21
|
-
* database id is a unique number used to identify the repository in github database
|
|
22
|
-
*/
|
|
23
|
-
fetchRepositoryIds(): Promise<{
|
|
24
|
-
repositoryId: string;
|
|
25
|
-
databaseId: number;
|
|
26
|
-
}>;
|
|
27
|
-
/**
|
|
28
|
-
* Gets all open issues from the repository
|
|
29
|
-
*/
|
|
30
|
-
fetchIssues(): Promise<Issue[]>;
|
|
31
|
-
/**
|
|
32
|
-
* Gets the total count of open issues in the repository
|
|
33
|
-
*
|
|
34
|
-
* @returns number of open issues in the repository
|
|
35
|
-
*/
|
|
36
|
-
private _fetchOpenIssuesCount;
|
|
37
|
-
/**
|
|
38
|
-
* Transfer issue from one repository to another
|
|
39
|
-
*/
|
|
40
|
-
static transferIssue(sourceRepositoryId: string, destinationRepositoryId: string, issueId: string): Promise<number>;
|
|
41
|
-
resolveLabelIdFromName(labelName: string): Promise<string>;
|
|
42
|
-
assignLabelToIssue(issueNumber: number, labelId: string): Promise<unknown>;
|
|
43
|
-
}
|
|
44
|
-
export default Devtopia;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export interface Issue {
|
|
2
|
-
id: string;
|
|
3
|
-
number: number;
|
|
4
|
-
title: string;
|
|
5
|
-
author: {
|
|
6
|
-
login: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
declare class Devtopia {
|
|
10
|
-
private issuesPerPage;
|
|
11
|
-
constructor(owner: string, name: string);
|
|
12
|
-
readonly owner: string;
|
|
13
|
-
readonly name: string;
|
|
14
|
-
/**
|
|
15
|
-
* Requests to github graphql server
|
|
16
|
-
*/
|
|
17
|
-
static makeGraphQlQuery(query: string): Promise<unknown>;
|
|
18
|
-
/**
|
|
19
|
-
* Get github repository id and database id
|
|
20
|
-
* repository id is a unique string used to identify the repository in github
|
|
21
|
-
* database id is a unique number used to identify the repository in github database
|
|
22
|
-
*/
|
|
23
|
-
fetchRepositoryIds(): Promise<{
|
|
24
|
-
repositoryId: string;
|
|
25
|
-
databaseId: number;
|
|
26
|
-
}>;
|
|
27
|
-
/**
|
|
28
|
-
* Gets all open issues from the repository
|
|
29
|
-
*/
|
|
30
|
-
fetchIssues(): Promise<Issue[]>;
|
|
31
|
-
/**
|
|
32
|
-
* Gets the total count of open issues in the repository
|
|
33
|
-
*
|
|
34
|
-
* @returns number of open issues in the repository
|
|
35
|
-
*/
|
|
36
|
-
private _fetchOpenIssuesCount;
|
|
37
|
-
/**
|
|
38
|
-
* Transfer issue from one repository to another
|
|
39
|
-
*/
|
|
40
|
-
static transferIssue(sourceRepositoryId: string, destinationRepositoryId: string, issueId: string): Promise<number>;
|
|
41
|
-
resolveLabelIdFromName(labelName: string): Promise<string>;
|
|
42
|
-
assignLabelToIssue(issueNumber: number, labelId: string): Promise<unknown>;
|
|
43
|
-
}
|
|
44
|
-
export default Devtopia;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { Issue } from './devtopia.ts';
|
|
2
|
-
export type IssueWithZenhub = {
|
|
3
|
-
gitHubId: string;
|
|
4
|
-
zenhubId: string;
|
|
5
|
-
number: number;
|
|
6
|
-
title: string;
|
|
7
|
-
author: string;
|
|
8
|
-
estimate: number | undefined;
|
|
9
|
-
releases: {
|
|
10
|
-
id: string;
|
|
11
|
-
title: string;
|
|
12
|
-
}[];
|
|
13
|
-
sprints: {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
}[];
|
|
17
|
-
parentEpics: {
|
|
18
|
-
id: string;
|
|
19
|
-
number: number;
|
|
20
|
-
title: string;
|
|
21
|
-
}[];
|
|
22
|
-
pipeline: {
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* !important
|
|
29
|
-
* The class makes a TLS request to Zenhub's GraphQL endpoint, 'https://zentopia.esri.com/public/graphql'
|
|
30
|
-
* You need to make sure node trusts the certificate authority that signed the certificate used by zentopia.esri.com
|
|
31
|
-
*
|
|
32
|
-
* Include your certificate authority in the NODE_EXTRA_CA_CERTS environment variable
|
|
33
|
-
* Reference: https://webgis.esri.com/webgis/components/devops/troubleshoot/troubleshoot#certificate-verification-failure
|
|
34
|
-
*/
|
|
35
|
-
declare class Zentopia {
|
|
36
|
-
private _issueIdCache;
|
|
37
|
-
private _pipelinesCache?;
|
|
38
|
-
private _sprintsCache?;
|
|
39
|
-
private _releasesCache?;
|
|
40
|
-
constructor(repoId: number, workspaceId: string, token?: string);
|
|
41
|
-
readonly repoId: number;
|
|
42
|
-
readonly workspaceId: string;
|
|
43
|
-
readonly token?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Requests to graphql server
|
|
46
|
-
*/
|
|
47
|
-
makeGraphQlQuery(query: string): Promise<unknown>;
|
|
48
|
-
/**
|
|
49
|
-
* Grabs the issue metadata from Zenhub
|
|
50
|
-
* This includes sprints, releases, parentEpics, pipeline, and estimate
|
|
51
|
-
*/
|
|
52
|
-
fetchZenhubIssueDetails(issue: Issue): Promise<IssueWithZenhub>;
|
|
53
|
-
/**
|
|
54
|
-
* Gets Zenhub issue id from github issue number
|
|
55
|
-
*/
|
|
56
|
-
getIssueZenhubId(gitHubIssueNumber: number): Promise<string>;
|
|
57
|
-
/**
|
|
58
|
-
* Sets estimate for an issue
|
|
59
|
-
*/
|
|
60
|
-
assignEstimate(issueNumber: number, estimate: number): Promise<void>;
|
|
61
|
-
/**
|
|
62
|
-
* Get pipelines in the workspace
|
|
63
|
-
*/
|
|
64
|
-
fetchPipelines(): Promise<{
|
|
65
|
-
id: string;
|
|
66
|
-
name: string;
|
|
67
|
-
}[]>;
|
|
68
|
-
moveIssueToPipeline(issueNumber: number, pipelineName: string): Promise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Grabs the workspace sprints
|
|
71
|
-
*/
|
|
72
|
-
fetchSprints(): Promise<{
|
|
73
|
-
id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
}[]>;
|
|
76
|
-
/**
|
|
77
|
-
* Assigns a sprint to an issue
|
|
78
|
-
*/
|
|
79
|
-
assignSprintToIssue(issueNumber: number, sprintTitle: string): Promise<boolean>;
|
|
80
|
-
/**
|
|
81
|
-
* Assigns a release to an issue
|
|
82
|
-
*/
|
|
83
|
-
fetchReleases(): Promise<{
|
|
84
|
-
id: string;
|
|
85
|
-
title: string;
|
|
86
|
-
}[]>;
|
|
87
|
-
assignReleasesToIssue(issueNumber: number, releaseTitles: string[]): Promise<boolean>;
|
|
88
|
-
/**
|
|
89
|
-
* We need to remove releases from the issue
|
|
90
|
-
* If workspaces are different, those releases from the previous workspace
|
|
91
|
-
* will be migrated over to the new workspace
|
|
92
|
-
* So if workspaces are different, we need to make sure previous releases are removed
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*/
|
|
96
|
-
removeReleasesFromIssue(issueNumber: number, oldReleaseIds: string[]): Promise<void>;
|
|
97
|
-
getIssueReleases(issueNumber: number): Promise<{
|
|
98
|
-
id: string;
|
|
99
|
-
title: string;
|
|
100
|
-
}[]>;
|
|
101
|
-
}
|
|
102
|
-
export default Zentopia;
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { Issue } from './devtopia.ts';
|
|
2
|
-
export type IssueWithZenhub = {
|
|
3
|
-
gitHubId: string;
|
|
4
|
-
zenhubId: string;
|
|
5
|
-
number: number;
|
|
6
|
-
title: string;
|
|
7
|
-
author: string;
|
|
8
|
-
estimate: number | undefined;
|
|
9
|
-
releases: {
|
|
10
|
-
id: string;
|
|
11
|
-
title: string;
|
|
12
|
-
}[];
|
|
13
|
-
sprints: {
|
|
14
|
-
id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
}[];
|
|
17
|
-
parentEpics: {
|
|
18
|
-
id: string;
|
|
19
|
-
number: number;
|
|
20
|
-
title: string;
|
|
21
|
-
}[];
|
|
22
|
-
pipeline: {
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* !important
|
|
29
|
-
* The class makes a TLS request to Zenhub's GraphQL endpoint, 'https://zentopia.esri.com/public/graphql'
|
|
30
|
-
* You need to make sure node trusts the certificate authority that signed the certificate used by zentopia.esri.com
|
|
31
|
-
*
|
|
32
|
-
* Include your certificate authority in the NODE_EXTRA_CA_CERTS environment variable
|
|
33
|
-
* Reference: https://webgis.esri.com/webgis/components/devops/troubleshoot/troubleshoot#certificate-verification-failure
|
|
34
|
-
*/
|
|
35
|
-
declare class Zentopia {
|
|
36
|
-
private _issueIdCache;
|
|
37
|
-
private _pipelinesCache?;
|
|
38
|
-
private _sprintsCache?;
|
|
39
|
-
private _releasesCache?;
|
|
40
|
-
constructor(repoId: number, workspaceId: string, token?: string);
|
|
41
|
-
readonly repoId: number;
|
|
42
|
-
readonly workspaceId: string;
|
|
43
|
-
readonly token?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Requests to graphql server
|
|
46
|
-
*/
|
|
47
|
-
makeGraphQlQuery(query: string): Promise<unknown>;
|
|
48
|
-
/**
|
|
49
|
-
* Grabs the issue metadata from Zenhub
|
|
50
|
-
* This includes sprints, releases, parentEpics, pipeline, and estimate
|
|
51
|
-
*/
|
|
52
|
-
fetchZenhubIssueDetails(issue: Issue): Promise<IssueWithZenhub>;
|
|
53
|
-
/**
|
|
54
|
-
* Gets Zenhub issue id from github issue number
|
|
55
|
-
*/
|
|
56
|
-
getIssueZenhubId(gitHubIssueNumber: number): Promise<string>;
|
|
57
|
-
/**
|
|
58
|
-
* Sets estimate for an issue
|
|
59
|
-
*/
|
|
60
|
-
assignEstimate(issueNumber: number, estimate: number): Promise<void>;
|
|
61
|
-
/**
|
|
62
|
-
* Get pipelines in the workspace
|
|
63
|
-
*/
|
|
64
|
-
fetchPipelines(): Promise<{
|
|
65
|
-
id: string;
|
|
66
|
-
name: string;
|
|
67
|
-
}[]>;
|
|
68
|
-
moveIssueToPipeline(issueNumber: number, pipelineName: string): Promise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Grabs the workspace sprints
|
|
71
|
-
*/
|
|
72
|
-
fetchSprints(): Promise<{
|
|
73
|
-
id: string;
|
|
74
|
-
name: string;
|
|
75
|
-
}[]>;
|
|
76
|
-
/**
|
|
77
|
-
* Assigns a sprint to an issue
|
|
78
|
-
*/
|
|
79
|
-
assignSprintToIssue(issueNumber: number, sprintTitle: string): Promise<boolean>;
|
|
80
|
-
/**
|
|
81
|
-
* Assigns a release to an issue
|
|
82
|
-
*/
|
|
83
|
-
fetchReleases(): Promise<{
|
|
84
|
-
id: string;
|
|
85
|
-
title: string;
|
|
86
|
-
}[]>;
|
|
87
|
-
assignReleasesToIssue(issueNumber: number, releaseTitles: string[]): Promise<boolean>;
|
|
88
|
-
/**
|
|
89
|
-
* We need to remove releases from the issue
|
|
90
|
-
* If workspaces are different, those releases from the previous workspace
|
|
91
|
-
* will be migrated over to the new workspace
|
|
92
|
-
* So if workspaces are different, we need to make sure previous releases are removed
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*/
|
|
96
|
-
removeReleasesFromIssue(issueNumber: number, oldReleaseIds: string[]): Promise<void>;
|
|
97
|
-
getIssueReleases(issueNumber: number): Promise<{
|
|
98
|
-
id: string;
|
|
99
|
-
title: string;
|
|
100
|
-
}[]>;
|
|
101
|
-
}
|
|
102
|
-
export default Zentopia;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const npmRegistry = "https://registry.npmjs.org/";
|
|
2
|
-
/**
|
|
3
|
-
* Fetch all published versions for a package.
|
|
4
|
-
*/
|
|
5
|
-
export declare function fetchVersions(pkgName: string, options: {
|
|
6
|
-
verbose: boolean;
|
|
7
|
-
}): Promise<{
|
|
8
|
-
versions: string[];
|
|
9
|
-
error?: unknown;
|
|
10
|
-
}>;
|
|
11
|
-
/**
|
|
12
|
-
* Check if a given version for a package is already deprecated.
|
|
13
|
-
* npm view is not able to provide the deprecated version information directly.
|
|
14
|
-
* We have to first fetch all the versions and then one by one check if they are deprecated.
|
|
15
|
-
*/
|
|
16
|
-
export declare function isVersionDeprecated(pkgName: string, version: string, options: {
|
|
17
|
-
verbose: boolean;
|
|
18
|
-
}): Promise<boolean>;
|
|
19
|
-
/**
|
|
20
|
-
* Request npm deprecation for the `package@range` specification
|
|
21
|
-
*/
|
|
22
|
-
export declare function deprecate(pkgSpec: string, options: {
|
|
23
|
-
authToken?: string;
|
|
24
|
-
message: string;
|
|
25
|
-
verbose: boolean;
|
|
26
|
-
}): Promise<{
|
|
27
|
-
stdout?: string;
|
|
28
|
-
error?: unknown;
|
|
29
|
-
}>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export declare const npmRegistry = "https://registry.npmjs.org/";
|
|
2
|
-
/**
|
|
3
|
-
* Fetch all published versions for a package.
|
|
4
|
-
*/
|
|
5
|
-
export declare function fetchVersions(pkgName: string, options: {
|
|
6
|
-
verbose: boolean;
|
|
7
|
-
}): Promise<{
|
|
8
|
-
versions: string[];
|
|
9
|
-
error?: unknown;
|
|
10
|
-
}>;
|
|
11
|
-
/**
|
|
12
|
-
* Check if a given version for a package is already deprecated.
|
|
13
|
-
* npm view is not able to provide the deprecated version information directly.
|
|
14
|
-
* We have to first fetch all the versions and then one by one check if they are deprecated.
|
|
15
|
-
*/
|
|
16
|
-
export declare function isVersionDeprecated(pkgName: string, version: string, options: {
|
|
17
|
-
verbose: boolean;
|
|
18
|
-
}): Promise<boolean>;
|
|
19
|
-
/**
|
|
20
|
-
* Request npm deprecation for the `package@range` specification
|
|
21
|
-
*/
|
|
22
|
-
export declare function deprecate(pkgSpec: string, options: {
|
|
23
|
-
authToken?: string;
|
|
24
|
-
message: string;
|
|
25
|
-
verbose: boolean;
|
|
26
|
-
}): Promise<{
|
|
27
|
-
stdout?: string;
|
|
28
|
-
error?: unknown;
|
|
29
|
-
}>;
|
package/dist/commands/run.d.cts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/commands/run.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Command } from '@commander-js/extra-typings';
|
|
2
|
-
import { PackageWalkerItem } from './utils.ts';
|
|
3
|
-
export declare const registerCommand: (command: Command) => undefined;
|
|
4
|
-
export declare function scanDist({ blocklistedNames }: {
|
|
5
|
-
blocklistedNames?: string[];
|
|
6
|
-
}): Promise<void>;
|
|
7
|
-
export declare function scanPackageDist({ packagePath, content: packageJson }: PackageWalkerItem, blocklistedNames?: string[]): Promise<void>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Command } from '@commander-js/extra-typings';
|
|
2
|
-
import { PackageWalkerItem } from './utils.ts';
|
|
3
|
-
export declare const registerCommand: (command: Command) => undefined;
|
|
4
|
-
export declare function scanDist({ blocklistedNames }: {
|
|
5
|
-
blocklistedNames?: string[];
|
|
6
|
-
}): Promise<void>;
|
|
7
|
-
export declare function scanPackageDist({ packagePath, content: packageJson }: PackageWalkerItem, blocklistedNames?: string[]): Promise<void>;
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ExecSyncOptionsWithStringEncoding } from 'node:child_process';
|
|
2
|
-
import { MiniPackageJson } from '../packageJson.ts';
|
|
3
|
-
/**
|
|
4
|
-
* Sets the exit code to 1 and prints the error message to stderr.
|
|
5
|
-
* This is used to indicate an error condition in the script.
|
|
6
|
-
*/
|
|
7
|
-
export declare function error(...messages: unknown[]): void;
|
|
8
|
-
/**
|
|
9
|
-
* Console error the messages and exits the process with code 1.
|
|
10
|
-
* This is used to indicate a fatal error that cannot be recovered from.
|
|
11
|
-
*/
|
|
12
|
-
export declare function errorAndExit(...messages: unknown[]): never;
|
|
13
|
-
export declare function sh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>, quiet?: boolean): string;
|
|
14
|
-
export declare function findRepositoryRoot(): string;
|
|
15
|
-
export declare function isURL(source: string): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Returns a list of all package paths in the workspace,
|
|
18
|
-
* as resolved from workspaces in root package.json
|
|
19
|
-
*/
|
|
20
|
-
export declare function getWorkspacesPackagePaths(includeRootPackage?: boolean): Promise<string[]>;
|
|
21
|
-
export type PackageWalkerItem = PackageWalkerResult<MiniPackageJson>;
|
|
22
|
-
type PackageWalkerResult<T> = {
|
|
23
|
-
/**
|
|
24
|
-
* @example packages/support-packages/components-build-utils/
|
|
25
|
-
* @privateRemarks
|
|
26
|
-
* Property is named `packagePath` to avoid collision with `path` package
|
|
27
|
-
*/
|
|
28
|
-
packagePath: string;
|
|
29
|
-
content: T;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Walks through all workspace packages, calling the callback for each.
|
|
33
|
-
* If the callback returns a non-null value, it is included in the results.
|
|
34
|
-
* If the callback returns null or undefined, that package is not included in the results.
|
|
35
|
-
*/
|
|
36
|
-
export declare function workspacesPackageWalker<T = void>(callback: (item: PackageWalkerItem) => Promise<T | undefined> | T | undefined, includeRootPackage?: boolean): Promise<PackageWalkerResult<T>[]>;
|
|
37
|
-
type AffectedPackage = PackageWalkerItem & {
|
|
38
|
-
files: string[];
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Computes the list of workspace packages affected by a given set of changed files.
|
|
42
|
-
*
|
|
43
|
-
* This function must always be run from the repository root so that workspace
|
|
44
|
-
* discovery and relative path matching behave correctly.
|
|
45
|
-
*
|
|
46
|
-
* The function first collects all workspace packages (with their paths and package.json).
|
|
47
|
-
* It then checks which of the changed files fall under each package's path and marks
|
|
48
|
-
* those packages as initially affected.
|
|
49
|
-
*
|
|
50
|
-
* Note: Only internal workspace packages are considered in the dependency graph;
|
|
51
|
-
* external dependencies are ignored.
|
|
52
|
-
*
|
|
53
|
-
* @param changed - Iterable list of root-relative file paths that were modified.
|
|
54
|
-
* @param options - Additional options:
|
|
55
|
-
* - dfs: Whether to include transitive dependents by traversing the dependency graph.
|
|
56
|
-
*
|
|
57
|
-
* @returns Promise resolving to an array of affected workspace `Package` objects.
|
|
58
|
-
*/
|
|
59
|
-
export declare function getAffectedPackages(changed: Iterable<string>, options?: {
|
|
60
|
-
dfs?: boolean;
|
|
61
|
-
}): Promise<AffectedPackage[]>;
|
|
62
|
-
/**
|
|
63
|
-
* Helper to check if an error is a SIGINT (interrupt) error.
|
|
64
|
-
*/
|
|
65
|
-
export declare function isSigint(err: unknown): boolean;
|
|
66
|
-
export declare function getBranchName(): string;
|
|
67
|
-
export declare function getStagedFiles(options?: Partial<ExecSyncOptionsWithStringEncoding>): string[];
|
|
68
|
-
export declare function getModifiedFiles(options?: Partial<ExecSyncOptionsWithStringEncoding>): string[];
|
|
69
|
-
export declare function commitStagedFiles(messages: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): void;
|
|
70
|
-
export declare function pushCommits(options?: Partial<ExecSyncOptionsWithStringEncoding>): void;
|
|
71
|
-
export {};
|
package/dist/commands/utils.d.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ExecSyncOptionsWithStringEncoding } from 'node:child_process';
|
|
2
|
-
import { MiniPackageJson } from '../packageJson.ts';
|
|
3
|
-
/**
|
|
4
|
-
* Sets the exit code to 1 and prints the error message to stderr.
|
|
5
|
-
* This is used to indicate an error condition in the script.
|
|
6
|
-
*/
|
|
7
|
-
export declare function error(...messages: unknown[]): void;
|
|
8
|
-
/**
|
|
9
|
-
* Console error the messages and exits the process with code 1.
|
|
10
|
-
* This is used to indicate a fatal error that cannot be recovered from.
|
|
11
|
-
*/
|
|
12
|
-
export declare function errorAndExit(...messages: unknown[]): never;
|
|
13
|
-
export declare function sh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>, quiet?: boolean): string;
|
|
14
|
-
export declare function findRepositoryRoot(): string;
|
|
15
|
-
export declare function isURL(source: string): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Returns a list of all package paths in the workspace,
|
|
18
|
-
* as resolved from workspaces in root package.json
|
|
19
|
-
*/
|
|
20
|
-
export declare function getWorkspacesPackagePaths(includeRootPackage?: boolean): Promise<string[]>;
|
|
21
|
-
export type PackageWalkerItem = PackageWalkerResult<MiniPackageJson>;
|
|
22
|
-
type PackageWalkerResult<T> = {
|
|
23
|
-
/**
|
|
24
|
-
* @example packages/support-packages/components-build-utils/
|
|
25
|
-
* @privateRemarks
|
|
26
|
-
* Property is named `packagePath` to avoid collision with `path` package
|
|
27
|
-
*/
|
|
28
|
-
packagePath: string;
|
|
29
|
-
content: T;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Walks through all workspace packages, calling the callback for each.
|
|
33
|
-
* If the callback returns a non-null value, it is included in the results.
|
|
34
|
-
* If the callback returns null or undefined, that package is not included in the results.
|
|
35
|
-
*/
|
|
36
|
-
export declare function workspacesPackageWalker<T = void>(callback: (item: PackageWalkerItem) => Promise<T | undefined> | T | undefined, includeRootPackage?: boolean): Promise<PackageWalkerResult<T>[]>;
|
|
37
|
-
type AffectedPackage = PackageWalkerItem & {
|
|
38
|
-
files: string[];
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Computes the list of workspace packages affected by a given set of changed files.
|
|
42
|
-
*
|
|
43
|
-
* This function must always be run from the repository root so that workspace
|
|
44
|
-
* discovery and relative path matching behave correctly.
|
|
45
|
-
*
|
|
46
|
-
* The function first collects all workspace packages (with their paths and package.json).
|
|
47
|
-
* It then checks which of the changed files fall under each package's path and marks
|
|
48
|
-
* those packages as initially affected.
|
|
49
|
-
*
|
|
50
|
-
* Note: Only internal workspace packages are considered in the dependency graph;
|
|
51
|
-
* external dependencies are ignored.
|
|
52
|
-
*
|
|
53
|
-
* @param changed - Iterable list of root-relative file paths that were modified.
|
|
54
|
-
* @param options - Additional options:
|
|
55
|
-
* - dfs: Whether to include transitive dependents by traversing the dependency graph.
|
|
56
|
-
*
|
|
57
|
-
* @returns Promise resolving to an array of affected workspace `Package` objects.
|
|
58
|
-
*/
|
|
59
|
-
export declare function getAffectedPackages(changed: Iterable<string>, options?: {
|
|
60
|
-
dfs?: boolean;
|
|
61
|
-
}): Promise<AffectedPackage[]>;
|
|
62
|
-
/**
|
|
63
|
-
* Helper to check if an error is a SIGINT (interrupt) error.
|
|
64
|
-
*/
|
|
65
|
-
export declare function isSigint(err: unknown): boolean;
|
|
66
|
-
export declare function getBranchName(): string;
|
|
67
|
-
export declare function getStagedFiles(options?: Partial<ExecSyncOptionsWithStringEncoding>): string[];
|
|
68
|
-
export declare function getModifiedFiles(options?: Partial<ExecSyncOptionsWithStringEncoding>): string[];
|
|
69
|
-
export declare function commitStagedFiles(messages: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): void;
|
|
70
|
-
export declare function pushCommits(options?: Partial<ExecSyncOptionsWithStringEncoding>): void;
|
|
71
|
-
export {};
|