-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathpackage.json
More file actions
152 lines (152 loc) · 5.12 KB
/
package.json
File metadata and controls
152 lines (152 loc) · 5.12 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"name": "@oceanprotocol/lib",
"source": "./src/index.ts",
"version": "6.1.2",
"description": "JavaScript client library for Ocean Protocol",
"main": "./dist/lib.cjs",
"umd:main": "dist/lib.umd.js",
"module": "./dist/lib.module.mjs",
"type": "module",
"export": {
"require": "./dist/lib.cjs",
"import": "./dist/lib.module.mjs",
"default": "./dist/lib.modern.mjs"
},
"types": "./dist/types/index.d.ts",
"scripts": {
"start": "npm run clean && npm run build:metadata && tsc -w",
"build": "npm run clean && npm run build:metadata && microbundle build --format modern,esm,cjs,umd --compress --tsconfig tsconfig.json",
"build:tsc": "tsc --sourceMap",
"build:metadata": "node ./scripts/get-metadata.js > src/metadata.json",
"clean": "rm -rf ./dist/ ./doc/ ./.nyc_output",
"lint": "eslint --ignore-path .gitignore --ext .ts,.tsx . && npm run type-check",
"lint:fix": "eslint --ignore-path .gitignore --ext .ts,.tsx . --fix",
"format": "prettier --parser typescript --ignore-path .gitignore --write '**/*.{js,jsx,ts,tsx}'",
"type-check": "npm run build:metadata && tsc --noEmit",
"doc:json": "node ./scripts/typedoc.js",
"docs": "typedoc --options typedoc.json --plugin typedoc-plugin-markdown",
"run": "ts-node",
"release": "release-it --non-interactive",
"changelog": "auto-changelog -p",
"prepublishOnly": "npm run build",
"mocha": "TS_NODE_PROJECT='./test/tsconfig.json' mocha --config=test/.mocharc.json --node-env=test --exit",
"test": "npm run lint && npm run test:unit:cover && npm run test:integration:cover",
"test:unit": "npx tsx ./node_modules/mocha/bin/mocha.js --config ./test/.mocharc.json 'test/unit/**/*.test.ts' --verbose",
"test:sapphire": "npm run mocha -- 'test/integration/Sapphire.test.ts'",
"test:integration": "npx tsx ./node_modules/mocha/bin/mocha.js --config ./test/.mocharc.json 'test/integration/**/*.test.ts' --exclude 'test/integration/Sapphire.test.ts' --verbose",
"test:unit:cover": "nyc --report-dir coverage/unit npm run test:unit",
"test:integration:cover": "nyc --report-dir coverage/integration --no-clean npm run test:integration",
"create:guide": "./scripts/createCodeExamples.sh test/integration/CodeExamples.test.ts",
"create:guidec2d": "./scripts/createCodeExamples.sh test/integration/ComputeExamples.test.ts",
"commit:guides": "./scripts/commitChanges.sh",
"commit:docs": "./scripts/updateDocs.sh"
},
"repository": {
"type": "git",
"url": "git+https://github.com/oceanprotocol/ocean.js.git"
},
"keywords": [],
"author": "Ocean Protocol <devops@oceanprotocol.com>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/oceanprotocol/ocean.js/issues"
},
"homepage": "https://github.com/oceanprotocol/ocean.js#readme",
"peerDependencies": {
"web3": "^1.8.0"
},
"dependencies": {
"@oasisprotocol/sapphire-paratime": "^1.3.2",
"@oceanprotocol/contracts": "^2.6.0",
"@oceanprotocol/ddo-js": "^0.1.4",
"@rdfjs/dataset": "^2.0.2",
"@rdfjs/formats-common": "^3.1.0",
"@zazuko/env-node": "^2.1.4",
"bignumber.js": "^9.3.1",
"cross-fetch": "^4.0.0",
"crypto-js": "^4.1.1",
"decimal.js": "^10.4.1",
"eciesjs": "^0.4.5",
"ethers": "^6.15.0",
"form-data": "^2.3.3",
"jsonwebtoken": "^9.0.2"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@truffle/hdwallet-provider": "^2.0.14",
"@types/chai": "^5.2.2",
"@types/chai-spies": "^1.0.3",
"@types/crypto-js": "^4.1.1",
"@types/jsonwebtoken": "^9.0.10",
"@types/mocha": "^10.0.10",
"@types/node": "^24.3.0",
"@types/node-fetch": "^3.0.3",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^6.4.1",
"auto-changelog": "^2.4.0",
"c8": "^10.1.3",
"chai": "^6.2.2",
"chai-spies": "^1.0.0",
"cross-env": "^7.0.3",
"eslint": "^8.23.1",
"eslint-config-oceanprotocol": "^2.0.3",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^4.2.1",
"fs": "0.0.1-security",
"microbundle": "^0.15.1",
"mocha": "^11.7.1",
"mock-local-storage": "^1.1.24",
"nyc": "^17.1.0",
"ora": "5.4.1",
"prettier": "^2.7.1",
"release-it": "^19.2.4",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.2",
"ts-node-register": "^1.0.0",
"tsx": "^4.19.2",
"typedoc": "^0.25.1",
"typedoc-plugin-markdown": "^4.0.3",
"typescript": "^5.1.6"
},
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"include": [
"src/**/*.ts"
],
"exclude": [
"src/@types/**/*",
"test/**/*",
"node_modules/**"
],
"extension": [
".ts",
".tsx"
],
"reporter": [
"lcov",
"text",
"html"
],
"sourceMap": true,
"instrument": true,
"all": true
},
"release-it": {
"hooks": {
"after:bump": "npm run build && npm run changelog && npm run doc:json"
},
"plugins": {},
"git": {
"tagName": "v${version}"
},
"github": {
"release": true,
"assets": [
"dist/lib.json"
]
},
"npm": {
"publish": false
}
}
}