[BUG] npm ci --omit
does not remove empty folders if their name starts with @
#8014
Open
2 tasks done
Labels
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
package with only one dependency:
omiting dev dependencies should leave the
node_modules
empty, but does not$ npm ci --omit=dev up to date, audited 1 package in 162ms found 0 vulnerabilities $ ls node_modules/ @actions @fastify
it did omit some dependencies though, just not the ones starting with
@
, see install without omitting:$ npm ci added 7 packages, and audited 8 packages in 518ms found 0 vulnerabilities $ ls node_modules/ @actions @fastify tunnel undici
Expected Behavior
omiting dev dependencies when only having dev dependencies leaves the
node_modules
folder empty, as is the case when the dependency does not start with@
:Steps To Reproduce
echo {} > package.json
npm i -D @actions/core
npm ci --omit=dev
ls node_modules/
observe that folder is not emptyEnvironment
The text was updated successfully, but these errors were encountered: