@arcgis/components-build-utils 5.1.0-next.111 → 5.1.0-next.113
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/README.md +2 -2
- package/dist/index.cjs +13 -6
- package/dist/index.js +13 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,5 +8,5 @@ It is not intended to be used directly, but rather used as a dependency by other
|
|
|
8
8
|
|
|
9
9
|
## License
|
|
10
10
|
|
|
11
|
-
This package is licensed under the terms described in the `LICENSE.md` file, located in the root of the package, and at https://js.arcgis.com/5.
|
|
12
|
-
For third party notices, see https://js.arcgis.com/5.
|
|
11
|
+
This package is licensed under the terms described in the `LICENSE.md` file, located in the root of the package, and at https://js.arcgis.com/5.1/LICENSE.txt.
|
|
12
|
+
For third party notices, see https://js.arcgis.com/5.1/third-party-notices.txt.
|
package/dist/index.cjs
CHANGED
|
@@ -44,13 +44,20 @@ function sh(command, options = {}) {
|
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
function sp(command, args, options = {}) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
47
|
+
const normalizedOptions = { encoding: "utf8", ...options };
|
|
48
|
+
const result = node_child_process.spawnSync(command, args, normalizedOptions);
|
|
49
|
+
if (result.error) {
|
|
50
|
+
throw result.error;
|
|
51
|
+
}
|
|
52
|
+
const output = `${result.stdout ?? ""}${result.stderr ?? ""}`.trim();
|
|
53
|
+
const exitCode = result.status ?? 0;
|
|
54
|
+
if (exitCode !== 0) {
|
|
55
|
+
throw new Error(
|
|
56
|
+
`Command failed with exit code ${String(exitCode)}: ${command} ${args.join(" ")}
|
|
57
|
+
${output}`.trim()
|
|
58
|
+
);
|
|
53
59
|
}
|
|
60
|
+
return output;
|
|
54
61
|
}
|
|
55
62
|
async function asyncSh(command, options = {}) {
|
|
56
63
|
const normalizedOptions = { encoding: "utf8", ...options };
|
package/dist/index.js
CHANGED
|
@@ -20,13 +20,20 @@ function sh(command, options = {}) {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
function sp(command, args, options = {}) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
23
|
+
const normalizedOptions = { encoding: "utf8", ...options };
|
|
24
|
+
const result = spawnSync(command, args, normalizedOptions);
|
|
25
|
+
if (result.error) {
|
|
26
|
+
throw result.error;
|
|
27
|
+
}
|
|
28
|
+
const output = `${result.stdout ?? ""}${result.stderr ?? ""}`.trim();
|
|
29
|
+
const exitCode = result.status ?? 0;
|
|
30
|
+
if (exitCode !== 0) {
|
|
31
|
+
throw new Error(
|
|
32
|
+
`Command failed with exit code ${String(exitCode)}: ${command} ${args.join(" ")}
|
|
33
|
+
${output}`.trim()
|
|
34
|
+
);
|
|
29
35
|
}
|
|
36
|
+
return output;
|
|
30
37
|
}
|
|
31
38
|
async function asyncSh(command, options = {}) {
|
|
32
39
|
const normalizedOptions = { encoding: "utf8", ...options };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/components-build-utils",
|
|
3
|
-
"version": "5.1.0-next.
|
|
3
|
+
"version": "5.1.0-next.113",
|
|
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",
|