Webpack / ESM

This commit is contained in:
Aleksandr Kraiz
2022-04-24 01:24:39 +04:00
parent 0804b592d8
commit f4297f2a0d
4 changed files with 3179 additions and 154 deletions

View File

@@ -1,16 +1,19 @@
{
"name": "@orionprotocol/sdk",
"version": "0.2.5",
"version": "0.2.6",
"description": "Orion Protocol SDK",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"main": "./lib/umd/index.js",
"module": "./lib/esm/index.js",
"types": "./lib/esm/index.d.ts",
"scripts": {
"start": "npm run build-ts && node lib/index.js",
"start": "npm run build && node lib/esm/index.js",
"develop": "concurrently -i -k -p \"[{name}]\" -n \"Node,TypeScript\" -c \"yellow.bold,cyan.bold\" \"yarn watch-js\" \"yarn watch-ts\"",
"clean": "rimraf lib/*",
"build-ts": "npm run typechain:generate-types && tsc --skipLibCheck",
"watch-ts": "npm run typechain:generate-types && tsc -w --skipLibCheck",
"watch-js": "nodemon lib/index.js",
"watch-js": "nodemon lib/esm/index.js",
"prepare": "npm run build",
"prebuild": "npm run typechain:generate-types && tsc",
"build": "webpack",
"test": "exit 0",
"coverage": "jest --coverage",
"lint:eslint": "eslint ./src --ext .ts,.js,.tsx,.jsx",
@@ -44,25 +47,33 @@
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.16.0",
"@typescript-eslint/parser": "^5.16.0",
"babel-core": "^6.26.3",
"babel-loader": "^8.2.5",
"concurrently": "^7.0.0",
"eslint": "^8.12.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.25.4",
"husky": "^7.0.4",
"jest": "^27.5.1",
"ts-loader": "^9.2.8",
"typechain": "^8.0.0",
"typescript": "^4.5.3"
"typescript": "^4.6.3",
"webpack": "^5.72.0",
"webpack-cli": "^4.9.2"
},
"dependencies": {
"@ethersproject/abstract-signer": "^5.6.0",
"@ethersproject/providers": "^5.6.2",
"bignumber.js": "^9.0.2",
"buffer": "^6.0.3",
"crypto-browserify": "^3.12.0",
"csprng": "^0.1.2",
"ethers": "^5.6.2",
"isomorphic-ws": "^4.0.1",
"just-clone": "^5.0.1",
"node-fetch": "^2.6.7",
"socket.io-client": "2.4.0",
"stream-browserify": "^3.0.0",
"tiny-invariant": "^1.2.0",
"uuid": "^8.3.2",
"websocket-heartbeat-js": "^1.1.0",