Faire / mjml-react

React component library to generate the HTML emails on the fly
https://www.npmjs.com/package/@faire/mjml-react
MIT License
375 stars 16 forks source link

fix(build): enable imports directly from extensions and utils folder #77

Closed emmclaughlin closed 1 year ago

emmclaughlin commented 1 year ago

Fix for #71.

Currently the package is built from the root directory, which causes imports from extensions or utils to have to have /dist/src in them. Instead we want to move the package.json to the dist folder (after the code is built) and publish that. WE also move the readme and the license with it.

Import before:

import { render } from "@faire/mjml-react/dist/src/utils/render";

Import after:

import { render } from "@faire/mjml-react/utils/render";

This has been tested on a beta version:

Published files in v3.0.1 (current latest)

Screen Shot 2023-01-06 at 4 58 43 PM

Published files in beta version

Screen Shot 2023-01-06 at 4 58 53 PM

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 3.0.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: