clean package.json, add optionalDeps