Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Treat lib exports as used #14

Closed
nstepien opened this issue Jun 12, 2019 · 3 comments
Closed

Treat lib exports as used #14

nstepien opened this issue Jun 12, 2019 · 3 comments
Labels
bug Something isn't working help wanted Extra attention is needed no-issue-activity released

Comments

@nstepien
Copy link

Example:

tsconfig.json:

{
  "files": [
    "src/index.ts"
  ]
}

src/index.ts:

export * from './example';
export const text = 'test';

src/example.ts:

export const value = 'test';

ts-prune:

> npx ts-prune
npx: installed 158 in 9.135s
value @ .../src/example.ts:1
text @ .../src/index.ts:2

These exports shouldn't be reported as unused, as they're exported/exposed in the entry file.

The tool works great otherwise 👍

@nadeesha
Copy link
Owner

Thanks for reporting this Nicolas. Indeed this is a point of improvement.

@github-actions
Copy link
Contributor

Stale issue message

@github-actions
Copy link
Contributor

🎉 This issue has been resolved in version 0.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed no-issue-activity released
Projects
None yet
Development

No branches or pull requests

2 participants