removing dist folder causes issues with parallel lerna processes
See original GitHub issueI don’t know if this is the right place for this, neither if this is a bug.
Additional context
I am using tsdx in a lerna monorepo. If I start all process at once via lerna run --parallel start
, my create-react-app
start process fails with Module not found: Can't resolve <path/to/module>
.
My guess is the cleanup of the dist folder on watch mode collides with the parallel startup.
If this doesn’t belong here, feel free to close it.
Your environment
Software | Version(s) |
---|---|
TSDX | 0.10.0 |
TypeScript | 3.6.3 |
Browser | Chrome Version 77.0.3865.120 (Offizieller Build) (64-Bit) |
npm/Yarn | npm 5.8.0 |
Operating System | Ubuntu 19.04 VM |
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Getting Started | Lerna
Build all the projects, then remove the remix build folder and run the build command again. You will see all the files restored...
Read more >Interrupt all lerna --parallel tasks at once - Stack Overflow
So here's my question: how do I make sure processes started via the lerna run command with the --parallel option are all killed...
Read more >A guide through The Wild Wild West of setting up a mono repo ...
Let's build our packages with Lerna. Run the following command in the root of our repository.
Read more >Lerna NPM | npm.io
If you encounter any issues while using Lerna please check out our Troubleshooting document where ... Remove the node_modules directory from all packages....
Read more >@lerna/run | Yarn - Package Manager
If for some reason you wish to opt in to the legacy task-runner implementation details (powered by p-map and p-queue ), you can...
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
@jaredpalmer It looks like the dist folder gets removed.
The function removing the dist folder:
https://github.com/jaredpalmer/tsdx/blob/76d7eb33e946c6dd3ebb656eabc874e392ecf012/src/index.ts#L475-L479
and the line where it is called in watch task:
https://github.com/jaredpalmer/tsdx/blob/76d7eb33e946c6dd3ebb656eabc874e392ecf012/src/index.ts#L364
@sebald Thank you for the clarification.
I have tested the watch task with the
--noClean
flag as introduced in #282. Now it runs without failing.