Now, `yarn add` and `yarn upgrade` will write exact versions to package.json and yarn.lock. See commit fadbbeb (https://github.com/prettier/prettier/pull/291)
fadbbeb