fix(playground): use `prVersion` (#3613)

master
Ika 2017-12-30 21:54:36 +08:00 committed by Lucas Azzola
parent a041914551
commit 0af436cd47
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ const parserPaths = parsers.map(stripLanguageDirectory);
if (isPullRequest) {
const pkg = require("../../package.json");
pkg.version = `pr-${process.env.REVIEW_ID}`;
pkg.prVersion = `pr-${process.env.REVIEW_ID}`;
pipe(JSON.stringify(pkg, null, 2)).to("package.json");
shell.exec("node scripts/build/build.js");
}

View File

@ -103,7 +103,7 @@ self.onmessage = function(message) {
doc: doc,
ast: ast,
formatted2: formatted2,
version: prettier.version
version: prettier.prVersion || prettier.version
});
};