question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

distribution package contains unecessary files

See original GitHub issue

distribution package contains unecessary files

Introduction

distribution packages - those published on npm - should preferably be slim, and contain only the run-time sources, with a set of minimum registry requirements (such as package.json, readme and license).

however, the distribution package comes with unecessary files and folders

Issue Description

True for 0.10.4 - The distribution contains:

  • src
  • scripts
  • .babelrc
  • .npmignore

Steps to reproduce issue

npm install bookshelf
tree node_modules/bookshelf

Expected behaviour

Folder tree should include:

  • lib
  • README.md/LISENSE/CHANGELOG.md
  • package.json

Actual behaviour

D:\ws>tree node_modules\bookshelf /F
Folder PATH listing for volume DATA
Volume serial number is 20CC-A0A2
D:\WS\NODE_MODULES\BOOKSHELF
β”‚   .babelrc
β”‚   .npmignore
β”‚   bookshelf.js
β”‚   CHANGELOG.md
β”‚   LICENSE
β”‚   package.json
β”‚   README.md
β”‚
β”œβ”€β”€β”€lib
β”‚   β”‚   bookshelf.js
β”‚   β”‚   collection.js
β”‚   β”‚   constants.js
β”‚   β”‚   eager.js
β”‚   β”‚   errors.js
β”‚   β”‚   extend.js
β”‚   β”‚   helpers.js
β”‚   β”‚   model.js
β”‚   β”‚   relation.js
β”‚   β”‚   sync.js
β”‚   β”‚
β”‚   β”œβ”€β”€β”€base
β”‚   β”‚       collection.js
β”‚   β”‚       eager.js
β”‚   β”‚       events.js
β”‚   β”‚       model.js
β”‚   β”‚       promise.js
β”‚   β”‚       relation.js
β”‚   β”‚
β”‚   └───plugins
β”‚           pagination.js
β”‚           registry.js
β”‚           virtuals.js
β”‚           visibility.js
β”‚
β”œβ”€β”€β”€scripts
β”‚       build.js
β”‚       gh-pages.sh
β”‚       jsdoc.config.json
β”‚       jsdoc.sh
β”‚       postpublish.sh
β”‚       promise.js
β”‚
└───src
    β”‚   bookshelf.js
    β”‚   collection.js
    β”‚   constants.js
    β”‚   eager.js
    β”‚   errors.js
    β”‚   extend.js
    β”‚   helpers.js
    β”‚   model.js
    β”‚   relation.js
    β”‚   sync.js
    β”‚
    β”œβ”€β”€β”€base
    β”‚       collection.js
    β”‚       eager.js
    β”‚       events.js
    β”‚       model.js
    β”‚       promise.js
    β”‚       relation.js
    β”‚
    └───plugins
            pagination.js
            registry.js
            virtuals.js
            visibility.js

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
mrhwickcommented, Nov 2, 2017

You should have an invite to the organization and maintainer team again. I thought I had added everyone, but I must have missed some people who weren’t on the bookshelf organization but the repo itself. It would be helpful if you could also add one of the more recently active maintainers, or all of the maintainers team to the npm package administration as well.

0reactions
ricardogracacommented, Nov 16, 2017

Fixed in version 0.11.0, although you should be installing 0.11.1 due to a missing file in the previous version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot distribute files to distribution point - TechNet - Microsoft
Solution: Verify that the site server computer account has at least Read access to the directory you specify as the source directory. PossibleΒ ......
Read more >
Remove Unnecessary Files With Windows Disk Cleanup
If you want to clean your drive of unnecessary files but don't want to download a third-party program, here's how to do it...
Read more >
How to minimize the unnecessary files installed by package ...
I'm trying to install packages with having as little files from their dependencies as possible, since system size is important to me.
Read more >
How to Remove Junk Files From Your Windows 10 PC
Windows 10 can quickly clog up from junk files strewn across the system. Here's how to clean them all out.
Read more >
How to clean up junk files on Mac - MacPaw
4. Remove localization files Β· Open Finder and go to the Applications folder. Β· Right-click any application icon and select Show Package Contents....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found