Bootstrap reformats package-lock.json to use tabs instead of spaces
See original GitHub issueExpected 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:
- Created 3 years ago
- Reactions:10
- Comments:16 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ugh, this is really annoying 🙈. Has anyone already an idea how this should be fixed?
@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!