Skip to content

Commit 8ebae7b

Browse files
Fixed syntax for CommonJS module exporting/importing.
`massive` is written in CommonJS and not Typescript. Exporting it like `export {default as massive} from 'massive'` would export massive with `undefined` value.
1 parent b7253e8 commit 8ebae7b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
declare function require(name:string):any;
2+
const massive = require('massive');
3+
export { massive }
14
export { MassiveActionHandler } from './MassiveActionHandler'
25
export { Migration } from './Migration'
36
export { MigrationRunner } from './MigrationRunner'
47
export { MigrationSequence, MassiveActionHandlerOptions } from './interfaces'
5-
export { default as massive } from 'massive'

0 commit comments

Comments
 (0)