-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
Hi! 👋
Firstly, thanks for your work on this project! 🙂
I was running into problems with jsii-srcmak on CI on terraform-cdk where it would go OOM. When debugging this we found that calling JSII directly on the same source ran with a third of the memory and no issues.
Here is the diff that solved the problem for me, I aligned the helper in jsii-pacmak:
diff --git a/node_modules/jsii-srcmak/lib/util.js b/node_modules/jsii-srcmak/lib/util.js
index f2cc7e4..69ca1a3 100644
--- a/node_modules/jsii-srcmak/lib/util.js
+++ b/node_modules/jsii-srcmak/lib/util.js
@@ -47,6 +47,8 @@ async function exec(moduleName, args = [], options = {}) {
const opts = {
...options,
stdio: ['inherit', 'pipe', 'pipe'],
+ shell: true,
+ env: { ...process.env }
};
const child = (0, child_process_1.spawn)(process.execPath, [moduleName, ...args], opts);
const data = new Array();
Would you be open to a PR including this change?
Metadata
Metadata
Assignees
Labels
No labels