Lerna import does not correctly import the file tree
See original GitHub issueExpected Behavior
I imported another repo with lerna import ../other-repo --preserve-commit --dest=packages
.
I’d expect that there now is a directory packages/other-repo
with all the files from ../other-repo
Current Behavior
Files are missing, and the file tree is different. Unfortunately, I can’t figure out any pattern in how it’s different. Maybe some changes from commits weren’t correctly applied?
lerna.json
{
"packages": [
"admin",
"lib",
"packages/*",
"web"
],
"version": "0.0.0"
}
Your Environment
Executable | Version |
---|---|
lerna --version |
4.0.0 |
npm --version |
7.9.0 |
node --version |
15.11.0 |
OS | macOS Catalina 10.15.7 19H524 x86_64 |
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:10
Top Results From Across the Web
Troubleshooting | Lerna
Run lerna import with the --flatten flag to import the history in "flat" mode, i.e. with each merge commit as a single change...
Read more >Is there a way to "refresh" an imported repository with Lerna?
The lerna import command takes all the commits from your original repository, reverses and replays them. However there's no way to replay these ......
Read more >@lerna/import - npm Package Health Analysis | Snyk
This is useful for gathering pre-existing standalone packages into a Lerna repo. Each commit is modified to make changes relative to the package...
Read more >eslint-plugin-import - npm
Ensure imports point to a file/module that can be resolved. ... your project's working tree npm install eslint-plugin-import --save-dev.
Read more >Configuring TypeScript for multiple packages in a Lerna + ...
The aim of this article will be so you can import TypeScript code from ... serves as a base directory to resolve non-relative...
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
FYI I ended up not using
lerna import
at all. The script we ended up with was something like:Any verdict on this? Sounds like a pretty serious issue