From 9ef58cb74e172b9692906a442bbca05d0215f562 Mon Sep 17 00:00:00 2001 From: nmonin Date: Tue, 23 Apr 2024 12:44:31 +0300 Subject: [PATCH 1/2] Move mjml to optional dependencies --- README.md | 4 ++++ package.json | 2 +- pnpm-lock.yaml | 7 ++++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 403cf33d..d0d3cf0b 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ npm install --save handlebars npm install --save pug #or npm install --save ejs +#or +npm install --save mjml ``` #### with yarn @@ -43,6 +45,8 @@ yarn add handlebars yarn add pug #or yarn add ejs +#or +yarn add mjml ``` ### Documentation diff --git a/package.json b/package.json index ae8a34d3..d17b1c5a 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,6 @@ "dependencies": { "@css-inline/css-inline": "0.13.0", "glob": "10.3.10", - "mjml": "4.15.3", "preview-email": "3.0.19" }, "optionalDependencies": { @@ -63,6 +62,7 @@ "@types/pug": "^2.0.10", "ejs": "^3.1.9", "handlebars": "^4.7.8", + "mjml": "^4.15.3", "pug": "^3.0.2" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4bbe2f11..daf50457 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,9 +11,6 @@ dependencies: glob: specifier: 10.3.10 version: 10.3.10 - mjml: - specifier: 4.15.3 - version: 4.15.3 preview-email: specifier: 3.0.19 version: 3.0.19 @@ -31,6 +28,9 @@ optionalDependencies: handlebars: specifier: ^4.7.8 version: 4.7.8 + mjml: + specifier: ^4.15.3 + version: 4.15.3 pug: specifier: ^3.0.2 version: 3.0.2 @@ -5744,6 +5744,7 @@ packages: transitivePeerDependencies: - encoding dev: false + optional: true /mkdirp@1.0.4: resolution: {integrity: sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==} From dbdc9f037210ede989e760d1df7381080905e395 Mon Sep 17 00:00:00 2001 From: nmonin Date: Tue, 23 Apr 2024 13:37:25 +0300 Subject: [PATCH 2/2] Add mjml to peer dependencies --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index d17b1c5a..4925e7d0 100644 --- a/package.json +++ b/package.json @@ -101,6 +101,7 @@ "@types/pug": ">=2.0.6", "ejs": ">=3.1.2", "handlebars": ">=4.7.6", + "mjml": ">=4.15.3", "nodemailer": ">=6.4.6", "pug": ">=3.0.1" }