fix(playground): use prVersion (#3613)
This commit is contained in:
1 parent
a041914551
commit
0af436cd47
2 files changed
+2
-2
No files matched your search
@@ -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
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user