Skip to content

Commit

Permalink
fix build exports
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanstitt committed Mar 10, 2021
1 parent bee6639 commit 210fab3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"module": "dist/object-factory-bot.module.js",
"exports": "./dist/object-factory-bot.modern.js",
"unpkg": "dist/object-factory-bot.umd.js",
"source": "src/index.ts",
"source": "src/factory.ts",
"engines": {
"node": ">=10"
},
Expand Down
2 changes: 1 addition & 1 deletion src/factory.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* global describe, afterEach, it, expect */
import { Sequences } from './sequences'
import { Factory } from './factory'
import Factory from './factory'
import { FactoriesMap } from './factories'

describe('Factory', () => {
Expand Down
8 changes: 5 additions & 3 deletions src/factory.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Sequences } from './sequences'
import { IDENTIFIER as sequence } from './sequences'
import { Reference, ReferenceOptions } from './reference'
import { getFactory } from './factories'
import { propertyFactory } from './property-factory'
import { Factory as FactoryI } from './types'

export const Factory: FactoryI = {
const Factory: FactoryI = {

defaults: Object.create(null),

get sequence(): typeof Sequences['identifier'] { return Sequences.identifier },
sequence,

reference(name: string, options: ReferenceOptions = {}): Reference {
return new Reference(name, options)
Expand Down Expand Up @@ -41,3 +41,5 @@ export const Factory: FactoryI = {
return object
},
}

export default Factory

0 comments on commit 210fab3

Please sign in to comment.