@arcgis/node-toolkit 5.2.0-next.60 → 5.2.0-next.61

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.
Files changed (2) hide show
  1. package/dist/shell.js +7 -2
  2. package/package.json +1 -1
package/dist/shell.js CHANGED
@@ -91,20 +91,25 @@ async function runCommand(command, args, options = {}) {
91
91
  }
92
92
  function collectOutputSync(command, args, options = {}) {
93
93
  const fixedOptions = fixPnpmUsage(command, options);
94
+ const { input } = fixedOptions;
94
95
  const result = spawnSync(command, args, {
95
96
  encoding: "utf8",
96
97
  ...fixedOptions,
97
- stdio: ["ignore", "pipe", "inherit"]
98
+ stdio: [input === void 0 ? "ignore" : "pipe", "pipe", "inherit"]
98
99
  });
99
100
  assertSyncResultSuccess(command, args, result);
100
101
  return (result.stdout ?? "").trim();
101
102
  }
102
103
  async function collectOutput(command, args, options = {}) {
103
104
  const fixedOptions = fixPnpmUsage(command, options);
105
+ const { input } = fixedOptions;
104
106
  const child = spawn(command, args, {
105
107
  ...fixedOptions,
106
- stdio: ["ignore", "pipe", "inherit"]
108
+ stdio: [input === void 0 ? "ignore" : "pipe", "pipe", "inherit"]
107
109
  });
110
+ if (input !== void 0) {
111
+ child.stdin?.end(input);
112
+ }
108
113
  const stdoutChunks = [];
109
114
  child.stdout?.on(
110
115
  "data",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/node-toolkit",
3
- "version": "5.2.0-next.60",
3
+ "version": "5.2.0-next.61",
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",