read output dir from package.json, change "name" to "project" in package.json