Force the command to only be run from the root of a package by checking for a package.json file