There is a bug when adding the host, the runtimeDependency npm install aws sdk will fail to run when the process.env path is not the same as global environment.
What was the solution? (How)
Find an open source lib (MIT license) to solve the Electron process path issue. https://github.com/sindresorhus/fix-path
Since this project has been updated to version 4.0 for pure ESM so we currently use the version 3.0 which supports CJS as well.
What is the impact of this change? (Focus on the customer experience)
By this change, we solve the bug so that customer don't have to manually install aws-sdk in the Editor Workspace directory.
Are you adding any new dependencies to the system?
What was the problem/requirement? (What/Why)
There is a bug when adding the host, the runtimeDependency
npm install aws sdk
will fail to run when the process.env path is not the same as global environment.What was the solution? (How)
Find an open source lib (MIT license) to solve the Electron process path issue. https://github.com/sindresorhus/fix-path Since this project has been updated to version 4.0 for pure ESM so we currently use the version 3.0 which supports CJS as well.
What is the impact of this change? (Focus on the customer experience)
By this change, we solve the bug so that customer don't have to manually install aws-sdk in the Editor Workspace directory.
Are you adding any new dependencies to the system?
A MIT open source library: fix-path
How were these changes tested?
Manually test to check whether there is no error and aws sdk can be installed successfully.
How should reviewers test?
Package.json
file to check whetheraws-sdk
was installed as a dependency.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.