Skip to content

Commit

Permalink
♻️ Add index file to application and controller
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuGowda committed Jul 1, 2020
1 parent 67f5040 commit af280a7
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 4 deletions.
2 changes: 1 addition & 1 deletion framework/src/application/application.ts
Expand Up @@ -38,7 +38,7 @@ import {
} from '@liskhq/lisk-validator';
import * as _ from 'lodash';
import { systemDirs } from './system_dirs';
import { Controller } from '../controller/controller';
import { Controller } from '../controller';
import { version } from '../version';
import { constantsSchema, applicationConfigSchema } from './schema';
import { ApplicationState } from './application_state';
Expand Down
15 changes: 15 additions & 0 deletions framework/src/application/index.ts
@@ -0,0 +1,15 @@
/*
* Copyright © 2020 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated, or distributed except according to the terms contained in the
* LICENSE file.
*
* Removal or modification of this copyright notice is prohibited.
*/

export { Application } from './application';
15 changes: 15 additions & 0 deletions framework/src/controller/index.ts
@@ -0,0 +1,15 @@
/*
* Copyright © 2020 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated, or distributed except according to the terms contained in the
* LICENSE file.
*
* Removal or modification of this copyright notice is prohibited.
*/

export { Controller } from './controller';
2 changes: 1 addition & 1 deletion framework/src/index.ts
Expand Up @@ -12,7 +12,7 @@
* Removal or modification of this copyright notice is prohibited.
*/

export { Application } from './application/application';
export { Application } from './application';
export { version } from './version';
export { systemDirs } from './application/system_dirs';
export { BasePlugin, PluginInfo } from './plugins/base_plugin';
Expand Down
2 changes: 1 addition & 1 deletion framework/test/unit/specs/application/application.spec.ts
Expand Up @@ -22,7 +22,7 @@ import {
} from '@liskhq/lisk-transactions';
import { validator, LiskValidationError } from '@liskhq/lisk-validator';
import * as _ from 'lodash';
import { Application } from '../../../../src/application/application';
import { Application } from '../../../../src/application';
import * as networkConfig from '../../../fixtures/config/devnet/config.json';
import * as genesisBlock from '../../../fixtures/config/devnet/genesis_block.json';
import { systemDirs } from '../../../../src/application/system_dirs';
Expand Down
2 changes: 1 addition & 1 deletion framework/test/unit/specs/controller/controller.spec.ts
Expand Up @@ -17,7 +17,7 @@ jest.mock('../../../../src/controller/channels/in_memory_channel');

/* eslint-disable import/first */

import { Controller } from '../../../../src/controller/controller';
import { Controller } from '../../../../src/controller';
import { Bus } from '../../../../src/controller/bus';

const createMockPlugin = (alias?: string, loadStub?: any, unloadStub?: any) => {
Expand Down

0 comments on commit af280a7

Please sign in to comment.