Skip to content

Commit 0cebfc3

Browse files
authored
fix: specify cacheRoot for rebuilds (#191)
Sets the 'cacheRoot' of 'theia rebuild' to the root directory as is done in the Theia repository. This is needed so that 'theia rebuild' is able to appropriatly determine the state of the native builds. fixes #190
1 parent 56ae5b9 commit 0cebfc3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/app-browser-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"scripts": {
2323
"bundle": "yarn rebuild && theia build --mode development",
24-
"rebuild": "theia rebuild:browser",
24+
"rebuild": "theia rebuild:browser --cacheRoot ..",
2525
"start": "theia start",
2626
"watch": "yarn rebuild && theia build --watch --mode development"
2727
},

templates/app-electron-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"scripts": {
2525
"bundle": "yarn rebuild && theia build --mode development",
26-
"rebuild": "theia rebuild:electron",
26+
"rebuild": "theia rebuild:electron --cacheRoot ..",
2727
"start": "theia start",
2828
"watch": "yarn rebuild && theia build --watch --mode development"
2929
},

0 commit comments

Comments
 (0)