❗ These commands should be executed in the packages
folder after a successful build. ❗
This folder contains different node packages that will be created for omega-edit
. These packages are:
@omega-edit/server
- The server package foromega-edit
@omega-edit/client
- The client package foromega-edit
(Note:@omega-edit/server
is a dependency of this package)
It is often useful to use these packages while they are in development. To do so, you can use yarn link
to link the package to your
local node_modules
folder in the project that has Ωedit™ dependencies. Here is how to do that:
- In the packages folder, run
yarn link
.
yarn --cwd server link
yarn --cwd client link
- In the project folder that you want to use the packages in, run
yarn link <package-name>
. If the project uses npm, you can runnpm link <package-name>
instead.
yarn link @omega-edit/server @omega-edit/client
-
Now you can use the packages in your project as if they were installed from yarn/npm.
-
When you are done, you can unlink the packages by running
yarn unlink <package-name>
in the project folder. If the project uses npm, you can runnpm unlink <package-name>
instead.
yarn unlink @omega-edit/server @omega-edit/client
- You can also unlink the packages from the package folder by running
yarn unlink
in the package folder.
yarn --cwd server unlink
yarn --cwd client unlink