Open cristian-eriomenco opened 4 months ago
@cristian-eriomenco yup, this is happening for us too.
Is there a way to override this?
@cristian-eriomenco yup, this is happening for us too.
Is there a way to override this?
https://github.com/wclr/yalc/blob/3b834e488837e87df47414fd9917c10f07f0df08/src/sync-dir.ts#L48
looks like it's not possible to override, it's literally hardcoded...
Suppose you have a folder structure for your bundle as follows:
Everything containing
node_modules
would end-up being removed once issuingyalc publish
One might ask why do you have
node_modules
? Well for instance i use rollup withpreserveModules: true
Which would mimic the folder structure, but not only this. There are also deeply nested dependencies which also have node_modules eg:
cache-manager
which makes publishing impossible