Check the repository's .npmignore file or the 'files' field in package.json. If .npmignore does not exist, create one and add patterns to exclude test files (e.g., '**/*.spec.js'). Alternatively, specify only necessary files in package.json's 'files' field.
Don't send tests files to npm · assisrafael/angular-input-masks#320 | Good First Issue