npm-check
npm-check copied to clipboard
npm-check incorrectly flags partial SCSS files as unused dependencies
GitHub Copilot: Sure, here's a possible description for the GitHub issue:
Description
When running npm-check to check for unused dependencies in a project that uses SCSS, partial SCSS files that are imported in the main SCSS file are incorrectly flagged as unused dependencies. This is because partial SCSS files are prefixed with an underscore (_) and npm-check does not recognize them as being used in the main file.
Steps to Reproduce
- Create a project that uses SCSS and has at least one partial SCSS
_partial.scssfile that is imported in the main SCSS file. - Run
npm-checkto check for unused dependencies. - Observe that the partial SCSS file is incorrectly flagged as an unused dependency.
Expected Behavior
npm-check should recognize partial SCSS files that are imported in the main SCSS file as being used and not flag them as unused dependencies.
Actual Behavior
npm-check incorrectly flags partial SCSS files as unused dependencies.
Environment
- Operating System: [Windows 11 pro]
- Node.js version: [18.17.1]
npm-checkversion: [6.0.1]
Let me know if you want me to make any changes to the description.
also in https://github.com/dylang/npm-check/issues/305