I had same situation, none of solutions was relevant for me. At the end, I added package.json to lib-a and that solve the problem.