1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.default = {
|
4 |
|
5 | get HTTP() { return fetch('http-call').HTTP; },
|
6 | get moment() { return fetch('moment'); },
|
7 | get klaw() { return fetch('klaw'); },
|
8 | get Heroku() { return fetch('@heroku-cli/command'); },
|
9 | get semver() { return fetch('semver'); },
|
10 | get assync() { return fetch('assync').default; },
|
11 | get filesize() { return fetch('filesize'); },
|
12 | get globby() { return fetch('globby'); },
|
13 |
|
14 | get Help() { return fetch('./commands/help').default; },
|
15 | get Hooks() { return fetch('./hooks').Hooks; },
|
16 | get NotFound() { return fetch('./not_found').default; },
|
17 | get Updater() { return fetch('./updater').Updater; },
|
18 | get util() { return fetch('./util'); },
|
19 | get file() { return fetch('./file'); },
|
20 | get fs() { return fetch('fs-extra'); },
|
21 | get validate() { return fetch('./validate'); },
|
22 |
|
23 | get Plugins() { return fetch('./plugins').Plugins; },
|
24 | get Yarn() { return fetch('./plugins/yarn').default; },
|
25 | get PluginManifest() { return fetch('./plugins/manifest').PluginManifest; },
|
26 | get PluginLegacy() { return fetch('./plugins/legacy').PluginLegacy; },
|
27 | get CommandManager() { return fetch('./command').CommandManager; },
|
28 | };
|
29 | const cache = {};
|
30 | function fetch(s) {
|
31 | if (s in cache)
|
32 | return cache[s];
|
33 | try {
|
34 | return cache[s] = require(s);
|
35 | }
|
36 | catch (err) {
|
37 | if (err.code !== 'ENOENT')
|
38 | throw err;
|
39 | cache[s] = undefined;
|
40 | }
|
41 | }
|