From d43e7e4e39f84daaa5dcc9585bc7a15635c5ab38 Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Thu, 14 Nov 2024 13:54:55 +0100 Subject: [PATCH 1/2] bump documenation lib --- package.json | 2 +- runok.js | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index aa62688a9..020e8b05d 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ "chai-subset": "1.6.0", "cheerio": "^1.0.0", "contributor-faces": "1.1.0", - "documentation": "12.3.0", + "documentation": "14.0.3", "electron": "33.2.0", "eslint": "8.57.0", "eslint-config-airbnb-base": "15.0.0", diff --git a/runok.js b/runok.js index 6e9f09989..46a8bc3b2 100755 --- a/runok.js +++ b/runok.js @@ -2,7 +2,7 @@ const fs = require('fs') const path = require('path') const axios = require('axios') -const documentation = require('documentation') + const { stopOnFail, chdir, @@ -13,6 +13,12 @@ const contributors = require('contributor-faces') const { execSync } = require('node:child_process') const semver = require('semver') +let documentation + +import('documentation').then(mod => + documentation = mod, +); + const helperMarkDownFile = function (name) { return `docs/helpers/${name}.md` } From 357b3a5485fdce8c8d2be4beb63889d6ad7d33c5 Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Thu, 14 Nov 2024 13:55:44 +0100 Subject: [PATCH 2/2] bump documenation lib --- runok.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/runok.js b/runok.js index 46a8bc3b2..ca24886f6 100755 --- a/runok.js +++ b/runok.js @@ -15,9 +15,7 @@ const semver = require('semver') let documentation -import('documentation').then(mod => - documentation = mod, -); +import('documentation').then((mod) => (documentation = mod)) const helperMarkDownFile = function (name) { return `docs/helpers/${name}.md`