Out of source build

Hi all,

I have question regarding the theia build using lerna.
Has anyone tried for the out of source build.

In my project , there are code from java ,cpp and now theia based ts and js file. For the java and cpp, it is already possible.

Has anyone ever tried it?

I’m sorry I don’t understand what you are trying to do?

I am trying to build out-of-tree , so that the node_modules and the dist directories are location can be specified at e.g., /home/user/theia-out

I don’t think there’s one recommended way of doing it, but as long as you satisfy Yarn’s and Node’s module resolution logic anything would work.

You can clone the repo in the desired location, doing yarn should build everything necessary to be consumed from applications (it will compile all Theia Extensions).

From there please look up how to link packages using Yarn. I think there’s a few options like writing:

  "dependencies": {
    "@theia/core": "link:<path>",