@arcgis/components-build-utils 4.34.0-next.75 → 4.34.0-next.76

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.
@@ -0,0 +1,2 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (program: Command) => Command;
@@ -0,0 +1,2 @@
1
+ import { Command } from '@commander-js/extra-typings';
2
+ export declare const registerCommand: (program: Command) => Command;
@@ -5,5 +5,4 @@ export declare const gb: number;
5
5
  * Setting this decreased total run time from 1m40s to 1m05s
6
6
  */
7
7
  export declare const highWaterMark: number;
8
- export declare function exit(command: string): never;
9
8
  export declare const reOriginalSha: RegExp;
@@ -5,5 +5,4 @@ export declare const gb: number;
5
5
  * Setting this decreased total run time from 1m40s to 1m05s
6
6
  */
7
7
  export declare const highWaterMark: number;
8
- export declare function exit(command: string): never;
9
8
  export declare const reOriginalSha: RegExp;
@@ -1,4 +1,34 @@
1
1
  import { ExecSyncOptionsWithStringEncoding } from 'node:child_process';
2
+ import { MiniPackageJson } from '../packageJson';
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
+ */
2
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 exit(...messages: unknown[]): never;
3
13
  export declare function sh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): string;
4
14
  export declare function findRepositoryRoot(): string;
15
+ /**
16
+ * Returns a list of all package.json paths in the workspace,
17
+ * as resolved from workspaces in root package.json
18
+ */
19
+ export declare function getWorkspacesPackagePaths(includeRootPackage?: boolean): Promise<string[]>;
20
+ type PackageWalkerItem = {
21
+ path: string;
22
+ content: MiniPackageJson;
23
+ };
24
+ type PackageWalkerResult<T> = {
25
+ path: string;
26
+ content: T;
27
+ };
28
+ /**
29
+ * Walks through all workspace packages, calling the callback for each.
30
+ * If the callback returns a non-null value, it is included in the results.
31
+ * If the callback returns null or undefined, that package is not included in the results.
32
+ */
33
+ export declare function workspacesPackageWalker<T = void>(callback: (item: PackageWalkerItem) => Promise<T | undefined> | T | undefined, includeRootPackage?: boolean): Promise<PackageWalkerResult<T>[]>;
34
+ export {};
@@ -1,4 +1,34 @@
1
1
  import { ExecSyncOptionsWithStringEncoding } from 'node:child_process';
2
+ import { MiniPackageJson } from '../packageJson';
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
+ */
2
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 exit(...messages: unknown[]): never;
3
13
  export declare function sh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): string;
4
14
  export declare function findRepositoryRoot(): string;
15
+ /**
16
+ * Returns a list of all package.json paths in the workspace,
17
+ * as resolved from workspaces in root package.json
18
+ */
19
+ export declare function getWorkspacesPackagePaths(includeRootPackage?: boolean): Promise<string[]>;
20
+ type PackageWalkerItem = {
21
+ path: string;
22
+ content: MiniPackageJson;
23
+ };
24
+ type PackageWalkerResult<T> = {
25
+ path: string;
26
+ content: T;
27
+ };
28
+ /**
29
+ * Walks through all workspace packages, calling the callback for each.
30
+ * If the callback returns a non-null value, it is included in the results.
31
+ * If the callback returns null or undefined, that package is not included in the results.
32
+ */
33
+ export declare function workspacesPackageWalker<T = void>(callback: (item: PackageWalkerItem) => Promise<T | undefined> | T | undefined, includeRootPackage?: boolean): Promise<PackageWalkerResult<T>[]>;
34
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/components-build-utils",
3
- "version": "4.34.0-next.75",
3
+ "version": "4.34.0-next.76",
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",