diff --git a/lib/environment/inventory.js b/lib/environment/inventory.js index 4994a89..2aa3fdf 100644 --- a/lib/environment/inventory.js +++ b/lib/environment/inventory.js @@ -1,6 +1,5 @@ const fs = require('fs-extra'); const path = require('path'); -const { Octokit } = require('@octokit/rest'); const MODULE_CACHE_FILE = '/inventory.json'; @@ -32,7 +31,10 @@ function readModules() { } async function fetchAndStoreModules() { + const { Octokit } = await import('@octokit/rest'); + const octokit = new Octokit(); + const repos = { apps: [], libs: [], other: [], platforms: [], plugins: [] }; const options = octokit.repos.listForOrg.endpoint.merge({ org: 'folio-org', type: 'public' }); const data = await octokit.paginate(options);