-
Notifications
You must be signed in to change notification settings - Fork 28
/
package.json
114 lines (114 loc) · 3.82 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"name": "@ethersphere/bee-js",
"version": "8.3.1",
"description": "Javascript client for Bee",
"keywords": [
"bee",
"swarm",
"decentralised",
"storage",
"ethereum",
"typescript",
"p2p",
"browser",
"node"
],
"homepage": "https://github.com/ethersphere/bee-js",
"bugs": {
"url": "https://github.com/ethersphere/bee-js/issues/"
},
"license": "BSD-3-Clause",
"repository": {
"type": "git",
"url": "https://github.com/ethersphere/bee-js.git"
},
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
"exports": {
".": {
"import": "./dist/mjs/index.js",
"require": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts"
}
},
"types": "dist/types/index.d.ts",
"browser": {
"stream": false,
"fs": false,
"./src/utils/data.ts": "./src/utils/data.browser.ts",
"./dist/cjs/utils/data.js": "./dist/cjs/utils/data.browser.js",
"./dist/mjs/utils/data.js": "./dist/mjs/utils/data.browser.js",
"./dist/cjs/utils/collection.node.js": "./dist/cjs/utils/collection.browser.js",
"./dist/mjs/utils/collection.node.js": "./dist/mjs/utils/collection.browser.js",
"./src/utils/collection.node.ts": "./src/utils/collection.browser.ts"
},
"files": [
"dist"
],
"scripts": {
"prepublishOnly": "cross-env NODE_ENV=production npm run build",
"build": "rimraf dist && npm run build:node && npm run build:types && npm run build:browser",
"build:node": "tsc -p tsconfig.json && tsc -p tsconfig-mjs.json && ./build-fixup && babel --plugins \"babel-plugin-add-import-extension\" --out-dir dist/mjs/ dist/mjs/",
"build:types": "tsc --emitDeclarationOnly --declaration --outDir dist/types",
"build:browser": "webpack --progress",
"mock-ci": "npm run lint:check && npm run check:types && npm run test",
"test": "jest --config=jest.config.ts --runInBand --verbose",
"test:coverage": "jest --config=jest.config.ts --coverage",
"check:types": "tsc --project tsconfig.test.json",
"lint": "eslint --fix \"src/**/*.ts\" \"test/**/*.ts\" && prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"lint:check": "eslint \"src/**/*.ts\" \"test/**/*.ts\" && prettier --check \"src/**/*.ts\" \"test/**/*.ts\"",
"depcheck": "depcheck .",
"bee": "npx @fairdatasociety/fdp-play@3.2.0 start --detach --fresh"
},
"dependencies": {
"axios": "^0.28.1",
"cafe-utility": "^23.10.0",
"elliptic": "^6.5.4",
"isomorphic-ws": "^4.0.1",
"js-sha3": "^0.8.0",
"semver": "^7.3.5",
"ws": "^8.7.0"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.5",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@commitlint/cli": "^17.0.2",
"@commitlint/config-conventional": "^17.4.2",
"@jest/types": "^29.6.3",
"@naholyr/cross-env": "^1.0.0",
"@types/elliptic": "^6.4.14",
"@types/jest": "^29.5.13",
"@types/node": "^18.11.11",
"@types/semver": "^7.3.9",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.46.0",
"@typescript-eslint/parser": "^5.46.0",
"babel-loader": "^9.1.0",
"babel-plugin-add-import-extension": "^1.6.0",
"cross-env": "^7.0.3",
"depcheck": "^1.4.7",
"eslint": "^8.13.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"husky": "^8.0.1",
"jest": "^29.7.0",
"nock": "^13.3.0",
"prettier": "^2.6.2",
"rimraf": "^3.0.2",
"terser-webpack-plugin": "^5.3.1",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.1",
"typescript": "^4.9.5",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1"
},
"engines": {
"bee": "2.2.0-06a0aca7",
"beeApiVersion": "7.1.0"
}
}