@faable/faable 1.5.8 → 1.5.9
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.
|
@@ -6,7 +6,7 @@ import { log } from '../../../log.js';
|
|
|
6
6
|
|
|
7
7
|
const build_node = async (app, options) => {
|
|
8
8
|
// log.info(`🚀 Build Toolchain ${app.name} [${app.id}]`);
|
|
9
|
-
const { workdir, runtime, env_vars } = options;
|
|
9
|
+
const { workdir, runtime, env_vars = [] } = options;
|
|
10
10
|
if (!runtime.version) {
|
|
11
11
|
throw new Error("Runtime version not specified for node");
|
|
12
12
|
}
|
package/dist/lib/cmd.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { spawn } from 'promisify-child-process';
|
|
2
|
+
import { log } from '../log.js';
|
|
2
3
|
|
|
3
4
|
const cmd = async (cmd, config) => {
|
|
4
5
|
// Defaults
|
|
@@ -24,8 +25,8 @@ const cmd = async (cmd, config) => {
|
|
|
24
25
|
return result;
|
|
25
26
|
}
|
|
26
27
|
catch (error) {
|
|
27
|
-
out_data.map((b) => b.toString()).join("\n");
|
|
28
|
-
|
|
28
|
+
const output = out_data.map((b) => b.toString()).join("\n");
|
|
29
|
+
log.error(output);
|
|
29
30
|
throw new Error(`Command error: ${cmd}`);
|
|
30
31
|
}
|
|
31
32
|
};
|