MunifTanjim / node-bitbucket

Bitbucket API client for Browser and Node.js
https://bitbucketjs.netlify.app
MIT License
106 stars 28 forks source link

Error: Cannot find module '../../specification/others' #1

Closed JamesHenry closed 6 years ago

JamesHenry commented 6 years ago

Thanks a lot for starting this project off!

It seems right now you are not publishing the specifications/ dir (in your package.json you have "files": ["src", "dist/*.js"]), and this cause the library to immediately crash as it is being required by things within src.

Code to reproduce is literally just:

const BitBucket = require('bitbucket');

I'm happy to submit a PR if the change is just a matter of also publishing that dir.

MunifTanjim commented 6 years ago

@JamesHenry Thanks a lot for noticing that! :smiley:

The plan is to split the specification folder and routes generation process to a separate repository. So, the current workaround is to include the necessary information in the src folder during the specification generation process.