Skip to content

Commit

Permalink
fix(setup): don't use escape for config serializion (#549)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeetiss authored and Eunjae Lee committed Dec 23, 2019
1 parent 02bc3ab commit 59b802d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/shipjs/src/step/setup/addShipConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ export default async ({
print(serialize(config));
} else {
const filePath = path.resolve(dir, 'ship.config.js');
fs.writeFileSync(filePath, `module.exports = ${serialize(config)};`);
fs.writeFileSync(
filePath,
`module.exports = ${serialize(config, { unsafe: true })};`
);
await runPrettier({ filePath, dir });
}

Expand Down

0 comments on commit 59b802d

Please sign in to comment.