-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update Electron dependencies, pin [email protected]
Also ran yarn upgrade, to also update the other dependencies in the repo that might benefit, following the update of the Electron-related dependencies. With recent Theia, the rebuilding of the native dependencies for Electron does not work unless dependency "nan" is pinned to v2.18.0. For that reason, that dependency is added to this repo's root package.json's resolutions block. This issue highlighted that we do not perform a full build of the Electron app by default, leaving the rebuilding of the native dependencies (theia rebuild ...) to be done before starting the Electron app or packaging it. In consequence, it took a while to notice there was a problem with Electron once we upgraded to Theia v1.52.0. To address the above, I propose we adopt a way to build similar to what's used in Theia Blueprint and other Theia apps where both browser and electron are present: always rebuild the native dependencies as part of the base build. Also, in the rebuild command, use the current directory as "cache-root" so that both versions of the native dependencies modules can co-exist on disk, and need not be rebuilt / reverted each time we switch from one version of the example app to the other, as it is today. This adds ~30s to the build (running "yarn" in the repo root), but also permits to omit calling "rebuild" on the apps, e.g. before starting them. Alo, update Jest test snapshots - there is a slight difference in the generated HTML code following the minor ag-grid update in this commit. Signed-off-by: Marc Dumais <[email protected]>
- Loading branch information
1 parent
b7b0bcb
commit 1915c36
Showing
6 changed files
with
393 additions
and
405 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.