@joshmossas/nx-cargo 0.6.4 → 0.6.5

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/index.cjs CHANGED
@@ -90,10 +90,14 @@ function mapCargoProjects(ctx, packages) {
90
90
  }
91
91
  function getCargoMetadata(cwd) {
92
92
  const availableMemory = os__namespace.freemem();
93
+ const cmd = "cargo metadata --format-version=1 --no-deps";
94
+ console.info(`[nx-json] Executing: "${cmd}"`);
93
95
  const metadata = cp__namespace.execSync("cargo metadata --format-version=1 --no-deps", {
94
96
  encoding: "utf8",
95
97
  maxBuffer: availableMemory,
96
- cwd
98
+ cwd,
99
+ env: { ...process.env },
100
+ stdio: ["ignore", "pipe", "pipe"]
97
101
  });
98
102
  return JSON.parse(metadata);
99
103
  }
package/dist/index.mjs CHANGED
@@ -71,10 +71,14 @@ function mapCargoProjects(ctx, packages) {
71
71
  }
72
72
  function getCargoMetadata(cwd) {
73
73
  const availableMemory = os.freemem();
74
+ const cmd = "cargo metadata --format-version=1 --no-deps";
75
+ console.info(`[nx-json] Executing: "${cmd}"`);
74
76
  const metadata = cp.execSync("cargo metadata --format-version=1 --no-deps", {
75
77
  encoding: "utf8",
76
78
  maxBuffer: availableMemory,
77
- cwd
79
+ cwd,
80
+ env: { ...process.env },
81
+ stdio: ["ignore", "pipe", "pipe"]
78
82
  });
79
83
  return JSON.parse(metadata);
80
84
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@joshmossas/nx-cargo",
3
3
  "private": false,
4
- "version": "0.6.4",
4
+ "version": "0.6.5",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.mjs",
7
7
  "repository": {
@@ -160,10 +160,14 @@ function mapCargoProjects(ctx: Context, packages: Map<CargoId, CargoPackage>) {
160
160
  */
161
161
  function getCargoMetadata(cwd: string): CargoMetadata {
162
162
  const availableMemory = os.freemem();
163
+ const cmd = "cargo metadata --format-version=1 --no-deps";
164
+ console.info(`[nx-json] Executing: "${cmd}"`);
163
165
  const metadata = cp.execSync("cargo metadata --format-version=1 --no-deps", {
164
166
  encoding: "utf8",
165
167
  maxBuffer: availableMemory,
166
168
  cwd: cwd,
169
+ env: { ...process.env },
170
+ stdio: ["ignore", "pipe", "pipe"],
167
171
  });
168
172
 
169
173
  return JSON.parse(metadata);