UNPKG

react-native-webview-comlink

Version:

Add JavaScript interface for react-native-webview, based on Comlink

70 lines (69 loc) 2.31 kB
{ "name": "react-native-webview-comlink", "version": "0.7.6", "description": "Add JavaScript interface for react-native-webview, based on Comlink", "main": "lib/index.js", "files": [ "lib/" ], "scripts": { "clean": "rm -rf lib", "build": "npm run clean && npm run tsc && npm run rollup", "tsc": "tsc -d", "rollup": "rollup --config --compact", "release": "npm run build && standard-version && git push --follow-tags origin master && npm publish", "test": "jest", "start": "concurrently npm:start:tsc npm:start:rollup npm:start:example-web npm:start:msf-native npm:start:example-native --raw", "start:tsc": "npm run tsc -- --watch", "start:rollup": "npm run rollup -- --watch", "start:msf-native": "msf --mode update lib examples/native/node_modules/react-native-webview-comlink/lib", "start:example-web": "cd examples/web && npm start", "start:example-native": "cd examples/native && npm start" }, "repository": { "type": "git", "url": "git+https://github.com/rocwind/react-native-webview-comlink.git" }, "keywords": [ "comlink", "rpc", "react-native", "webview", "javascriptinterface" ], "author": "Roc", "license": "MIT", "bugs": { "url": "https://github.com/rocwind/react-native-webview-comlink/issues" }, "homepage": "https://github.com/rocwind/react-native-webview-comlink#readme", "dependencies": { "hoist-non-react-statics": "^3.3.2" }, "devDependencies": { "@babel/core": "7.17.5", "@babel/plugin-transform-runtime": "7.17.0", "@babel/preset-env": "7.16.11", "@babel/runtime": "7.17.2", "@rollup/plugin-babel": "5.3.1", "@rollup/plugin-commonjs": "21.0.2", "@rollup/plugin-node-resolve": "13.1.3", "@types/hoist-non-react-statics": "3.3.1", "@types/jest": "27.4.1", "@types/react": "17.0.39", "@types/react-native": "0.67.0", "concurrently": "7.0.0", "jest": "27.5.1", "metro-react-native-babel-preset": "0.69.0", "msf-cli": "1.2.4", "react": "17.0.1", "react-native": "0.67.3", "react-native-webview": "11.17.2", "rollup": "2.68.0", "rollup-plugin-cleanup": "3.2.1", "rollup-plugin-terser": "7.0.2", "standard-version": "9.3.2", "ts-jest": "27.1.3", "typescript": "4.5.5" } }