Migrate emails to the unified react-email package
Replace the deprecated @react-email/components dependency (and its deprecated sub-packages) with the unified react-email package per the React Email 6 migration, updating all component and render imports across the email templates from "@react-email/components" to "react-email". This removes the npm deprecation warnings emitted by the old @react-email/* packages while keeping the template build output unchanged. Signed-off-by: Sacha Al Himdani <sacha@probo.com>
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
// OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
// PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
import { render } from "@react-email/components";
|
||||
import { render } from "react-email";
|
||||
import { copyFile, mkdir, writeFile } from "node:fs/promises";
|
||||
import { dirname, join } from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
Reference in New Issue
Block a user