ongteckwu / typeid-ts

TypeID UUIDv7 implementation in Typescript (Lib and CLI)
Apache License 2.0
38 stars 5 forks source link

CommonJS exports #5

Closed DanHulton closed 1 year ago

DanHulton commented 1 year ago

Updates package.js to export both ESM and CommonJS exports.

Not everyone has migrated to ESM yet (including some big frameworks), and this allows this package to be used by consumers using both module types.

The build process stays the same, just run rpm run build, and it will build both ESM and CJS versions and place them in build/esm and build/cjs, respectively. The main package.json exports will direct module systems to import/require the appropriate build.

ongteckwu-assurity commented 1 year ago

upgrade to v0.2.9