I have a class in /cli package to do some of my work. This class has an init method which must run whenever server starts. So I put one line of code in /cli/src/Server.ts file and everything works perfectly. But the problem is, I want to use this class in /packages/nodes-base dir, so when I import it, the nodes-base cannot be built.
In short: How can I import and use other files from other packages ?