• 
      

    Only ignore node_modules at the top of the tree.

    Review Request #14145 — Created Sept. 5, 2024 and submitted

    Information

    Djblets
    release-5.x

    Reviewers

    If there's a node_modules unintentionally created anywhere but at the
    top of the tree, it's possible for this to interfere with consumers of
    Djblets. For example, Vite (used by Storybook) will consider it a
    candidate for module lookup, and could find stale modules.

    To make this problem more obvious, we no longer ignore node_modules
    anywhere but the top of the tree. git status will then report any
    stray copies, helping address the problem.

    Installed packages in a subdirectory and ran git status. Saw the
    stray `node_modules.

    Summary ID
    Only ignore node_modules at the top of the tree.
    If there's a `node_modules` unintentionally created anywhere but at the top of the tree, it's possible for this to interfere with consumers of Djblets. For example, Vite (used by Storybook) will consider it a candidate for module lookup, and could find stale modules. To make this problem more obvious, we no longer ignore `node_modules` anywhere but the top of the tree. `git status` will then report any stray copies, helping address the problem.
    0ba85159d5c2f8a130f541e6aeb56ae8b88008b6
    Description From Last Updated

    Can you add a comment about why this one is specifically relative? I don't want to come back years from …

    daviddavid
    david
    1. 
        
    2. .gitignore (Diff revision 1)
       
       
      Show all issues

      Can you add a comment about why this one is specifically relative? I don't want to come back years from now and "clean up" this file.

      Same with the other similar changes.

    3. 
        
    chipx86
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-5.x (f82960f)