esbuild-playground

how to build a ts/js package for node + browser.

operations:

  • builds + bundles .ts -> js (esm + cjs) using esbuild
  • generates types (index.d.ts) using tsc
  • build all w: npm run build

links


local dev

from root dir:

npm link

in another dir: (sym links the package to the project's node_modules/ folder)

npm link esbuild-playground

unlink

npm unlink esbuild-playground