mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
137 lines
4.5 KiB
JSON
137 lines
4.5 KiB
JSON
{
|
|
"name": "@oceanprotocol/lib",
|
|
"source": "./src/index.ts",
|
|
"version": "1.0.0-next.0",
|
|
"description": "JavaScript client library for Ocean Protocol",
|
|
"main": "./dist/lib.js",
|
|
"umd:main": "dist/lib.umd.js",
|
|
"module": "./dist/lib.module.js",
|
|
"exports": {
|
|
"require": "./dist/lib.js",
|
|
"default": "./dist/lib.modern.js"
|
|
},
|
|
"typings": "./dist/src/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",
|
|
"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:ss": "npm run mocha -- 'test/unit/pools/ssContracts/SideStaking.test.ts'",
|
|
"test:fixed": "npm run mocha -- 'test/unit/pools/fixedRate/FixedRateExchange.test.ts'",
|
|
"test:pool": "npm run mocha -- 'test/unit/pools/balancer/Pool.test.ts'",
|
|
"test:dispenser": "npm run mocha -- 'test/unit/pools/dispenser/Dispenser.test.ts'",
|
|
"test:dt": "npm run mocha -- 'test/unit/tokens/Datatoken.test.ts'",
|
|
"test:nftDt": "npm run mocha -- 'test/unit/Nft.test.ts'",
|
|
"test:factory": "npm run mocha -- 'test/unit/NftFactory.test.ts'",
|
|
"test:router": "npm run mocha -- 'test/unit/pools/Router.test.ts'",
|
|
"test:publishAll": "npm run mocha -- 'test/integration/PublishFlows.test.ts'",
|
|
"test:unit": "npm run mocha -- 'test/unit/**/*.test.ts'",
|
|
"test:unit:cover": "nyc --report-dir coverage/unit npm run test:unit",
|
|
"test:integration": "npm run mocha -- 'test/integration/**/*.test.ts'",
|
|
"test:integration:cover": "nyc --report-dir coverage/integration --no-clean npm run test:integration"
|
|
},
|
|
"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.3.5"
|
|
},
|
|
"dependencies": {
|
|
"bignumber.js": "^9.0.2",
|
|
"cross-fetch": "^3.1.4",
|
|
"crypto-js": "^4.0.0",
|
|
"decimal.js": "^10.2.1",
|
|
"fs": "0.0.1-security",
|
|
"save-file": "^2.3.1",
|
|
"web3": ">=1.3.5",
|
|
"web3-core": "^1.6.1",
|
|
"web3-eth-contract": "^1.6.1"
|
|
},
|
|
"devDependencies": {
|
|
"@truffle/hdwallet-provider": "^1.5.1",
|
|
"@types/chai": "^4.2.19",
|
|
"@types/chai-spies": "^1.0.3",
|
|
"@types/crypto-js": "^4.0.1",
|
|
"@types/mocha": "^9.0.0",
|
|
"@types/node": "^16.10.3",
|
|
"@types/node-fetch": "^3.0.3",
|
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
|
"@typescript-eslint/parser": "^4.33.0",
|
|
"auto-changelog": "^2.3.0",
|
|
"chai": "^4.3.4",
|
|
"chai-spies": "^1.0.0",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^7.17.0",
|
|
"eslint-config-oceanprotocol": "^1.5.0",
|
|
"eslint-config-prettier": "^8.3.0",
|
|
"eslint-plugin-prettier": "^4.0.0",
|
|
"microbundle": "^0.14.2",
|
|
"mocha": "^9.1.2",
|
|
"mock-local-storage": "^1.1.17",
|
|
"nyc": "^15.1.0",
|
|
"ora": "5.4.1",
|
|
"prettier": "^2.3.1",
|
|
"release-it": "^14.12.1",
|
|
"source-map-support": "^0.5.19",
|
|
"ts-node": "^10.0.0",
|
|
"ts-node-register": "^1.0.0",
|
|
"typedoc": "0.22.5",
|
|
"typescript": "^4.3.4"
|
|
},
|
|
"nyc": {
|
|
"include": [
|
|
"src/**/*.ts"
|
|
],
|
|
"extension": [
|
|
".ts"
|
|
],
|
|
"require": [
|
|
"ts-node/register"
|
|
],
|
|
"reporter": [
|
|
"text",
|
|
"lcov",
|
|
"html"
|
|
],
|
|
"sourceMap": true,
|
|
"instrument": 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
|
|
}
|
|
}
|
|
}
|