wazum icon indicating copy to clipboard operation
wazum copied to clipboard

Simple esm dist output

Open trusktr opened this issue 1 year ago • 4 comments

Fixes #2

The commits have all the details. TLDR: simple ESM output compatible with most tools of today, type definitions just work.

Breaking change:

import {w} from 'wazum' // before
import * as w from 'wazum' // now

This can be tested by installing my fork from git:

npm install 'wazum@trusktr/wazum#simple-esm-dist-output'

Note that the new prepare script added to package.json is what allows install from git to be possible (when using npm). Npm will install devDependencies locally, run the prepare script, then package the library after the prepare script has finished. Note that this may not work with yarn or pnpm because they don't follow (last I checked) this part of NPM spec.

trusktr avatar Jun 05 '23 00:06 trusktr