-
Notifications
You must be signed in to change notification settings - Fork 7
Tracking Issue: Generate and publish npm
package of JavaScript library.
#3
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
Comments
npm
package of JavaScript library.npm
package of JavaScript library.
I'm not sure how exactly google publishes from this repo to NPM, but here are the imports I use across two files Which seems to be all of the exports from |
@TheSpyder are you using a fork's |
Oh wow, I don't think my team realised the diff-match-patch NPM package was itself a fork 🫠 I hadn't quite figured out how I wanted to deploy the fork internally yet, it makes sense now why it seemed so difficult 😂 |
This might be a more interesting migration than I expected. The NPM package made some slight tweaks to the API, such as JackuB/diff-match-patch#18 And given that I use it as ESM, perhaps I'll take the ideas in JackuB/diff-match-patch#20 and PR those too at some point. |
I'm tracking through the history and it looks like the It replaces the global export with module exports:
And replaces the entire
I think these are very sensible changes, I'll include them in a PR to add the other NPM package boilerplate unless you have strong opposition. |
…JackuB/diff-match-patch and an ESM wrapper file. Fixes dmsnell#3.
…JackuB/diff-match-patch and an ESM wrapper file. Fixes dmsnell#3.
…JackuB/diff-match-patch and an ESM wrapper file. Fixes dmsnell#3.
…JackuB/diff-match-patch. Swap to ESM. Fixes dmsnell#3. Co-authored-by: Jon Surrell <sirreal@users.noreply.github.com>
…JackuB/diff-match-patch. Swap to ESM. Fixes dmsnell#3. Co-authored-by: Jon Surrell <sirreal@users.noreply.github.com>
…JackuB/diff-match-patch. Swap to ESM. Fixes dmsnell#3. Co-authored-by: Jon Surrell <sirreal@users.noreply.github.com>
There is no official
npm
package for this library. There are some which package it separately. It should build an artifact that be published directly tonpm
.The text was updated successfully, but these errors were encountered: