Drarig29 / brackets-manager.js

A simple library to manage tournament brackets (round-robin, single elimination, double elimination).
https://drarig29.github.io/brackets-docs
MIT License
254 stars 40 forks source link

Do not export storage implementations #110

Closed Drarig29 closed 3 years ago

Drarig29 commented 3 years ago

Especially the JsonStorage class, which needs node-json-db as a dependency.

Because of this, importing brackets-manager in browser-based projects can be difficult.

../../brackets-manager.js/node_modules/mkdirp/lib/opts-arg.js:2:11-24 - Error: Module not found: Error: Can't resolve 'fs' in '/home/corentin/brackets-manager.js/node_modules/mkdirp/lib'

../../brackets-manager.js/node_modules/mkdirp/lib/path-arg.js:2:27-42 - Error: Module not found: Error: Can't resolve 'path' in '/home/corentin/brackets-manager.js/node_modules/mkdirp/lib'