|
1 | 1 | { |
2 | 2 | "name": "@network-goods/hypercerts-sdk", |
3 | | - "version": "0.0.4", |
| 3 | + "version": "0.0.12", |
4 | 4 | "description": "SDK for hypercerts protocol", |
5 | 5 | "repository": "git@github.com:Network-Goods/hypercerts-sdk.git", |
6 | 6 | "author": "Network Goods", |
7 | 7 | "license": "MIT", |
| 8 | + "source": "src/index.ts", |
8 | 9 | "typedocMain": "src/index.ts", |
9 | | - "main": "./lib/cjs/src/index.js", |
| 10 | + "main": "./lib/index.js", |
| 11 | + "types": "./lib/index.d.ts", |
10 | 12 | "files": [ |
11 | | - "lib/**/*" |
| 13 | + "lib", |
| 14 | + "README.md", |
| 15 | + "package.json" |
12 | 16 | ], |
13 | 17 | "dependencies": { |
| 18 | + "@graphprotocol/client-add-source-name": "latest", |
| 19 | + "@graphprotocol/client-auto-pagination": "latest", |
| 20 | + "@graphprotocol/client-auto-type-merging": "latest", |
| 21 | + "@graphql-mesh/cache-localforage": "latest", |
| 22 | + "@graphql-mesh/cross-helpers": "latest", |
| 23 | + "@graphql-mesh/graphql": "latest", |
| 24 | + "@graphql-mesh/http": "latest", |
| 25 | + "@graphql-mesh/json-schema": "latest", |
| 26 | + "@graphql-mesh/merger-bare": "latest", |
| 27 | + "@graphql-mesh/merger-stitching": "latest", |
| 28 | + "@graphql-mesh/plugin-mock": "latest", |
| 29 | + "@graphql-mesh/runtime": "latest", |
| 30 | + "@graphql-mesh/store": "latest", |
| 31 | + "@graphql-mesh/transform-filter-schema": "latest", |
| 32 | + "@graphql-mesh/transform-prefix": "latest", |
| 33 | + "@graphql-mesh/transform-prune": "latest", |
| 34 | + "@graphql-mesh/transform-rename": "latest", |
| 35 | + "@graphql-mesh/transform-type-merging": "latest", |
| 36 | + "@graphql-mesh/utils": "latest", |
| 37 | + "@graphql-tools/merge": "latest", |
14 | 38 | "@network-goods/hypercerts-protocol": "0.0.6", |
| 39 | + "@types/jest": "^29.2.5", |
15 | 40 | "ajv": "^8.11.2", |
16 | 41 | "axios": "^1.2.2", |
17 | 42 | "ethers": "^5.7.2", |
18 | 43 | "graphql": "^16.6.0", |
19 | 44 | "ipfs-core": "^0.17.0", |
| 45 | + "jest": "^29.3.1", |
20 | 46 | "loglevel": "^1.8.1", |
21 | 47 | "mime": "^3.0.0", |
22 | 48 | "nft.storage": "^7.0.0", |
| 49 | + "ts-jest": "^29.0.3", |
23 | 50 | "ts-mocha": "^10.0.0" |
24 | 51 | }, |
25 | 52 | "devDependencies": { |
26 | 53 | "@graphprotocol/client-cli": "^2.2.15", |
27 | 54 | "@types/chai": "^4.3.4", |
28 | | - "@types/mocha": "^10.0.1", |
29 | 55 | "@types/node": "^18.11.17", |
30 | 56 | "chai": "^4.3.7", |
31 | 57 | "it-all": "^2.0.0", |
32 | 58 | "json-schema-to-typescript": "^11.0.2", |
33 | | - "mocha": "^10.1.0", |
34 | 59 | "mockipfs": "^0.3.0", |
35 | 60 | "mockttp": "^3.6.1", |
36 | 61 | "nyc": "^15.1.0", |
37 | 62 | "shx": "^0.3.4", |
38 | | - "ts-mocha": "^10.0.0", |
| 63 | + "ts-jest-resolver": "^2.0.0", |
39 | 64 | "ts-node": "^10.9.1", |
40 | | - "typescript": "^4.9.3" |
| 65 | + "typescript": "^4.9.0" |
41 | 66 | }, |
42 | 67 | "resolutions": { |
43 | 68 | "graphql": "^16.6.0" |
44 | 69 | }, |
45 | 70 | "scripts": { |
46 | | - "graph:build": "yarn graph:build:client && tsc", |
47 | | - "graph:build:client": "graphclient build", |
| 71 | + "graph:build": "rm -rf ./src/.graphclient && NODE_OPTIONS='--loader ts-node/esm' graphclient build --throwOnInvalidConfig && mv .graphclient ./src/.graphclient", |
48 | 72 | "graph:compile": "graphql-codegen", |
49 | 73 | "graph:serve": "graphclient serve-dev", |
50 | | - "graph:tsc": "tsc", |
51 | | - "graph:test": "echo \"Error: No tests\" && exit 1", |
52 | 74 | "graph:watch": "graphql-codegen -w", |
53 | | - "clean": "rm -rf ./lib", |
54 | | - "build": "npm run clean && npm run graph:build &&npm run build:esm && npm run build:cjs", |
55 | | - "build:esm": "tsc -p ./tsconfig.esm.json && mv ./lib/esm/src/index.js ./lib/esm/src/index.mjs", |
56 | | - "build:cjs": "tsc -p ./tsconfig.cjs.json", |
57 | | - "prepack": "npm run build", |
58 | | - "test": "ts-mocha -r dotenv/config test/*.ts" |
| 75 | + "graph:build:esm": "rm -rf ./src/.graphclient && NODE_OPTIONS='--loader ts-node/esm' graphclient build --filetype js --throwOnInvalidConfig && mv .graphclient ./src/.graphclient", |
| 76 | + "clean": "rm -rf ./lib && rm -rf ./src/types", |
| 77 | + "build": "yarn clean && yarn types:json && yarn graph:build:esm && yarn build:esm", |
| 78 | + "build:esm": "tsc", |
| 79 | + "prebuild": "yarn clean", |
| 80 | + "prepack": "yarn build", |
| 81 | + "test": "NODE_OPTIONS=\"--experimental-vm-modules\" jest", |
| 82 | + "types:json": "yarn run json2ts -i './src/resources/schema/' -o 'src/types' --cwd './src/resources/schema' --no-declareExternallyReferenced" |
59 | 83 | }, |
60 | | - "exports": { |
61 | | - ".": { |
62 | | - "import": { |
63 | | - "types": "./lib/esm/types/src/index.d.ts", |
64 | | - "default": "./lib/esm/src/index.mjs" |
65 | | - }, |
66 | | - "require": { |
67 | | - "types": "./lib/cjs/types/src/index.d.ts", |
68 | | - "default": "./lib/cjs/src/index.js" |
69 | | - } |
70 | | - } |
71 | | - } |
| 84 | + "type": "module" |
72 | 85 | } |
0 commit comments