Skip to content

Commit 4bc957d

Browse files
Merge pull request cerebral#120 from cerebral/modulesExport
refactor(overmind): move modules to 'overmind/modules'
2 parents 5f89784 + ef22033 commit 4bc957d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "overmind/modules",
3+
"private": true,
4+
"main": "../lib/modules",
5+
"module": "../es/modules",
6+
"jsnext:main": "../es/modules",
7+
"typings": "./lib/modules.d.ts"
8+
}

packages/node_modules/overmind/src/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Action, Overmind, TAction, TApp, modules } from './'
1+
import { Action, Overmind, TAction, TApp } from './'
2+
import { modules } from './modules'
23

34
describe('Overmind', () => {
45
test('should instantiate app with state', () => {

packages/node_modules/overmind/src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ export type Reaction = TReaction<IApp>
6060

6161
const isPlainObject = require('is-plain-object')
6262

63-
export { modules } from './modules'
64-
6563
export const log = (...objects: any[]) =>
6664
console.log(...objects.map((obj) => JSON.parse(JSON.stringify(obj))))
6765

0 commit comments

Comments
 (0)