packages-condom

    1.2.0 • Public • Published

    packages-condom

    Build Status Coverage Status

    Check your code are not using some dev dependencies

    Why

    In the build process, your code will be tested with non-production packages. In fact all dev dependencies are installed too. Your production code can require some dev dependencies and crash at runtime. This module search in your code all required modules and check if those are defined as dependencies or peer dependencies.

    Install

    npm install -g packages-condom
    

    Usage

    packages-condom <path>
    

    Without any parameters, the condom checks all requires are included as dependencies or optionalDependencies. By default, the peerDependencies are not allowed.

    To change the default configuration, some CLI parameters are allowed:

    • --no-dependency
    • --peer-dependency
    • --no-optional-dependency
    • --glob-pattern <string> Overwrite glob pattern (specify multiple times to include/exclude a list). Default is ['**/*.js', '!node_modules/**/*', '!test/**/*', '!tests/**/*']

    Todo

    • Better output

    Keywords

    none

    Install

    npm i packages-condom

    DownloadsWeekly Downloads

    2

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • allevo