Write package.json according to plugins list