Closed cherryblossom000 closed 4 years ago
@cherryblossom000
It's reasonable and doesn't look complicated. Should we implement this proposal or you'd like to make a pull request?
I suggest to create a separate file and also to move indent resolver into it.
recognizeFormat = (content) => {
const indent = ...
const eofTrailing = ...
return {
indent,
eofTrailing
}
}
@antongolub I'll work on this.
Great. I'm going to make a small fix: msr doesn't seem to update optional dependencies.
@cherryblossom000
I fixed the manifest patching: now scopes are not added to package.json
if they were not there initially.
:tada: This issue has been resolved in version 2.4.4 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
I had a
package.json
like this:The file had a trailing newline.
After triggering a release, multi-semantic-release converted
package.json
to:without a trailing newline.
I know this isn't that important — I could always make a plugin that removes these fields and adds the trailing newline — but it would be nice for multi-semantic-release to preserve trailing newlines and remove empty dependency fields before writing
package.json
because I commit the updatedpackage.json
using @semantic-release/git.