Commit 2dc18b5 1 parent 5aaf45a commit 2dc18b5 Copy full SHA for 2dc18b5
File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
const inquirer = require ( 'inquirer' ) ;
9
9
const ApiClient = require ( '@lhci/utils/src/api-client.js' ) ;
10
- const StorageMethod = require ( '@lhci/server/src/api/storage/storage-method.js' ) ;
11
10
const _ = require ( '@lhci/utils/src/lodash.js' ) ;
12
11
const log = require ( 'lighthouse-logger' ) ;
13
12
@@ -70,6 +69,8 @@ async function runResetAdminTokenWizard(options) {
70
69
if ( ! options . storage ) {
71
70
throw new Error ( 'Cannot run admin token wizard without a storage configuration' ) ;
72
71
}
72
+ // Require this only when run since `@lhci/server` is an optional dependency
73
+ const StorageMethod = require ( '@lhci/server/src/api/storage/storage-method.js' ) ;
73
74
74
75
const storageMethod = StorageMethod . from ( options . storage ) ;
75
76
await storageMethod . initialize ( options . storage ) ;
You can’t perform that action at this time.
0 commit comments