Updating `locals` of `component.json` in `path`