@arcgis/components-build-utils 4.33.0-next.9 → 4.33.0-next.91

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.
Files changed (51) hide show
  1. package/dist/commands/copy-folder.d.cts +2 -0
  2. package/dist/commands/copy-folder.d.ts +2 -0
  3. package/dist/commands/create-mock-doc.d.cts +2 -0
  4. package/dist/commands/create-mock-doc.d.ts +2 -0
  5. package/dist/commands/detect-broken-links.d.cts +2 -0
  6. package/dist/commands/detect-broken-links.d.ts +2 -0
  7. package/dist/commands/detect-large-files.d.cts +3 -0
  8. package/dist/commands/detect-large-files.d.ts +3 -0
  9. package/dist/commands/ensure-working-tree-clean.d.cts +5 -0
  10. package/dist/commands/ensure-working-tree-clean.d.ts +5 -0
  11. package/dist/commands/generate-t9n-manifest.d.cts +2 -0
  12. package/dist/commands/generate-t9n-manifest.d.ts +2 -0
  13. package/dist/commands/git-copy/dumpSizes.d.cts +1 -0
  14. package/dist/commands/git-copy/dumpSizes.d.ts +1 -0
  15. package/dist/commands/git-copy/getFileNames.d.cts +4 -0
  16. package/dist/commands/git-copy/getFileNames.d.ts +4 -0
  17. package/dist/commands/git-copy/helpers.d.cts +4 -0
  18. package/dist/commands/git-copy/helpers.d.ts +4 -0
  19. package/dist/commands/git-copy/index.d.cts +15 -0
  20. package/dist/commands/git-copy/index.d.ts +15 -0
  21. package/dist/commands/git-copy/updateReferences.d.cts +4 -0
  22. package/dist/commands/git-copy/updateReferences.d.ts +4 -0
  23. package/dist/commands/git-copy/utils.d.cts +9 -0
  24. package/dist/commands/git-copy/utils.d.ts +9 -0
  25. package/dist/commands/git-copy.d.cts +2 -0
  26. package/dist/commands/git-copy.d.ts +2 -0
  27. package/dist/commands/migrate-repo-issues/devtopia.d.cts +44 -0
  28. package/dist/commands/migrate-repo-issues/devtopia.d.ts +44 -0
  29. package/dist/commands/migrate-repo-issues/zentopia.d.cts +89 -0
  30. package/dist/commands/migrate-repo-issues/zentopia.d.ts +89 -0
  31. package/dist/commands/migrate-repo-issues.d.cts +2 -0
  32. package/dist/commands/migrate-repo-issues.d.ts +2 -0
  33. package/dist/commands/run-lint-test.d.cts +3 -0
  34. package/dist/commands/run-lint-test.d.ts +3 -0
  35. package/dist/commands/run.d.cts +1 -0
  36. package/dist/commands/run.d.ts +1 -0
  37. package/dist/file.d.cts +14 -0
  38. package/dist/file.d.ts +14 -0
  39. package/dist/glob.d.cts +1 -0
  40. package/dist/glob.d.ts +1 -0
  41. package/dist/index.cjs +159 -106
  42. package/dist/index.d.cts +5 -71
  43. package/dist/index.d.ts +5 -71
  44. package/dist/index.js +119 -35
  45. package/dist/packageJson.d.cts +28 -0
  46. package/dist/packageJson.d.ts +28 -0
  47. package/dist/path.d.cts +22 -0
  48. package/dist/path.d.ts +22 -0
  49. package/dist/vite.d.cts +24 -0
  50. package/dist/vite.d.ts +24 -0
  51. package/package.json +5 -2
