package.json.lerna_backup can get left behind after builds
See original GitHub issueWe recently ran into an issue where a Lerna build left package.json.lerna_backup
behind and it didn’t clean up after itself.
Expected Behavior
All builds should clean up build artifacts after they finish, successful or otherwise.
Current Behavior
package.json.lerna_backup
can remain in the filesystem after a build completes.
Possible Solution
Steps to Reproduce (for bugs)
- Run Lerna, apparently.
- We don’t have clear repro steps; there wasn’t a build failure when this occurred.
@gigabo is familiar with our setup so I’m going to refrain from pasting configs unless requested.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Getting Started | Lerna
All Lerna functionality will work the same way regardless. This tutorial will give you an introduction to Lerna's features. To get started with...
Read more >Configuration Options - Renovate Docs
Configuration Options usable in renovate.json or package.json. ... On Azure there can be a delay between a PR being set as completed by...
Read more >5 Tips about lerna - Medium
In this article, I will introduce some common questions about using lerna to create a javascript monorepos project. If you want to have...
Read more >Monorepo Tutorial With Lerna, Storybook & Next.js - ButterCMS
Complete monorepo tutorial using Lerna, Storybook, and Next.js. Code samples and screenshots included: Build your own monrepo project today!
Read more >Using lint-staged, husky, and pre-commit hooks to fail fast and ...
json . In the multi-package repo we have a single linting config set up in the root package, with its rules applied across...
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 Free
Top 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
I’m really suffering from the same problem. Almost every when time I got some
postinstall
error from one of subpackages (or any error at all) during install, mypackage.json
is messed up and its content is replaced with lerna build artifacts. Every time this happens I need to remember to remove the currentpackage.json
and renamepackage.json.lerna_backup
topackage.json
. Otherwhise (if I forget about this and do thenpm i
again after fixing the error) it will do weird things. I guess its possible to reproduce this by just pressingctrl+c
during install, not sure about this though. I believe this is incorrect behaviour and lerna should clean after itself in case of failure. What do you think?This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.