Describe the feature
Similar to how one can specify the runtime via JSII_RUNTIME, there should also be support for providing an explicit location for the node entrypoint with fallback to searching the path.
Use Case
For my particular use case, I'm writing bazel rules to handle executing cdk apps written in arbitrary languages. In this case, manipulating the path to ensure the correct node entrypoint is present and has the correct priority is problematic and non-standard across language_binary targets. By comparison, having an explicit environment variable for setting the node entrypoint would be straightforward to support.
Proposed Solution
Add a JSII_NODE environment variable option to specify the exact location of the node entrypoint. if unset, fallback to existing behavior of environment lookup.
Other Information
No response
Acknowledgements
CDK version used
2.55.0
Environment details (OS name and version, etc.)
mac/linux
Describe the feature
Similar to how one can specify the runtime via
JSII_RUNTIME, there should also be support for providing an explicit location for the node entrypoint with fallback to searching the path.Use Case
For my particular use case, I'm writing bazel rules to handle executing cdk apps written in arbitrary languages. In this case, manipulating the path to ensure the correct node entrypoint is present and has the correct priority is problematic and non-standard across language_binary targets. By comparison, having an explicit environment variable for setting the node entrypoint would be straightforward to support.
Proposed Solution
Add a
JSII_NODEenvironment variable option to specify the exact location of the node entrypoint. if unset, fallback to existing behavior of environment lookup.Other Information
No response
Acknowledgements
CDK version used
2.55.0
Environment details (OS name and version, etc.)
mac/linux