.gitignorenode_models 下を指定しているのに node_modules/.package-lock.json がignoreされないのはなぜなのか?

以下のように指定している。 #+begn_src node_modules/ #+end_src

しかし、差分が出る。

$ git status
On branch main
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   node_modules/.package-lock.json
        modified:   package-lock.json
        modified:   package.json
        modified:   wrangler.jsonc