Skip to content

public package - unused class members #267

@ghost23

Description

@ghost23

What happened?

Hi,

I have a monorepo with packages that are being published as libraries. I also have some classes in some of these packages, which I re-export in the entry file of the package. The entry file is covered in the fallow config and the packages are specified in the publicPackages property in the fallow config.

But fallow now reports the member properties of those classes as unused. I would expect it not to do that.

Am I missing something, or should this work differently?

Reproduction

  1. clone this example repo and install via npm install:
    https://github.com/ghost23/fallow-test
  2. Run latest fallow
    Among other things it shows this error:
● Unused class members (1)
  packages/async/src/lib/async-retry.ts
    :40 TimeoutError.prettyCoolFunction

Expected behavior

Although this member method is indeed not used in the workspace, I would expect fallow not to complain because this method is part of public API surface for the library "async-retry".

Fallow version

2.63.0

Operating system

macOS

Configuration

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions