Skip to content

local-dependency

Error on file:/link: protocol deps, warn on workspace: protocol

PropertyValue
Rule IDfiles/local-dependency
Categoryfiles
Severity🔴 error
FixableNo

What it Checks

Dependencies using file: or link: protocols won't work when published to npm. Use proper version ranges instead.

Configuration

Disable this rule:

bash
tspub check --ignore-rules "files/local-dependency"

Or in tspub.config.ts:

typescript
export default {
  check: {
    severityOverrides: {
      "files/local-dependency": "off",  // or "warning", "error", "info"
    },
  },
};

Released under the MIT License.