surveyplanet / utilities

A collection of Typescript utility functions.
MIT License
0 stars 0 forks source link

Publish both ESM and CJS #8

Open jwerre opened 1 month ago

jwerre commented 1 month ago

These are the important parts of the package.json

"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/cjs/index.d.ts",
"files": [
    "dist"
],
"scripts": {
    "build:cjs": "tsc --project tsconfig.cjs.json",
    "build:esm": "tsc --project tsconfig.esm.json",
    "build": "rm -rf dist && npm run build:cjs && npm run build:esm",
}

!! BE SURE AND REMOVE "type": "module" !!

github-actions[bot] commented 1 month ago

:tada: This issue has been resolved in version 2.6.0-alpha.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: