Releases: merodiro/esdx
Releases · merodiro/esdx
create-esdx@0.1.3
Patch Changes
- 1ac6055: Add
target
totsconfig.json
in templates
esdx@0.1.0
This release contains backwards-incompatible changes. Since esdx is before version 1.0.0, these changes have been released as a new minor version to reflect this (as recommended by npm). You should either be pinning the exact version of esdx in your package.json file or be using a version range syntax that only accepts patch upgrades such as ~0.11.0. See the documentation about semver for more information.
Minor Changes
-
888ce4c: Add
esdx
config support inpackage.json
This allows
esdx
to be more flexible and allows the following supporting the following usecases:- multiple entries
{ "main": "dist/index.js", "types": "dist/index.d.ts", "type": "module", "exports": { ".": "dist/index.js", "./another": "dist/another.js" }, "esdx": { "entries": [ { "source": "src/index.tsx", "format": "esm", "output": "dist/index.js", "types": "dist/index.d.ts" }, { "source": "src/another.tsx", "format": "esm", "output": "dist/another.js", "types": "dist/another.d.ts" } ] } }
- multiple formats
{ "main": "dist/index.cjs.js", "module": "dist/index.esm.js", "types": "dist/index.d.ts", "esdx": { "entries": [ { "source": "src/index.tsx", "format": "esm", "output": "dist/index.esm.js", "types": "dist/index.d.ts" }, { "source": "src/index.tsx", "format": "cjs", "output": "dist/index.cjs.js" } ] } }
Migration guide
- remove
source
attribute frompackage.json
- add the following code to
package.json
if you want the previous behavior, or you can use one of the examples above to support multiple formats or entries.
{
"main": "dist/index.js",
"type": "module",
"types": "dist/index.d.ts",
"esdx": {
"entries": [
{
"source": "src/index.tsx",
"format": "esm",
"output": "dist/index.js",
"types": "dist/index.d.ts"
}
]
}
create-esdx@0.1.2
create-esdx@0.1.1
Patch Changes
- d1c448c: Fix error while creating a package
create-esdx@0.1.0
esdx@0.0.2
Patch Changes
- 7d3c6dc: Fix generated types in build mode