I have a bunch of components that are single files, I don't need to have them in their own directories, is there some way to import them into a directory of my choosing using the -p argument, without having to use --override to delete all contents of the directory?
@JGJP
While we understand your case, this is not something you can do at the moment.
We also not plan to implement it in the near future, we are also deprecating the option to track single file components soon (in order to make the author and import environment the same).
The rationale is mainly about the need for components to have their own config / package.json and their own node_modules sometime.
Making everything a directory makes bit much more predictable and stable.
If components would need to have their own package.json then what is the advantage of using Bit instead of private npm packages or Git submodules?
@JGJP That will be a pretty big list, you can find some of it here.
I'll just write down some of the advantages shortly. (there are more in the list)
In general bit and npm are not serve exactly the same purpose, the npm install of component is a small part of bit eco system.
So here is a short list:
in case you also use bit.dev cloud service you can also get:
If you want to discuss it more, our slack channel is the place for this.
Most helpful comment
@JGJP That will be a pretty big list, you can find some of it here.
I'll just write down some of the advantages shortly. (there are more in the list)
In general bit and npm are not serve exactly the same purpose, the npm install of component is a small part of bit eco system.
So here is a short list:
in case you also use bit.dev cloud service you can also get:
If you want to discuss it more, our slack channel is the place for this.