Skip to content
Snippets Groups Projects
Commit a77a35e4 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(composer): remove scripts from composer.json

parent 7453ea18
No related branches found
Tags 13.43.5
No related merge requests found
......@@ -24,7 +24,12 @@ async function getLockFile(
let stderr;
try {
const composerJsonFileName = upath.join(tmpDir.path, 'composer.json');
await fs.outputFile(composerJsonFileName, newPackageFileContent);
const newPackageFileParsed = JSON.parse(newPackageFileContent);
delete newPackageFileParsed.scripts;
await fs.outputFile(
composerJsonFileName,
JSON.stringify(newPackageFileParsed)
);
const composerLockFileName = upath.join(tmpDir.path, 'composer.lock');
await fs.outputFile(composerLockFileName, existingComposerLockContent);
const env = { HOME: process.env.HOME, PATH: process.env.PATH };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment