@arcgis/components-build-utils 5.0.0-next.67 → 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/utils.d.cts +1 -0
- package/dist/commands/utils.d.ts +1 -0
- package/dist/index.cjs +5 -4
- package/dist/index.js +5 -4
- 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;
|
|
@@ -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
|
@@ -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
|
}
|
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
|
}
|
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",
|