3465: Don't disable proposed features for nightly r=matklad a=matklad



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-03-04 20:36:07 +00:00 committed by GitHub
commit 8c07ffcd76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,12 +30,12 @@ fn dist_client(nightly: bool) -> Result<()> {
let mut package_json = original_package_json.replace(r#""enableProposedApi": true,"#, r#""#);
if nightly {
package_json = package_json
.replace(r#""name": "rust-analyzer""#, r#""name": "rust-analyzer-nightly""#)
.replace(
package_json = package_json.replace(
r#""displayName": "rust-analyzer""#,
r#""displayName": "rust-analyzer nightly""#,
);
} else {
package_json = original_package_json.replace(r#""enableProposedApi": true,"#, r#""#);
}
fs2::write(package_json_path, package_json)?;