diff --git a/lib/manager/composer/lock-file.js b/lib/manager/composer/lock-file.js
index bc9bc77f1fb15b6795a1ed8d9085d56be30bbbad..f679bab58f084f5e43bc652eea55811e8c4b4a9a 100644
--- a/lib/manager/composer/lock-file.js
+++ b/lib/manager/composer/lock-file.js
@@ -31,12 +31,7 @@ async function getLockFile(
   let stderr;
   try {
     const localPackageFileName = upath.join(config.localDir, packageFileName);
-    const newPackageFileParsed = JSON.parse(newPackageFileContent);
-    delete newPackageFileParsed.scripts;
-    await fs.outputFile(
-      localPackageFileName,
-      JSON.stringify(newPackageFileParsed)
-    );
+    await fs.outputFile(localPackageFileName, newPackageFileContent);
     const localLockFileName = upath.join(config.localDir, lockFileName);
     if (!config.gitFs) {
       await fs.outputFile(localLockFileName, existingLockFileContent);