Giter Site home page Giter Site logo

Comments (6)

gr2m avatar gr2m commented on July 19, 2024 1

Hi @byCedric, thanks for the kind words!

Just so I understand correctly, this issue is about the update of the package.json file in this line?

https://github.com/semantic-release/npm/blob/master/lib/update-package-version.js#L10

I think we can fix that to keep the indentation style. E.g. we could use https://www.npmjs.com/package/json-in-place, that’s what Greenkeeper is using to update the package.json files in its pull requests. Wanna send a pull request for that? Maybe add a test that the indentation style is indeed not changed so we don’t break it by accident in future

from npm.

pvdlg avatar pvdlg commented on July 19, 2024 1

Oh sorry I was working on that for the last hour or so and I already published a fix: #71.

I'm using detect-indent and detect-newline similarly to what npm does: https://github.com/npm/npm/blob/latest/lib/install/save.js#L54

from npm.

byCedric avatar byCedric commented on July 19, 2024

Hi Gregor, yes exactly! When writing to either the package.json, package-lock.json or shrinkwrap.json the code styling will be reset to two spaces indentation. I'll create a PR with the json-in-place package now!

from npm.

byCedric avatar byCedric commented on July 19, 2024

Haha, no worries, I was just starting. Thanks for giving a notice! NPM is also the one I looked up on how they do it 😬

from npm.

semantic-release-bot avatar semantic-release-bot commented on July 19, 2024

πŸŽ‰ This issue has been resolved in version 3.3.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

from npm.

byCedric avatar byCedric commented on July 19, 2024

Thanks guys, really appreciate the change! ❀️

from npm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.