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

Do not package the mongodb data dir (reduce the unpacked size 1800 times) #7

Open
ChALkeR opened this issue Sep 21, 2015 · 1 comment

Comments

@ChALkeR
Copy link

ChALkeR commented Sep 21, 2015

Disclaimer: I do not use the package, this was found during automated npm packages downloading.

Atm, your npm package mongodm@0.7.1 has packaged size 0.20 MiB, and installed size 160.1 MiB.

160.0 MiB (99.95%) of that is consumed by the .githide/mongod directory. That is your mongodb database directory.

I suspect that that directory was accidently packaged.

You could add it to .npmignore (if you have an .npmignore already) or to .gitignore (if you don't have an .npmignore).


Your current package files (as of mongodm@0.7.1):

mongodm-0.7.1.tgz
├── .githide
│   ├── mongod
│   │   ├── local.0
│   │   ├── local.ns
│   │   ├── mongodb-test.0
│   │   ├── mongodb-test.ns
│   │   └── mongod.lock
│   └── notes.js
├── index.js
├── lib
│   ├── mapping
│   │   └── mapper.js
│   └── mongodm.js
├── .npmignore
├── package.json
├── README.md
├── test
│   ├── construct-test.js
│   ├── db-test.js
│   ├── events-test.js
│   ├── model-test.js
│   ├── relations-test.js
│   ├── scopes-test.js
│   └── support
│       ├── common.js
│       └── config.js
└── .travis.yml

6 directories, 21 files
@tshelburne
Copy link
Owner

Wow, thank you! I changed my global gitignore configuration a while back, and must have accidentally packed this in. Damn.

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