Skip to content

no-deprecated-subpath

Warn on trailing / in exports keys (use /* instead)

PropertyValue
Rule IDexports/no-deprecated-subpath
Categoryexports
Severity🟡 warning
FixableNo

What it Checks

Node.js deprecated trailing / in exports keys. Use /* pattern instead: "./utils/*" instead of "./utils/".

Configuration

Disable this rule:

bash
tspub check --ignore-rules "exports/no-deprecated-subpath"

Or in tspub.config.ts:

typescript
export default {
  check: {
    severityOverrides: {
      "exports/no-deprecated-subpath": "off",  // or "warning", "error", "info"
    },
  },
};

Released under the MIT License.