diff --git a/jest.config.js b/jest.config.js new file mode 100644 index 0000000..2d94fac --- /dev/null +++ b/jest.config.js @@ -0,0 +1,9 @@ +module.exports = { + "roots": [ + "./src" + ], + "transform": { + "^.+\\.ts$": "ts-jest", + "^.+\\.js$": "babel-jest", + }, +} diff --git a/package.json b/package.json index 6aa2228..9c44d41 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,12 @@ "@babel/cli": "^7.6.4", "@babel/core": "^7.6.4", "@babel/preset-env": "^7.6.3", + "@types/lodash": "^4.14.144", "babel-jest": "^24.9.0", "jest": "^24.9.0", + "ts-jest": "^24.1.0", + "tsd": "^0.10.0", + "typescript": "^3.6.4", "updeep": "^1.2.0" }, "license": "MIT", @@ -20,16 +24,18 @@ "test": "jest" }, "version": "0.1.0", - "repository": { - "type": "git", - "url": "git+https://github.com/yanick/updux.git" - }, - "keywords": [ - "redux", "updeep" - ], - "author": "Yanick Champoux (http://techblog.babyl.ca)", - "bugs": { - "url": "https://github.com/yanick/updux/issues" - }, - "homepage": "https://github.com/yanick/updux#readme" + "repository": { + "type": "git", + "url": "git+https://github.com/yanick/updux.git" + }, + "keywords": [ + "redux", + "updeep" + ], + "author": "Yanick Champoux (http://techblog.babyl.ca)", + "bugs": { + "url": "https://github.com/yanick/updux/issues" + }, + "homepage": "https://github.com/yanick/updux#readme", + "types": "./index.d.ts" }