@arcgis/components-build-utils 4.34.0-next.117 → 4.34.0-next.119
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,29 @@
|
|
|
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
|
+
}>;
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
}>;
|
|
@@ -9,7 +9,7 @@ export declare function error(...messages: unknown[]): void;
|
|
|
9
9
|
* Console error the messages and exits the process with code 1.
|
|
10
10
|
* This is used to indicate a fatal error that cannot be recovered from.
|
|
11
11
|
*/
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function errorAndExit(...messages: unknown[]): never;
|
|
13
13
|
export declare function sh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): string;
|
|
14
14
|
export declare function findRepositoryRoot(): string;
|
|
15
15
|
export declare function isURL(source: string): boolean;
|
|
@@ -32,4 +32,8 @@ type PackageWalkerResult<T> = {
|
|
|
32
32
|
* If the callback returns null or undefined, that package is not included in the results.
|
|
33
33
|
*/
|
|
34
34
|
export declare function workspacesPackageWalker<T = void>(callback: (item: PackageWalkerItem) => Promise<T | undefined> | T | undefined, includeRootPackage?: boolean): Promise<PackageWalkerResult<T>[]>;
|
|
35
|
+
/**
|
|
36
|
+
* Helper to check if an error is a SIGINT (interrupt) error.
|
|
37
|
+
*/
|
|
38
|
+
export declare function isSigint(err: unknown): boolean;
|
|
35
39
|
export {};
|
package/dist/commands/utils.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare function error(...messages: unknown[]): void;
|
|
|
9
9
|
* Console error the messages and exits the process with code 1.
|
|
10
10
|
* This is used to indicate a fatal error that cannot be recovered from.
|
|
11
11
|
*/
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function errorAndExit(...messages: unknown[]): never;
|
|
13
13
|
export declare function sh(command: string, options?: Partial<ExecSyncOptionsWithStringEncoding>): string;
|
|
14
14
|
export declare function findRepositoryRoot(): string;
|
|
15
15
|
export declare function isURL(source: string): boolean;
|
|
@@ -32,4 +32,8 @@ type PackageWalkerResult<T> = {
|
|
|
32
32
|
* If the callback returns null or undefined, that package is not included in the results.
|
|
33
33
|
*/
|
|
34
34
|
export declare function workspacesPackageWalker<T = void>(callback: (item: PackageWalkerItem) => Promise<T | undefined> | T | undefined, includeRootPackage?: boolean): Promise<PackageWalkerResult<T>[]>;
|
|
35
|
+
/**
|
|
36
|
+
* Helper to check if an error is a SIGINT (interrupt) error.
|
|
37
|
+
*/
|
|
38
|
+
export declare function isSigint(err: unknown): boolean;
|
|
35
39
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/components-build-utils",
|
|
3
|
-
"version": "4.34.0-next.
|
|
3
|
+
"version": "4.34.0-next.119",
|
|
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",
|
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
"commander": "^14.0.0",
|
|
28
28
|
"fast-xml-parser": "^5.2.5",
|
|
29
29
|
"glob": "^11.0.3",
|
|
30
|
+
"ora": "^8.2.0",
|
|
31
|
+
"p-limit": "^7.1.1",
|
|
30
32
|
"semver": "^7.7.2",
|
|
31
33
|
"split2": "^4.2.0",
|
|
32
34
|
"tslib": "^2.8.1",
|