diff --git a/index.js b/index.js index d15401a..f9846fb 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,6 @@ const path = require('path'); const process = require('process'); const util = require('util'); const { Buffer } = require('buffer'); -const displayNotification = require('display-notification'); const getPort = require('get-port'); const nodemailer = require('nodemailer'); const open = require('open'); @@ -89,6 +88,7 @@ const previewEmail = async (message, options) => { // `xcrun simctl openurl booted ${url}` // if (isMacOS && !isCI && options.openSimulator) { + const { displayNotification } = await import('display-notification'); try { // const simulator = childProcess.spawn('open', ['-a', 'Simulator']); diff --git a/package.json b/package.json index 78188d9..11b380d 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ ], "dependencies": { "ci-info": "^3.8.0", - "display-notification": "2.0.0", + "display-notification": "^3.0.0", "fixpack": "^4.0.0", "get-port": "5.1.1", "mailparser": "^3.7.1",