-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix broken NPM bundle by publishing in ES-Module format #1958
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,24 +2,20 @@ | |
"name": "@novnc/novnc", | ||
"version": "1.6.0", | ||
"description": "An HTML5 VNC client", | ||
"browser": "lib/rfb", | ||
"directories": { | ||
"lib": "lib", | ||
"doc": "docs", | ||
"test": "tests" | ||
}, | ||
Comment on lines
-6
to
-10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these not used anymore? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See npm js docs: directories
Since this is no longer exported using ComonJS Modules, I am not sure who would use this. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds fair. But let's have a separate commit that explicitly states that these are being removed because they are old and unused. Can probably put the removal of "browser" in the same commit. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi 👋 |
||
"type": "module", | ||
"files": [ | ||
"lib", | ||
"core", | ||
"vendor", | ||
"AUTHORS", | ||
"VERSION", | ||
"docs/API.md", | ||
"docs/LIBRARY.md", | ||
"docs/LICENSE*" | ||
], | ||
"exports": "./core/rfb.js", | ||
"scripts": { | ||
"lint": "eslint app core po/po2js po/xgettext-html tests utils", | ||
"test": "karma start karma.conf.js", | ||
"prepublish": "node ./utils/convert.js --clean" | ||
"test": "karma start karma.conf.cjs" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.