From 91fbcb5fb94e92def9959cbc394ddf29d90ced4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 9 Sep 2022 18:04:44 +0200 Subject: [PATCH] ci: fix deploy.js script to use import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ci/deploy.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ci/deploy.js b/ci/deploy.js index c807dc2f08..e8672c0a15 100644 --- a/ci/deploy.js +++ b/ci/deploy.js @@ -1,10 +1,11 @@ -const { promisify } = require('util') -const { publish } = require('gh-pages') -const ghpublish = promisify(publish) +import { promisify } from 'util' +import { publish } from 'gh-pages' /* fix for "Unhandled promise rejections" */ process.on('unhandledRejection', err => { throw err }) +const ghpublish = promisify(publish) + const Args = process.argv.slice(2) const USE_HTTPS = Args[0] && Args[0].toUpperCase() === 'HTTPS'