~/talk

Publishing in JavaScript Ecosystem: How to Keep Everyone Happy?

Talkat OpenJS World 2022 · 2022-06-06..06-10· [javascript, developer-experience]
slides:none on file

Recommends shipping an ES module first but also a CommonJS build using conditional exports, generated from one TypeScript source so both node and bundlers work; use dnt for Deno and verify Cloudflare Workers run your webpacked bundle. Trim publish/install size with package.json "files" and minimal dependencies, offer a debug variant (dist tag) with source maps, and publish TypeScript declarations (or submit to DefinitelyTyped) — types prevent ~15–38% of bugs. Provide observability via an external OpenTelemetry instrumentation package.

AI-written summary · about

  1. 0:00Intro
  2. 1:04Why talk about publishing?
  3. 2:32What are we going to cover?
  4. 3:07Which criteria will affect you?
  5. 4:00Publishing Criteria
  6. 5:52Criteria: Server (why?)
  7. 8:34Criteria: JS Native (why?)
  8. 9:50Criteria: Module Formats why
  9. 12:59Criteria: Sizes (why?)
  10. 14:08Criteria: Reduce Publish Size h
  11. 15:09Criteria: Reduce Install Size ho
  12. 15:41Criteria: Reduce Bundle Size ho
  13. 16:32Criteria: Types (why?)
  14. 18:28Criteria: Debugging (why?)
  15. 20:07Criteria: Observability why?
  16. 21:42Conclusion (opinionated)
  17. 22:50Thank you for listening
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.