Get the version of a package from its package.json, where target is the package directory.
package.json
target