Get Version from package.json in ionic3 (typescript)


#1

Hi,

I’ve been trying a numerous set of methods to retrieve version from my app’s package.json file (which is easy to update via npm version patch) …

require is always not found

I dont know how to reference/grab the file content into a Typescript object.

Any idea?


#2

The package.json file itself is not part of the build.