plugin-updater 1.0.24 → 1.0.25
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.js +8 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -276,13 +276,13 @@ async function deployToExecutionDir(pluginName, executionPath, changed, configDi
|
|
|
276
276
|
if (fs.existsSync(packageJsonPath)) {
|
|
277
277
|
try {
|
|
278
278
|
writeLog(`Running npm install for ${pluginName}`);
|
|
279
|
-
execSync("npm install", { cwd: sourceDir, stdio: "
|
|
279
|
+
execSync("npm install", { cwd: sourceDir, stdio: "pipe" });
|
|
280
280
|
writeLog(`Finished npm install for ${pluginName}`);
|
|
281
281
|
const pkg = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));
|
|
282
282
|
if (pkg.main)
|
|
283
283
|
entryFile = pkg.main;
|
|
284
284
|
if (pkg.scripts?.build) {
|
|
285
|
-
execSync("npm run build", { cwd: sourceDir, stdio: "
|
|
285
|
+
execSync("npm run build", { cwd: sourceDir, stdio: "pipe" });
|
|
286
286
|
writeLog(`Finished npm run build for ${pluginName}`);
|
|
287
287
|
}
|
|
288
288
|
else {
|
|
@@ -291,7 +291,13 @@ async function deployToExecutionDir(pluginName, executionPath, changed, configDi
|
|
|
291
291
|
}
|
|
292
292
|
catch (error) {
|
|
293
293
|
const err = error;
|
|
294
|
+
const stderr = err.stderr ? err.stderr.toString().trim() : "";
|
|
295
|
+
const stdout = err.stdout ? err.stdout.toString().trim() : "";
|
|
294
296
|
writeLog(`Build/Install failed for ${pluginName}: ${err.message}`, true);
|
|
297
|
+
if (stderr)
|
|
298
|
+
writeLog(`npm stderr: ${stderr}`, true);
|
|
299
|
+
if (stdout)
|
|
300
|
+
writeLog(`npm stdout: ${stdout}`, true);
|
|
295
301
|
}
|
|
296
302
|
}
|
|
297
303
|
}
|