Skip to content

Releases: merodiro/esdx

[email protected]

27 Jun 12:36
e1bc14d
Compare
Choose a tag to compare

Patch Changes

  • 1ac6055: Add target to tsconfig.json in templates

[email protected]

23 Jun 13:31
7452b5b
Compare
Choose a tag to compare

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 in package.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

  1. remove source attribute from package.json
  2. 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"
          }
        ]
      }

[email protected]

23 Jun 13:31
7452b5b
Compare
Choose a tag to compare

Patch Changes

  • 888ce4c: Dual pubish templates by default
  • a8d4914: fix package name when creating a package

[email protected]

22 Jun 18:08
287d4ab
Compare
Choose a tag to compare

Patch Changes

  • d1c448c: Fix error while creating a package

[email protected]

22 Jun 17:20
3954c1c
Compare
Choose a tag to compare

Minor Changes

  • e73e84c: Add templates from TSDX configured to use ESDX and esbuild where it's possible

    • simple
    • react
    • react-with-storybook
  • 895e3bb: Add linting to templates:

    • eslint
    • prettier
    • pre commit hooks

Patch Changes

  • 393bf9c: Update templates readme
  • 2a667a4: Use types instead of typings to generate types automatically

[email protected]

20 Jun 17:19
08f00e1
Compare
Choose a tag to compare

Patch Changes

  • 7d3c6dc: Fix generated types in build mode