~/talk

Releasing a library written in TypeScript on NPM

Talkat React Finland 2019 · 2019-04-24..04-26· [typescript, nodejs]

Shows how to publish a TypeScript library using TypeScript + Rollup with a concrete config, recommends rollup-plugin-typescript2 and terser, and outputs both CommonJS and ES modules plus .d.ts files in a dist folder. Uses rimraf and mkdirp in npm scripts, sets "main" and "module" and "types" in package.json, keeps React and ReactDOM as peerDependencies react react-dom, and reports that consumers get working autocomplete and type declarations after npm publish.

AI-written summary · about

~/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.