fix(playground): use `prVersion` (#3613)
parent
a041914551
commit
0af436cd47
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -103,7 +103,7 @@ self.onmessage = function(message) {
|
|||
doc: doc,
|
||||
ast: ast,
|
||||
formatted2: formatted2,
|
||||
version: prettier.version
|
||||
version: prettier.prVersion || prettier.version
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue