Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
fix: use 'named' exports on the folders' indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
homer0 committed Jul 15, 2020
1 parent 8b39b96 commit 1ce2f2c
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 49 deletions.
6 changes: 1 addition & 5 deletions browser/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
const SimpleStorage = require('./simpleStorage');

module.exports = {
SimpleStorage,
};
module.exports.SimpleStorage = require('./simpleStorage');
24 changes: 7 additions & 17 deletions node/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
const { AppConfiguration } = require('./appConfiguration');
const { EnvironmentUtils } = require('./environmentUtils');
const { ErrorHandler } = require('./errorHandler');
const { Logger } = require('./logger');
const { packageInfo } = require('./packageInfo');
const { PathUtils } = require('./pathUtils');
const { rootRequire } = require('./rootRequire');

module.exports = {
AppConfiguration,
EnvironmentUtils,
ErrorHandler,
Logger,
packageInfo,
PathUtils,
rootRequire,
};
module.exports.AppConfiguration = require('./appConfiguration').AppConfiguration;
module.exports.EnvironmentUtils = require('./environmentUtils').EnvironmentUtils;
module.exports.ErrorHandler = require('./errorHandler').ErrorHandler;
module.exports.Logger = require('./logger').Logger;
module.exports.packageInfo = require('./packageInfo').packageInfo;
module.exports.PathUtils = require('./pathUtils').PathUtils;
module.exports.rootRequire = require('./rootRequire').rootRequire;
26 changes: 12 additions & 14 deletions node/providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,15 @@ const { packageInfoProvider } = require('./packageInfo');
const { pathUtils, pathUtilsWithHome } = require('./pathUtils');
const { rootRequireProvider } = require('./rootRequire');

module.exports = {
appConfiguration,
environmentUtils,
errorHandlerWithOptions,
errorHandler,
loggerWithOptions,
logger,
appLoggerWithOptions,
appLogger,
packageInfo: packageInfoProvider,
pathUtils,
pathUtilsWithHome,
rootRequire: rootRequireProvider,
};
module.exports.appConfiguration = appConfiguration;
module.exports.environmentUtils = environmentUtils;
module.exports.errorHandlerWithOptions = errorHandlerWithOptions;
module.exports.errorHandler = errorHandler;
module.exports.loggerWithOptions = loggerWithOptions;
module.exports.logger = logger;
module.exports.appLoggerWithOptions = appLoggerWithOptions;
module.exports.appLogger = appLogger;
module.exports.packageInfo = packageInfoProvider;
module.exports.pathUtils = pathUtils;
module.exports.pathUtilsWithHome = pathUtilsWithHome;
module.exports.rootRequire = rootRequireProvider;
18 changes: 5 additions & 13 deletions shared/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
const APIClient = require('./apiClient');
const deferred = require('./deferred');
const EventsHub = require('./eventsHub');
const extendPromise = require('./extendPromise');
const ObjectUtils = require('./objectUtils');

module.exports = {
APIClient,
deferred,
EventsHub,
extendPromise,
ObjectUtils,
};
module.exports.APIClient = require('./apiClient');
module.exports.deferred = require('./deferred');
module.exports.EventsHub = require('./eventsHub');
module.exports.extendPromise = require('./extendPromise');
module.exports.ObjectUtils = require('./objectUtils');

0 comments on commit 1ce2f2c

Please sign in to comment.