Changes "when" dependency in package.json