I'm currently migrating a monolith Angular app into an Angular NX monorepo. The footer component in the monolith accesses the 'version' in the package.json. In the monorepo, the footer component lives in a lib, but I have no idea how to access the package.json file. Can someone please tell me how
Asked
Active
Viewed 86 times
1
-
Any of these should work for you: https://stackoverflow.com/questions/9153571/is-there-a-way-to-get-version-from-package-json-in-nodejs-code – Joosep Parts Mar 23 '22 at 05:35
-
Unfortunately not. I can't access the files in the root folder of the monorepo from my lib – CaptainMorgan Mar 23 '22 at 22:12