Skip to content

Commit 42c4fd2

Browse files
authored
Merge pull request #6 from jsdevtom/fixExportedTypes
Fix exported types
2 parents 65a6714 + 72ecb9a commit 42c4fd2

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

package.json

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "4.0.2",
44
"description": "",
55
"keywords": [],
6-
"main": "dist/truegin.umd.js",
7-
"module": "dist/truegin.es5.js",
8-
"typings": "dist/types/truegin.d.ts",
6+
"main": "dist/lib/truegin.js",
7+
"module": "dist/lib/truegin.js",
8+
"typings": "dist/lib/truegin.d.ts",
99
"files": [
1010
"dist"
1111
],
@@ -54,15 +54,13 @@
5454
"@types/object-hash": "^1.2.0",
5555
"awesome-typescript-loader": "^5.0.0",
5656
"colors": "^1.1.2",
57-
"commitizen": "^2.10.1",
57+
"commitizen": "^2.9.6",
5858
"coveralls": "^3.0.0",
5959
"cross-env": "^5.0.1",
6060
"cz-conventional-changelog": "^2.0.0",
6161
"husky": "^0.14.0",
62-
"istanbul-api": "1.2.2",
63-
"istanbul-reports": "1.1.4",
6462
"jest": "^22.0.2",
65-
"lint-staged": "^7.2.0",
63+
"lint-staged": "^7.0.0",
6664
"lodash.camelcase": "^4.3.0",
6765
"prettier": "^1.4.4",
6866
"prompt": "^1.0.0",
@@ -80,7 +78,7 @@
8078
"typescript": "^2.6.2",
8179
"uglifyjs-webpack-plugin": "^1.2.5",
8280
"validate-commit-msg": "^2.12.2",
83-
"webpack": "^4.16.2",
81+
"webpack": "^4.8.3",
8482
"webpack-cli": "^2.1.3"
8583
},
8684
"dependencies": {

src/truegin.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import {Engine, EngineOptions} from './engine'
22
import {Fact} from './fact'
33
import {Rule} from './rule'
44
import {Operator} from './operator'
5+
import {Almanac} from './almanac'
56

6-
export { Fact, Rule, Operator, Engine }
7+
export { Fact, Rule, Operator, Engine, Almanac }
78
export function engineFactory (rules?: Rule[], options?: EngineOptions) {
89
return new Engine(rules, options)
910
}

0 commit comments

Comments
 (0)