Skip to content

Version 0.2.0

Latest
Compare
Choose a tag to compare
@VitorLuizC VitorLuizC released this 02 May 20:40

Features

  • --exclude option was added, its default value is "./git,./node_modules".

    Use it to customize excluded folders and files from check, it accepts a list of comma separeted (without spaces) relative paths.

    npx check-package-usage --exclude ./node_modules
    
    # For multiple paths you can use a comma without space as separator.
    npx check-package-usage --exclude ./dist,./node_modules
    
    # For special characters, like withspaces, use double quotes.
    npx check-package-usage --exclude "./folder with space,./another folder with spaces"
  • --encoding option was added, its default value is "utf-8".

    Use it to change encoding used to read the files and folders.

    npx check-package-usage --encoding base64
  • Ouput was improved a lot!

    This is an example of check-package-usage called inside itself.

    ➜  check-package-usage git:(main) npx check-package-usage
    Searching into ...
    Packages not imported at all:
    - 'tslib' wasn't imported in any source.
    - '@types/eslint' wasn't imported in any source.
    - '@types/jest' wasn't imported in any source.
    - '@types/mock-fs' wasn't imported in any source.
    - '@types/node' wasn't imported in any source.
    - '@types/prettier' wasn't imported in any source.
    - '@typescript-eslint/eslint-plugin' wasn't imported in any source.
    - '@typescript-eslint/parser' wasn't imported in any source.
    - 'concurrently' wasn't imported in any source.
    - 'eslint-config-prettier' wasn't imported in any source.
    - 'eslint-plugin-prettier' wasn't imported in any source.
    - 'jest' wasn't imported in any source.
    - 'ts-jest' wasn't imported in any source.
    - 'ts-jest-resolver' wasn't imported in any source.
    - 'typescript' wasn't imported in any source.
    Packages only imported once:
    - '@rollup/plugin-json' was just imported here:
      /home/vitorluizc/projects/check-package-usage/rollup.config.js:3
    
    - 'eslint' was just imported here:
      /home/vitorluizc/projects/check-package-usage/.eslintrc.js:8
    
    - 'prettier' was just imported here:
      /home/vitorluizc/projects/check-package-usage/prettier.config.js:6
    
    - 'rollup' was just imported here:
      /home/vitorluizc/projects/check-package-usage/rollup.config.js:28
    
    - 'rollup-plugin-typescript2' was just imported here:
      /home/vitorluizc/projects/check-package-usage/rollup.config.js:4
    
    
    ➜  check-package-usage git:(main) 
    

All the changes

v0.1.1...v0.2.0