fix: do not escape newlines in scripts

This commit is contained in:
Karl-Philipp Wulfert
2019-04-16 10:22:29 +02:00
parent 9bd2ba3767
commit 77bed076bb

View File

@@ -194,7 +194,7 @@ Object.keys(SCRIPTS).forEach((scriptName) => {
// check if script exists
if (typeof scriptToCheck === 'undefined' || commander.replace) {
packageJson.scripts[scriptName] = SCRIPTS[scriptName].replace('\n', '\\n');
packageJson.scripts[scriptName] = SCRIPTS[scriptName];
packageJsonChanged = true;