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";
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)
Published files in beta version