Skip to content

package-size

Check that package dist size is reasonable

PropertyValue
Rule IDsize/package-size
Categorysize
Severity🟡 warning
FixableNo

What it Checks

Flags packages that are unusually large. Large packages slow down npm install and bloat node_modules.

Configuration

Disable this rule:

bash
tspub check --ignore-rules "size/package-size"

Or in tspub.config.ts:

typescript
export default {
  check: {
    severityOverrides: {
      "size/package-size": "off",  // or "warning", "error", "info"
    },
  },
};

Released under the MIT License.