Create a component modifies tsconfig.json #9828
|
I just ran -
and it's effected the files-
How can I just create the component without modify those file ? |
Replies: 1 comment
|
Thanks for reporting this, and sorry for the slow reply. Some background: bit writes IDE config files ( A few things worth knowing:
That left the case you ran into: a workspace whose default directory starts with a dynamic segment, which is the plain default. #10701 now covers this regardless of the configuration. Before bit writes a config file, it checks the comment at the top of the existing file to see whether bit generated it. If the file is yours, bit keeps it and lists what it skipped: If you'd like bit to manage these files after all, run A new version with this fix will be released tonight. And if you'd rather bit didn't write these files at all, you can turn it off in "teambit.workspace/workspace-config-files": { "enableWorkspaceConfigWrite": false } |
Thanks for reporting this, and sorry for the slow reply.
Some background: bit writes IDE config files (
tsconfig.json,.eslintrc.json,.prettierrc.cjs) into the workspace so your IDE picks up the env configuration of each component. The gap was that when such a file was already in the workspace, bit treated it as its own and rewrote it. A file that you wrote should stay yours — and now it does. I reproduced what you saw before fixing it.A few things worth knowing:
componentsRootDiranduseDefaultDirectoryoptions. When you set a default directory for your components, bit writes its config files no higher than that dire…