fix(playground): use prVersion (#3613)

This commit is contained in:
Ika authored and Lucas Azzola committed 2017-12-31 00:54:36 +11:00
1 parent a041914551
commit 0af436cd47
2 files changed
+2 -2

No files matched your search

+1 -1
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");
}
+1 -1
View File
@@ -103,7 +103,7 @@ self.onmessage = function(message) {
doc: doc,
ast: ast,
formatted2: formatted2,
version: prettier.version
version: prettier.prVersion || prettier.version
});
};