Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Superfluous files in the NPM package #117

Closed
chocolateboy opened this issue May 16, 2020 · 3 comments
Closed

Superfluous files in the NPM package #117

chocolateboy opened this issue May 16, 2020 · 3 comments

Comments

@chocolateboy
Copy link

There are lots of extraneous files in the tracer tarball, including the example directory, tests, linter and CI config files etc. — none of which are needed by consumers of the package.

The code itself is ~ 32 KB, but the package size is almost 300 KB. I suggest using the files array in your package.json to only include the files you intend to publish.

@baryon
Copy link
Owner

baryon commented May 20, 2020

Thanks, fixed in "version": "1.1.1"

@baryon baryon closed this as completed May 20, 2020
@chocolateboy
Copy link
Author

Great!

FYI, there are still a few stray files in the types directory:

  • types/tsconfig.json
  • types/tslint.json
  • types/test.ts

You can skip the README.md as that's included automatically, so something like this should suffice:

{
  // ...
  "files": [
    "lib",
    "types/index.d.ts"
  ],
}

@baryon
Copy link
Owner

baryon commented May 23, 2020

1.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants