Skip to content

Commit 210fab3

Browse files
committed
fix build exports
1 parent bee6639 commit 210fab3

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"module": "dist/object-factory-bot.module.js",
1010
"exports": "./dist/object-factory-bot.modern.js",
1111
"unpkg": "dist/object-factory-bot.umd.js",
12-
"source": "src/index.ts",
12+
"source": "src/factory.ts",
1313
"engines": {
1414
"node": ">=10"
1515
},

src/factory.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* global describe, afterEach, it, expect */
22
import { Sequences } from './sequences'
3-
import { Factory } from './factory'
3+
import Factory from './factory'
44
import { FactoriesMap } from './factories'
55

66
describe('Factory', () => {

src/factory.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import { Sequences } from './sequences'
1+
import { IDENTIFIER as sequence } from './sequences'
22
import { Reference, ReferenceOptions } from './reference'
33
import { getFactory } from './factories'
44
import { propertyFactory } from './property-factory'
55
import { Factory as FactoryI } from './types'
66

7-
export const Factory: FactoryI = {
7+
const Factory: FactoryI = {
88

99
defaults: Object.create(null),
1010

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

1313
reference(name: string, options: ReferenceOptions = {}): Reference {
1414
return new Reference(name, options)
@@ -41,3 +41,5 @@ export const Factory: FactoryI = {
4141
return object
4242
},
4343
}
44+
45+
export default Factory

0 commit comments

Comments
 (0)