diff --git a/package.json b/package.json index a215ecc..d6e8bf9 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "main": "lib/index.js", "module": "lib/index.esm.js", "types": "lib/index.d.ts", - "version": "0.1.0", + "version": "0.1.1", "description": "JSON RPC over PostMessage", "repository": "https://github.com/statianzo/pmrpc", "author": "statianzo", @@ -16,13 +16,16 @@ "lib/JsonRpc.d.ts" ], "scripts": { - "prepublish": "yarn build", - "build": "rollup -c", + "prepublishOnly": "yarn bundle", + "bundle": "rollup -c", "test": "jest" }, "devDependencies": { "@types/jest": "^23.3.1", + "@types/puppeteer": "^1.6.4", + "@types/rollup": "^0.54.0", "jest": "^23.5.0", + "puppeteer": "^1.8.0", "rollup": "^0.65.2", "rollup-plugin-typescript2": "^0.17.0", "ts-jest": "^23.1.4", @@ -30,16 +33,13 @@ }, "jest": { "transform": { - "^.+\\.tsx?$": "ts-jest" + "^.+\\.(ts|js)$": "ts-jest" }, "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$", "moduleFileExtensions": [ "ts", - "tsx", "js", - "jsx", - "json", - "node" + "json" ] } }