From 81a5f1a78cfdab27589e13165e13670cb3a3a45e Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 3 Sep 2020 10:56:06 +0200 Subject: [PATCH] replace package.json with updated version --- gulpfile.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index d6f4315e27..fa2d0690c8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -55,10 +55,7 @@ task('syncLibVersions', async function () { libs.forEach(lib => { const distPackageJSON = require(__dirname + '/dist/libs/' + lib + '/package.json') - const libVersion = distPackageJSON.version - let packageJSON = require(__dirname + '/libs/' + lib + '/package.json') - packageJSON.version = libVersion - fs.writeFileSync(__dirname + '/libs/' + lib + '/package.json', JSON.stringify(packageJSON, null, 2), 'utf8') + fs.writeFileSync(__dirname + '/libs/' + lib + '/package.json', JSON.stringify(distPackageJSON, null, 2), 'utf8') }) await Promise.resolve(); }); \ No newline at end of file