@@ -0,0 +1,2 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
@@ -0,0 +1,2 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
@@ -0,0 +1,2 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
@@ -0,0 +1,2 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
@@ -0,0 +1,2 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
@@ -0,0 +1,2 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
3
+ export declare function detectLargeFiles(fileNames: string[]): Promise<void>;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
3
+ export declare function detectLargeFiles(fileNames: string[]): Promise<void>;
@@ -0,0 +1,5 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
3
+ export declare function ensureWorkingTreeClean({ cwd }?: {
4
+ cwd?: string;
5
+ }): void;
@@ -0,0 +1,5 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
3
+ export declare function ensureWorkingTreeClean({ cwd }?: {
4
+ cwd?: string;
5
+ }): void;
@@ -0,0 +1,2 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
@@ -0,0 +1,2 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
@@ -0,0 +1 @@
1
+ export declare function dumpHistorySizes(filteredFiles: string[] | undefined, sourceRoot: string, destinationRoot: string, dumpSizes: boolean, dumpFileSizes: boolean): void;
@@ -0,0 +1 @@
1
+ export declare function dumpHistorySizes(filteredFiles: string[] | undefined, sourceRoot: string, destinationRoot: string, dumpSizes: boolean, dumpFileSizes: boolean): void;
@@ -0,0 +1,4 @@
1
+ export declare function getFileNames(sourceRelative: string, sourceRoot: string, endsWithIgnore: string[], ignore?: string[]): {
2
+ filteredFiles: string[];
3
+ rootFiles: Set<string>;
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare function getFileNames(sourceRelative: string, sourceRoot: string, endsWithIgnore: string[], ignore?: string[]): {
2
+ filteredFiles: string[];
3
+ rootFiles: Set<string>;
4
+ };
@@ -0,0 +1,4 @@
1
+ export declare function validateGitCopyEnvironment(destinationRoot: string): void;
2
+ export declare function getFilePathUpdater(rawRenames: string[] | undefined, normalizedSourceRelative: string, normalizedDestinationRelative: string, rootFiles: Set<string>): (filePath: string) => string;
3
+ export declare function checkFileCollisions(filteredFiles: string[], destinationRoot: string, updatePath: (filePath: string) => string): void;
4
+ export declare function checkSupportsDefaultPrefix(): boolean;
@@ -0,0 +1,4 @@
1
+ export declare function validateGitCopyEnvironment(destinationRoot: string): void;
2
+ export declare function getFilePathUpdater(rawRenames: string[] | undefined, normalizedSourceRelative: string, normalizedDestinationRelative: string, rootFiles: Set<string>): (filePath: string) => string;
3
+ export declare function checkFileCollisions(filteredFiles: string[], destinationRoot: string, updatePath: (filePath: string) => string): void;
4
+ export declare function checkSupportsDefaultPrefix(): boolean;
@@ -0,0 +1,15 @@
1
+ export declare function copyFolderWithHistory(rawSource: string, rawDestination: string, { yes, emitPatchFiles, dryRun, dirtyCheck, addBackLinks, ignoreAlreadyExists, remote, ignore, endsWithIgnore, rename: rawRenames, dumpSizes, dumpFileSizes, updateMergeCommitTitlesFrom, }: {
2
+ readonly yes: boolean;
3
+ readonly emitPatchFiles: boolean;
4
+ readonly dryRun: boolean;
5
+ readonly dirtyCheck: boolean;
6
+ readonly ignoreAlreadyExists: boolean;
7
+ readonly addBackLinks: boolean;
8
+ readonly remote: string;
9
+ readonly ignore?: string[];
10
+ readonly endsWithIgnore?: string[];
11
+ readonly rename?: string[];
12
+ readonly dumpSizes: boolean;
13
+ readonly dumpFileSizes: boolean;
14
+ readonly updateMergeCommitTitlesFrom?: string;
15
+ }): Promise<void>;
@@ -0,0 +1,15 @@
1
+ export declare function copyFolderWithHistory(rawSource: string, rawDestination: string, { yes, emitPatchFiles, dryRun, dirtyCheck, addBackLinks, ignoreAlreadyExists, remote, ignore, endsWithIgnore, rename: rawRenames, dumpSizes, dumpFileSizes, updateMergeCommitTitlesFrom, }: {
2
+ readonly yes: boolean;
3
+ readonly emitPatchFiles: boolean;
4
+ readonly dryRun: boolean;
5
+ readonly dirtyCheck: boolean;
6
+ readonly ignoreAlreadyExists: boolean;
7
+ readonly addBackLinks: boolean;
8
+ readonly remote: string;
9
+ readonly ignore?: string[];
10
+ readonly endsWithIgnore?: string[];
11
+ readonly rename?: string[];
12
+ readonly dumpSizes: boolean;
13
+ readonly dumpFileSizes: boolean;
14
+ readonly updateMergeCommitTitlesFrom?: string;
15
+ }): Promise<void>;
@@ -0,0 +1,4 @@
1
+ export declare const commitMessagePrefix = "Subject: [PATCH] ";
2
+ export declare function updateIssueReferences(baseUrl: string, mergeCommitMappings: Record<string, string>, line: string): string;
3
+ /** Resolve a base URL for viewing the commit in the browser */
4
+ export declare function resolveBaseUrl(sourceRoot: string, remote: string): string;
@@ -0,0 +1,4 @@
1
+ export declare const commitMessagePrefix = "Subject: [PATCH] ";
2
+ export declare function updateIssueReferences(baseUrl: string, mergeCommitMappings: Record<string, string>, line: string): string;
3
+ /** Resolve a base URL for viewing the commit in the browser */
4
+ export declare function resolveBaseUrl(sourceRoot: string, remote: string): string;
@@ -0,0 +1,9 @@
1
+ export declare const kb = 1024;
2
+ export declare const mb: number;
3
+ export declare const gb: number;
4
+ /**
5
+ * Setting this decreased total run time from 1m40s to 1m05s
6
+ */
7
+ export declare const highWaterMark: number;
8
+ export declare function exit(command: string): never;
9
+ export declare const reOriginalSha: RegExp;
@@ -0,0 +1,9 @@
1
+ export declare const kb = 1024;
2
+ export declare const mb: number;
3
+ export declare const gb: number;
4
+ /**
5
+ * Setting this decreased total run time from 1m40s to 1m05s
6
+ */
7
+ export declare const highWaterMark: number;
8
+ export declare function exit(command: string): never;
9
+ export declare const reOriginalSha: RegExp;
@@ -0,0 +1,2 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
@@ -0,0 +1,2 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
@@ -0,0 +1,44 @@
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
+ readonly owner: string;
11
+ readonly name: string;
12
+ private issuesPerPage;
13
+ constructor(owner: string, 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;
@@ -0,0 +1,44 @@
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
+ readonly owner: string;
11
+ readonly name: string;
12
+ private issuesPerPage;
13
+ constructor(owner: string, 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;
@@ -0,0 +1,89 @@
1
+ import { Issue } from './devtopia';
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
+ declare class Zentopia {
28
+ readonly repoId: number;
29
+ readonly workspaceId: string;
30
+ private _issueIdCache;
31
+ private _pipelinesCache?;
32
+ private _sprintsCache?;
33
+ private _releasesCache?;
34
+ constructor(repoId: number, workspaceId: string);
35
+ /**
36
+ * Requests to graphql server
37
+ */
38
+ makeGraphQlQuery(query: string): Promise<unknown>;
39
+ /**
40
+ * Grabs the issue metadata from Zenhub
41
+ * This includes sprints, releases, parentEpics, pipeline, and estimate
42
+ */
43
+ fetchZenhubIssueDetails(issue: Issue): Promise<IssueWithZenhub>;
44
+ /**
45
+ * Gets Zenhub issue id from github issue number
46
+ */
47
+ getIssueZenhubId(gitHubIssueNumber: number): Promise<string>;
48
+ /**
49
+ * Sets estimate for an issue
50
+ */
51
+ assignEstimate(issueNumber: number, estimate: number): Promise<void>;
52
+ /**
53
+ * Get pipelines in the workspace
54
+ */
55
+ fetchPipelines(): Promise<{
56
+ id: string;
57
+ name: string;
58
+ }[]>;
59
+ moveIssueToPipeline(issueNumber: number, pipelineName: string): Promise<void>;
60
+ /**
61
+ * Grabs the workspace sprints
62
+ */
63
+ fetchSprints(): Promise<{
64
+ id: string;
65
+ name: string;
66
+ }[]>;
67
+ /**
68
+ * Assigns a sprint to an issue
69
+ */
70
+ assignSprintToIssue(issueNumber: number, sprintTitle: string): Promise<boolean>;
71
+ /**
72
+ * Assigns a release to an issue
73
+ */
74
+ fetchReleases(): Promise<{
75
+ id: string;
76
+ title: string;
77
+ }[]>;
78
+ assignReleasesToIssue(issueNumber: number, releaseTitles: string[]): Promise<boolean>;
79
+ /**
80
+ * We need to remove releases from the issue
81
+ * If workspaces are different, those releases from the previous workspace
82
+ * will be migrated over to the new workspace
83
+ * So if workspaces are different, we need to make sure previous releases are removed
84
+ *
85
+ *
86
+ */
87
+ removeReleasesFromIssue(issueNumber: number, oldReleaseIds: string[]): Promise<void>;
88
+ }
89
+ export default Zentopia;
@@ -0,0 +1,89 @@
1
+ import { Issue } from './devtopia';
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
+ declare class Zentopia {
28
+ readonly repoId: number;
29
+ readonly workspaceId: string;
30
+ private _issueIdCache;
31
+ private _pipelinesCache?;
32
+ private _sprintsCache?;
33
+ private _releasesCache?;
34
+ constructor(repoId: number, workspaceId: string);
35
+ /**
36
+ * Requests to graphql server
37
+ */
38
+ makeGraphQlQuery(query: string): Promise<unknown>;
39
+ /**
40
+ * Grabs the issue metadata from Zenhub
41
+ * This includes sprints, releases, parentEpics, pipeline, and estimate
42
+ */
43
+ fetchZenhubIssueDetails(issue: Issue): Promise<IssueWithZenhub>;
44
+ /**
45
+ * Gets Zenhub issue id from github issue number
46
+ */
47
+ getIssueZenhubId(gitHubIssueNumber: number): Promise<string>;
48
+ /**
49
+ * Sets estimate for an issue
50
+ */
51
+ assignEstimate(issueNumber: number, estimate: number): Promise<void>;
52
+ /**
53
+ * Get pipelines in the workspace
54
+ */
55
+ fetchPipelines(): Promise<{
56
+ id: string;
57
+ name: string;
58
+ }[]>;
59
+ moveIssueToPipeline(issueNumber: number, pipelineName: string): Promise<void>;
60
+ /**
61
+ * Grabs the workspace sprints
62
+ */
63
+ fetchSprints(): Promise<{
64
+ id: string;
65
+ name: string;
66
+ }[]>;
67
+ /**
68
+ * Assigns a sprint to an issue
69
+ */
70
+ assignSprintToIssue(issueNumber: number, sprintTitle: string): Promise<boolean>;
71
+ /**
72
+ * Assigns a release to an issue
73
+ */
74
+ fetchReleases(): Promise<{
75
+ id: string;
76
+ title: string;
77
+ }[]>;
78
+ assignReleasesToIssue(issueNumber: number, releaseTitles: string[]): Promise<boolean>;
79
+ /**
80
+ * We need to remove releases from the issue
81
+ * If workspaces are different, those releases from the previous workspace
82
+ * will be migrated over to the new workspace
83
+ * So if workspaces are different, we need to make sure previous releases are removed
84
+ *
85
+ *
86
+ */
87
+ removeReleasesFromIssue(issueNumber: number, oldReleaseIds: string[]): Promise<void>;
88
+ }
89
+ export default Zentopia;
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare const registerCommand: (command: Command) => void;
@@ -0,0 +1,2 @@
1
+ import { Command } from 'commander';
2
+ export declare const registerCommand: (command: Command) => void;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
3
+ export declare function runTests(files: string[]): void;
@@ -0,0 +1,3 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (command: Command) => undefined;
3
+ export declare function runTests(files: string[]): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ export declare const existsAsync: (file: string) => Promise<boolean>;
2
+ /** Wrapper for execSync to execute shell commands */
3
+ export declare const sh: (command: string, cwd?: string) => string;
4
+ export declare function createFileIfNotExists(filePath: string, content: string): Promise<void>;
5
+ /**
6
+ * Climb the directory tree upward, until found a directory that contains the
7
+ * target file, and return resulting full path
8
+ */
9
+ export declare function findPath(target: string, startDirectory?: string): string | undefined;
10
+ /**
11
+ * Climb the directory tree upward, until found a directory that contains the
12
+ * target file, and return resulting full path
13
+ */
14
+ export declare function asyncFindPath(target: string, startDirectory?: string): Promise<string | undefined>;
package/dist/file.d.ts ADDED
@@ -0,0 +1,14 @@
1
+ export declare const existsAsync: (file: string) => Promise<boolean>;
2
+ /** Wrapper for execSync to execute shell commands */
3
+ export declare const sh: (command: string, cwd?: string) => string;
4
+ export declare function createFileIfNotExists(filePath: string, content: string): Promise<void>;
5
+ /**
6
+ * Climb the directory tree upward, until found a directory that contains the
7
+ * target file, and return resulting full path
8
+ */
9
+ export declare function findPath(target: string, startDirectory?: string): string | undefined;
10
+ /**
11
+ * Climb the directory tree upward, until found a directory that contains the
12
+ * target file, and return resulting full path
13
+ */
14
+ export declare function asyncFindPath(target: string, startDirectory?: string): Promise<string | undefined>;
@@ -0,0 +1 @@
1
+ export declare const gitIgnoreToGlob: (pattern: string) => string;
package/dist/glob.d.ts ADDED
@@ -0,0 +1 @@
1
+ export declare const gitIgnoreToGlob: (pattern: string) => string;