@arcgis/components-build-utils 5.0.0-next.65 → 5.0.0-next.68
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/dist/commands/github-actions-utils.d.cts +7 -0
- package/dist/commands/github-actions-utils.d.ts +7 -0
- package/dist/commands/migrate-repo-issues/devtopia.d.cts +2 -2
- package/dist/commands/migrate-repo-issues/devtopia.d.ts +2 -2
- package/dist/commands/migrate-repo-issues/zentopia.d.cts +5 -5
- package/dist/commands/migrate-repo-issues/zentopia.d.ts +5 -5
- package/dist/commands/scan-dist.d.cts +1 -1
- package/dist/commands/scan-dist.d.ts +1 -1
- package/dist/commands/utils.d.cts +2 -1
- package/dist/commands/utils.d.ts +2 -1
- package/dist/index.cjs +6 -5
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -5
- package/package.json +2 -1
- package/dist/commands/create-mock-doc.d.cts +0 -2
- package/dist/commands/create-mock-doc.d.ts +0 -2
|
@@ -0,0 +1,7 @@
|
|
|
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 addListToSummary(items: string[], ordered?: boolean): void;
|
|
6
|
+
export declare function addNewlineToSummary(): void;
|
|
7
|
+
export declare function writeSummary(): void;
|
|
@@ -0,0 +1,7 @@
|
|
|
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 addListToSummary(items: string[], ordered?: boolean): void;
|
|
6
|
+
export declare function addNewlineToSummary(): void;
|
|
7
|
+
export declare function writeSummary(): void;
|
|
@@ -7,10 +7,10 @@ export interface Issue {
|
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
declare class Devtopia {
|
|
10
|
-
readonly owner: string;
|
|
11
|
-
readonly name: string;
|
|
12
10
|
private issuesPerPage;
|
|
13
11
|
constructor(owner: string, name: string);
|
|
12
|
+
readonly owner: string;
|
|
13
|
+
readonly name: string;
|
|
14
14
|
/**
|
|
15
15
|
* Requests to github graphql server
|
|
16
16
|
*/
|
|
@@ -7,10 +7,10 @@ export interface Issue {
|
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
9
|
declare class Devtopia {
|
|
10
|
-
readonly owner: string;
|
|
11
|
-
readonly name: string;
|
|
12
10
|
private issuesPerPage;
|
|
13
11
|
constructor(owner: string, name: string);
|
|
12
|
+
readonly owner: string;
|
|
13
|
+
readonly name: string;
|
|
14
14
|
/**
|
|
15
15
|
* Requests to github graphql server
|
|
16
16
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Issue } from './devtopia';
|
|
1
|
+
import { Issue } from './devtopia.ts';
|
|
2
2
|
export type IssueWithZenhub = {
|
|
3
3
|
gitHubId: string;
|
|
4
4
|
zenhubId: string;
|
|
@@ -33,14 +33,14 @@ export type IssueWithZenhub = {
|
|
|
33
33
|
* Reference: https://qawebgis.esri.com/webgis/components/devops/troubleshoot/troubleshoot#certificate-verification-failure
|
|
34
34
|
*/
|
|
35
35
|
declare class Zentopia {
|
|
36
|
-
readonly repoId: number;
|
|
37
|
-
readonly workspaceId: string;
|
|
38
|
-
readonly token?: string | undefined;
|
|
39
36
|
private _issueIdCache;
|
|
40
37
|
private _pipelinesCache?;
|
|
41
38
|
private _sprintsCache?;
|
|
42
39
|
private _releasesCache?;
|
|
43
|
-
constructor(repoId: number, workspaceId: string, token?: string
|
|
40
|
+
constructor(repoId: number, workspaceId: string, token?: string);
|
|
41
|
+
readonly repoId: number;
|
|
42
|
+
readonly workspaceId: string;
|
|
43
|
+
readonly token?: string;
|
|
44
44
|
/**
|
|
45
45
|
* Requests to graphql server
|
|
46
46
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Issue } from './devtopia';
|
|
1
|
+
import { Issue } from './devtopia.ts';
|
|
2
2
|
export type IssueWithZenhub = {
|
|
3
3
|
gitHubId: string;
|
|
4
4
|
zenhubId: string;
|
|
@@ -33,14 +33,14 @@ export type IssueWithZenhub = {
|
|
|
33
33
|
* Reference: https://qawebgis.esri.com/webgis/components/devops/troubleshoot/troubleshoot#certificate-verification-failure
|
|
34
34
|
*/
|
|
35
35
|
declare class Zentopia {
|
|
36
|
-
readonly repoId: number;
|
|
37
|
-
readonly workspaceId: string;
|
|
38
|
-
readonly token?: string | undefined;
|
|
39
36
|
private _issueIdCache;
|
|
40
37
|
private _pipelinesCache?;
|
|
41
38
|
private _sprintsCache?;
|
|
42
39
|
private _releasesCache?;
|
|
43
|
-
constructor(repoId: number, workspaceId: string, token?: string
|
|
40
|
+
constructor(repoId: number, workspaceId: string, token?: string);
|
|
41
|
+
readonly repoId: number;
|
|
42
|
+
readonly workspaceId: string;
|
|
43
|
+
readonly token?: string;
|
|
44
44
|
/**
|
|
45
45
|
* Requests to graphql server
|
|
46
46
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command } from '@commander-js/extra-typings';
|
|
2
|
-
import { PackageWalkerItem } from './utils';
|
|
2
|
+
import { PackageWalkerItem } from './utils.ts';
|
|
3
3
|
export declare const registerCommand: (command: Command) => undefined;
|
|
4
4
|
export declare function scanDist({ blocklistedNames }: {
|
|
5
5
|
blocklistedNames?: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Command } from '@commander-js/extra-typings';
|
|
2
|
-
import { PackageWalkerItem } from './utils';
|
|
2
|
+
import { PackageWalkerItem } from './utils.ts';
|
|
3
3
|
export declare const registerCommand: (command: Command) => undefined;
|
|
4
4
|
export declare function scanDist({ blocklistedNames }: {
|
|
5
5
|
blocklistedNames?: string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExecSyncOptionsWithStringEncoding } from 'node:child_process';
|
|
2
|
-
import { MiniPackageJson } from '../packageJson';
|
|
2
|
+
import { MiniPackageJson } from '../packageJson.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Sets the exit code to 1 and prints the error message to stderr.
|
|
5
5
|
* This is used to indicate an error condition in the script.
|
|
@@ -65,6 +65,7 @@ export declare function getAffectedPackages(changed: Iterable<string>, options?:
|
|
|
65
65
|
export declare function isSigint(err: unknown): boolean;
|
|
66
66
|
export declare function getBranchName(): string;
|
|
67
67
|
export declare function getStagedFiles(options?: Partial<ExecSyncOptionsWithStringEncoding>): string[];
|
|
68
|
+
export declare function getModifiedFiles(options?: Partial<ExecSyncOptionsWithStringEncoding>): string[];
|
|
68
69
|
export declare function commitStagedFiles(messages: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): void;
|
|
69
70
|
export declare function pushCommits(options?: Partial<ExecSyncOptionsWithStringEncoding>): void;
|
|
70
71
|
export {};
|
package/dist/commands/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ExecSyncOptionsWithStringEncoding } from 'node:child_process';
|
|
2
|
-
import { MiniPackageJson } from '../packageJson';
|
|
2
|
+
import { MiniPackageJson } from '../packageJson.ts';
|
|
3
3
|
/**
|
|
4
4
|
* Sets the exit code to 1 and prints the error message to stderr.
|
|
5
5
|
* This is used to indicate an error condition in the script.
|
|
@@ -65,6 +65,7 @@ export declare function getAffectedPackages(changed: Iterable<string>, options?:
|
|
|
65
65
|
export declare function isSigint(err: unknown): boolean;
|
|
66
66
|
export declare function getBranchName(): string;
|
|
67
67
|
export declare function getStagedFiles(options?: Partial<ExecSyncOptionsWithStringEncoding>): string[];
|
|
68
|
+
export declare function getModifiedFiles(options?: Partial<ExecSyncOptionsWithStringEncoding>): string[];
|
|
68
69
|
export declare function commitStagedFiles(messages: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): void;
|
|
69
70
|
export declare function pushCommits(options?: Partial<ExecSyncOptionsWithStringEncoding>): void;
|
|
70
71
|
export {};
|
package/dist/index.cjs
CHANGED
|
@@ -43,7 +43,7 @@ async function createFileIfNotExists(filePath, content) {
|
|
|
43
43
|
function findPath(target, startDirectory = process.cwd()) {
|
|
44
44
|
const resolvedStartDirectory = startDirectory.startsWith("file:///") ? path$1.dirname(node_url.fileURLToPath(startDirectory)) : path$1.resolve(startDirectory);
|
|
45
45
|
const parentPath = resolvedStartDirectory.split(path$1.sep);
|
|
46
|
-
while (parentPath.length >
|
|
46
|
+
while (parentPath.length > searchStopIndex) {
|
|
47
47
|
const fullPath = path$1.join(
|
|
48
48
|
...path$1.sep === "/" ? ["/"] : [],
|
|
49
49
|
...parentPath,
|
|
@@ -56,10 +56,11 @@ function findPath(target, startDirectory = process.cwd()) {
|
|
|
56
56
|
}
|
|
57
57
|
return void 0;
|
|
58
58
|
}
|
|
59
|
+
const searchStopIndex = path$1.sep === "/" ? 2 : 0;
|
|
59
60
|
async function asyncFindPath(target, startDirectory = process.cwd()) {
|
|
60
61
|
const resolvedStartDirectory = startDirectory.startsWith("file:///") ? path$1.dirname(node_url.fileURLToPath(startDirectory)) : path$1.resolve(startDirectory);
|
|
61
62
|
const parentPath = resolvedStartDirectory.split(path$1.sep);
|
|
62
|
-
while (parentPath.length >
|
|
63
|
+
while (parentPath.length > searchStopIndex) {
|
|
63
64
|
const fullPath = path$1.join(
|
|
64
65
|
...path$1.sep === "/" ? ["/"] : [],
|
|
65
66
|
...parentPath,
|
|
@@ -140,8 +141,8 @@ function retrievePackageJson(location, cache = true) {
|
|
|
140
141
|
}
|
|
141
142
|
return JSON.parse(node_fs.readFileSync(packageJsonPath, "utf-8"));
|
|
142
143
|
}
|
|
143
|
-
async function asyncRetrievePackageJson(location
|
|
144
|
-
const packageJsonPath = path.resolve(location, "package.json");
|
|
144
|
+
async function asyncRetrievePackageJson(location) {
|
|
145
|
+
const packageJsonPath = location ? path.resolve(location, "package.json") : rootPackageJsonLocation ??= findPath("package.json");
|
|
145
146
|
if (packageJsonPath in cachedPackageJson) {
|
|
146
147
|
return cachedPackageJson[packageJsonPath];
|
|
147
148
|
}
|
|
@@ -215,7 +216,7 @@ function vitePresetPlugin({
|
|
|
215
216
|
build: {
|
|
216
217
|
// REFACTOR: get this from tsconfig
|
|
217
218
|
// It's a best practice to let the final bundler down-level as needed.
|
|
218
|
-
target: target ?? "
|
|
219
|
+
target: target ?? "es2024"
|
|
219
220
|
},
|
|
220
221
|
define: env.mode === "test" ? {
|
|
221
222
|
"process.env.ESRI_INTERNAL": true
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { existsAsync, sh, createFileIfNotExists, findPath, asyncFindPath } from './file';
|
|
2
|
-
export { gitIgnoreFileToGlobs, gitIgnoreToGlob } from './glob';
|
|
3
|
-
export { isPosix, toPosixPathSeparators, normalizePath, toSystemPathSeparators, getCwd, path } from './path';
|
|
4
|
-
export { type MiniPackageJson, retrievePackageJson, asyncRetrievePackageJson, fetchPackageLocation, detectPackageManager, } from './packageJson';
|
|
5
|
-
export { vitePresetPlugin, type DependencyManagementOptions, externalizeDependencies } from './vite';
|
|
1
|
+
export { existsAsync, sh, createFileIfNotExists, findPath, asyncFindPath } from './file.ts';
|
|
2
|
+
export { gitIgnoreFileToGlobs, gitIgnoreToGlob } from './glob.ts';
|
|
3
|
+
export { isPosix, toPosixPathSeparators, normalizePath, toSystemPathSeparators, getCwd, path } from './path.ts';
|
|
4
|
+
export { type MiniPackageJson, retrievePackageJson, asyncRetrievePackageJson, fetchPackageLocation, detectPackageManager, } from './packageJson.ts';
|
|
5
|
+
export { vitePresetPlugin, type DependencyManagementOptions, externalizeDependencies } from './vite.ts';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { existsAsync, sh, createFileIfNotExists, findPath, asyncFindPath } from './file';
|
|
2
|
-
export { gitIgnoreFileToGlobs, gitIgnoreToGlob } from './glob';
|
|
3
|
-
export { isPosix, toPosixPathSeparators, normalizePath, toSystemPathSeparators, getCwd, path } from './path';
|
|
4
|
-
export { type MiniPackageJson, retrievePackageJson, asyncRetrievePackageJson, fetchPackageLocation, detectPackageManager, } from './packageJson';
|
|
5
|
-
export { vitePresetPlugin, type DependencyManagementOptions, externalizeDependencies } from './vite';
|
|
1
|
+
export { existsAsync, sh, createFileIfNotExists, findPath, asyncFindPath } from './file.ts';
|
|
2
|
+
export { gitIgnoreFileToGlobs, gitIgnoreToGlob } from './glob.ts';
|
|
3
|
+
export { isPosix, toPosixPathSeparators, normalizePath, toSystemPathSeparators, getCwd, path } from './path.ts';
|
|
4
|
+
export { type MiniPackageJson, retrievePackageJson, asyncRetrievePackageJson, fetchPackageLocation, detectPackageManager, } from './packageJson.ts';
|
|
5
|
+
export { vitePresetPlugin, type DependencyManagementOptions, externalizeDependencies } from './vite.ts';
|
package/dist/index.js
CHANGED
|
@@ -19,7 +19,7 @@ async function createFileIfNotExists(filePath, content) {
|
|
|
19
19
|
function findPath(target, startDirectory = process.cwd()) {
|
|
20
20
|
const resolvedStartDirectory = startDirectory.startsWith("file:///") ? dirname(fileURLToPath(startDirectory)) : resolve(startDirectory);
|
|
21
21
|
const parentPath = resolvedStartDirectory.split(sep);
|
|
22
|
-
while (parentPath.length >
|
|
22
|
+
while (parentPath.length > searchStopIndex) {
|
|
23
23
|
const fullPath = join(
|
|
24
24
|
...sep === "/" ? ["/"] : [],
|
|
25
25
|
...parentPath,
|
|
@@ -32,10 +32,11 @@ function findPath(target, startDirectory = process.cwd()) {
|
|
|
32
32
|
}
|
|
33
33
|
return void 0;
|
|
34
34
|
}
|
|
35
|
+
const searchStopIndex = sep === "/" ? 2 : 0;
|
|
35
36
|
async function asyncFindPath(target, startDirectory = process.cwd()) {
|
|
36
37
|
const resolvedStartDirectory = startDirectory.startsWith("file:///") ? dirname(fileURLToPath(startDirectory)) : resolve(startDirectory);
|
|
37
38
|
const parentPath = resolvedStartDirectory.split(sep);
|
|
38
|
-
while (parentPath.length >
|
|
39
|
+
while (parentPath.length > searchStopIndex) {
|
|
39
40
|
const fullPath = join(
|
|
40
41
|
...sep === "/" ? ["/"] : [],
|
|
41
42
|
...parentPath,
|
|
@@ -116,8 +117,8 @@ function retrievePackageJson(location, cache = true) {
|
|
|
116
117
|
}
|
|
117
118
|
return JSON.parse(readFileSync(packageJsonPath, "utf-8"));
|
|
118
119
|
}
|
|
119
|
-
async function asyncRetrievePackageJson(location
|
|
120
|
-
const packageJsonPath = path.resolve(location, "package.json");
|
|
120
|
+
async function asyncRetrievePackageJson(location) {
|
|
121
|
+
const packageJsonPath = location ? path.resolve(location, "package.json") : rootPackageJsonLocation ??= findPath("package.json");
|
|
121
122
|
if (packageJsonPath in cachedPackageJson) {
|
|
122
123
|
return cachedPackageJson[packageJsonPath];
|
|
123
124
|
}
|
|
@@ -191,7 +192,7 @@ function vitePresetPlugin({
|
|
|
191
192
|
build: {
|
|
192
193
|
// REFACTOR: get this from tsconfig
|
|
193
194
|
// It's a best practice to let the final bundler down-level as needed.
|
|
194
|
-
target: target ?? "
|
|
195
|
+
target: target ?? "es2024"
|
|
195
196
|
},
|
|
196
197
|
define: env.mode === "test" ? {
|
|
197
198
|
"process.env.ESRI_INTERNAL": true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/components-build-utils",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.68",
|
|
4
4
|
"description": "Collection of common internal build-time patterns and utilities for ArcGIS Maps SDK for JavaScript components.",
|
|
5
5
|
"homepage": "https://developers.arcgis.com/javascript/latest/",
|
|
6
6
|
"type": "module",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
24
24
|
"dependencies": {
|
|
25
|
+
"@actions/core": "^1.11.0",
|
|
25
26
|
"@commander-js/extra-typings": "^14.0.0",
|
|
26
27
|
"chalk": "^5.4.1",
|
|
27
28
|
"commander": "^14.0.0",
|