mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
![Benjamin Pasero](/assets/img/avatar_default.png)
* Use `playwright` for desktop smoke tests * fix distro issues * tests - enable prefs tests for web
23 lines
977 B
JavaScript
23 lines
977 B
JavaScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
//@ts-check
|
|
'use strict';
|
|
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
|
|
const packageDir = path.dirname(__dirname);
|
|
const root = path.dirname(path.dirname(path.dirname(__dirname)));
|
|
|
|
const rootPackageJsonFile = path.join(root, 'package.json');
|
|
const thisPackageJsonFile = path.join(packageDir, 'package.json');
|
|
const rootPackageJson = JSON.parse(fs.readFileSync(rootPackageJsonFile, 'utf8'));
|
|
const thisPackageJson = JSON.parse(fs.readFileSync(thisPackageJsonFile, 'utf8'));
|
|
|
|
thisPackageJson.version = rootPackageJson.version;
|
|
|
|
fs.writeFileSync(thisPackageJsonFile, JSON.stringify(thisPackageJson, null, ' '));
|