Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

package.json - fix main reference #6

Closed
wants to merge 1 commit into from
Closed

Conversation

kumavis
Copy link
Contributor

@kumavis kumavis commented Oct 19, 2016

No description provided.

@@ -2,7 +2,7 @@
"name": "libp2p-floodsub",
"version": "0.3.0",
"description": "libp2p-floodsub, also known as pubsub-flood or just dumbsub, this implementation of pubsub focused on delivering an API for Publish/Subscribe, but with no CastTree Forming (it just floods the network).",
"main": "lib/core/index.js",
"main": "src/core/index.js",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this should be "main": "src/index.js".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be "lib/index.js"

Copy link
Contributor

@haadcode haadcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure the path is correct. Otherwise this LGTM and is needed to get the module working.

@haadcode
Copy link
Contributor

Actually, take that back. pointing to lib/index.js might be desired behaviour. @diasdavid ping. This is due to the ES5 transpiling, right?

@daviddias
Copy link
Member

yep, it should be lib, that is what gets published. See https://github.com/ipfs/community/blob/master/js-project-guidelines.md

@daviddias daviddias closed this Oct 20, 2016
@daviddias daviddias reopened this Oct 20, 2016
@kumavis
Copy link
Contributor Author

kumavis commented Oct 20, 2016

oh! build-and-publish. gotcha. I think `"main": "dist/index.js" would be more clear, but may be difficult to change that at this point.

@dignifiedquire
Copy link
Member

@kumavis it's not ideal, but we have a plan of moving to main: 'src/index.js for our modules. You can see details for this here: ipfs/js-ipfs#429

@kumavis kumavis deleted the patch-1 branch October 20, 2016 17:31
@kumavis
Copy link
Contributor Author

kumavis commented Oct 20, 2016

@dignifiedquire thanks! just got off a call with @diasdavid and he explained the situation in depth

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

Successfully merging this pull request may close these issues.

4 participants