Improve node_modules cleanup logic for stable branch (#869)
authorDavid Taylor <david@taylorhq.com>
Mon, 9 Sep 2024 10:13:18 +0000 (11:13 +0100)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2024 10:13:18 +0000 (11:13 +0100)
commit3384f2c71c19c8d551ff3151221afed5f530562d
treed2f69c8c638767d5c590eae9a0ca34d37a797dfc
parent34f016a7a6668c77cbfbd390c40f1e2bed9adb08
Improve node_modules cleanup logic for stable branch (#869)

- makes decision based on current state of directory, instead of `$version`
- cleans up the correct directories
- only cleans up the contents. This is important if node_modules directores are mounted volumes (e.g. in devcontainer)
templates/web.template.yml