Skip to content

Publish unist packages and friends #32

Discussion options

You must be logged in to vote

To resolve more issues, I propose to add an empty index.cjs and index.mjs file to each package. I.e. import { Node } from 'unist' will just result in Node being undefined, not in an import error.

I think @wooorm has mdast https://www.npmjs.com/package/mdast and hast https://www.npmjs.com/package/hast published to npm with an index.js file, since the content doesn't seem to matter in this case, would that be enough?
(unist, xast, and dotast are still unpublished and an open question)

Replies: 4 comments 21 replies

Comment options

You must be logged in to vote
2 replies
@remcohaszing
Comment options

remcohaszing Feb 17, 2021
Collaborator Author

@wooorm
Comment options

Comment options

You must be logged in to vote
2 replies
@remcohaszing
Comment options

remcohaszing Feb 17, 2021
Collaborator Author

@ChristianMurphy
Comment options

Comment options

You must be logged in to vote
16 replies
@remcohaszing
Comment options

remcohaszing Feb 23, 2021
Collaborator Author

@ChristianMurphy
Comment options

@remcohaszing
Comment options

remcohaszing Feb 23, 2021
Collaborator Author

@wooorm
Comment options

@remcohaszing
Comment options

remcohaszing Feb 23, 2021
Collaborator Author

Answer selected by ChristianMurphy
Comment options

You must be logged in to vote
1 reply
@remcohaszing
Comment options

remcohaszing Feb 18, 2021
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants