question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bootstrap reformats package-lock.json to use tabs instead of spaces

See original GitHub issue

Expected Behavior

runninglerna bootstrap installs packages and builds, if required it updates package-lock entries, it does not reformat package-lock to use a different spacing method.

Current Behavior

runninglerna bootstrap installs packages and builds and changes some of our packages to use tabs instead of spaces thus leading to +10k LOC.

lerna.json

{
  "packages": [
    "packages/*"
  ],
  "version": "0.5.0",
  "command": {
    "publish": {
      "registry": "https://npm.pkg.github.com",
      "npmClientArgs": [
        "--loglevel",
        "silly"
      ]
    },
    "bootstrap": {
      "npmClientArgs": [
        "--legacy-peer-deps"
      ]
    }
  }
}

Context

I’ve been looking around these specific packages but there is nothing to suggest we have any config that would cause npm to reformat it this way. Running npm i in the package dir reformats it back to using spaces so it suggests that it is something happening within lerna that causes the reformat.

Your Environment

Executable Version
lerna --version VERSION
npm --version 7.5.3
yarn --version VERSION
node --version 15.8.0
OS Version
macOS Sierra 10.15.7

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:10
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

9reactions
ad-sicommented, May 27, 2021

Ugh, this is really annoying 🙈. Has anyone already an idea how this should be fixed?

5reactions
JamesHenrycommented, Jun 17, 2022

@pachuka Thank you, I’m please to say another community member was able to provide a reproduction already. This will be fixed in the next release of lerna!

Read more comments on GitHub >

github_iconTop Results From Across the Web

package-lock.json - npm Docs
Facilitate greater visibility of tree changes through readable source control diffs. Optimize the installation process by allowing npm to skip repeated metadata ...
Read more >
Adding bootrap-react from NPM creates another package-lock ...
I am new to react and trying to add react-bootstrap to my project. I've got a Soultion with multiple projects in Visual Studio....
Read more >
Files · b55fa5579b409be76f551cbb3c1e46e1ad71bdfd · Jason ...
Clone the repo: git clone https://github.com/twbs/bootstrap.git; Install with npm: npm install bootstrap@4.0.0-beta; Install with yarn: ...
Read more >
JavaScript JSON stringify() Method - GeeksforGeeks
The JSON.stringify() method in Javascript is used to create a JSON ... is a number then the specified number of spaces indented to...
Read more >
package-lock.json does not exist - You.com | The search ...
This is because you are using npm v3.10.8 and package-lock.json was introduced in version 5.0.0 . Feature Summary - Installer changes * A ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found