Skip to content

Commit

Permalink
fix: add package and update command param
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Dec 9, 2023
1 parent 88c68ca commit f4fcb6f
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 14 deletions.
5 changes: 3 additions & 2 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"clean": "rm -rf dist",
"prebuild": "yarn --cwd='../..' vrf build",
"build": "yarn clean && tsc",
"cli": "node --no-warnings --experimental-specifier-resolution=node --experimental-json-modules dist/index.js",
"cli": "node --no-warnings --import=specifier-resolution-node/register --experimental-json-modules dist/index.js",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
"test": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js"
},
Expand All @@ -32,7 +32,8 @@
"@bisonai/orakl-vrf": "*",
"axios": "^1.3.4",
"cmd-ts": "^0.11.0",
"ethers": "^5.7.2"
"ethers": "^5.7.2",
"specifier-resolution-node": "^1.1.1"
},
"devDependencies": {
"@jest/globals": "^29.3.1",
Expand Down
2 changes: 1 addition & 1 deletion cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node --no-warnings --experimental-specifier-resolution=node
#!/usr/bin/env node --no-warnings

import { binary, command, run, subcommands } from 'cmd-ts'
import { adapterSub } from './adapter'
Expand Down
2 changes: 1 addition & 1 deletion core/.nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.12
20.10.0
17 changes: 9 additions & 8 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"clean": "rm -rf dist",
"prebuild": "yarn --cwd='../..' vrf build && yarn --cwd='../..' contracts build && yarn --cwd='../..' fetcher build",
"build": "yarn clean && tsc",
"start:listener": "node --no-warnings --experimental-specifier-resolution=node --experimental-json-modules dist/listener/main.js",
"start:listener": "node --no-warnings --import=specifier-resolution-node/register --experimental-json-modules dist/listener/main.js",
"start:listener:vrf": "yarn start:listener --service VRF",
"start:listener:request_response": "yarn start:listener --service REQUEST_RESPONSE",
"start:listener:data_feed": "yarn start:listener --service DATA_FEED",
Expand All @@ -40,7 +40,7 @@
"start:listener:vrf_l2_fulfill": "yarn start:listener --service VRF_L2_FULFILL",
"start:listener:rr_l2_request": "yarn start:listener --service REQUEST_RESPONSE_L2_REQUEST",
"start:listener:rr_l2_fulfill": "yarn start:listener --service REQUEST_RESPONSE_L2_FULFILL",
"start:worker": "node --no-warnings --experimental-specifier-resolution=node --experimental-json-modules dist/worker/main.js",
"start:worker": "node --no-warnings --import=specifier-resolution-node/register --experimental-json-modules dist/worker/main.js",
"start:worker:data_feed": "yarn start:worker --worker DATA_FEED",
"start:worker:data_feed_l2": "yarn start:worker --worker DATA_FEED_L2",
"start:worker:vrf": "yarn start:worker --worker VRF",
Expand All @@ -49,20 +49,20 @@
"start:worker:rr_l2_request": "yarn start:worker --worker REQUEST_RESPONSE_L2_REQUEST",
"start:worker:rr_l2_fulfill": "yarn start:worker --worker REQUEST_RESPONSE_L2_FULFILL",
"start:worker:request_response": "yarn start:worker --worker REQUEST_RESPONSE",
"start:reporter": "node --no-warnings --experimental-specifier-resolution=node --experimental-json-modules dist/reporter/main.js",
"start:reporter": "node --no-warnings --import=specifier-resolution-node/register --experimental-json-modules dist/reporter/main.js",
"start:reporter:vrf": "yarn start:reporter --reporter VRF",
"start:reporter:request_response": "yarn start:reporter --reporter REQUEST_RESPONSE",
"start:reporter:data_feed": "yarn start:reporter --reporter DATA_FEED",
"start:por": "node --no-warnings --experimental-specifier-resolution=node --experimental-json-modules dist/por/main.js",
"start:por": "node --no-warnings --import=specifier-resolution-node/register --experimental-json-modules dist/por/main.js",
"start:reporter:data_feed_l2": "yarn start:reporter --reporter DATA_FEED_L2",
"start:reporter:vrf_l2_request": "yarn start:reporter --reporter VRF_L2_REQUEST",
"start:reporter:vrf_l2_fulfill": "yarn start:reporter --reporter VRF_L2_FULFILL",
"start:reporter:rr_l2_request": "yarn start:reporter --reporter REQUEST_RESPONSE_L2_REQUEST",
"start:reporter:rr_l2_fulfill": "yarn start:reporter --reporter REQUEST_RESPONSE_L2_FULFILL",
"keygen": "node --no-warnings --experimental-specifier-resolution=node --experimental-json-modules dist/cli/vrf-keygen.js",
"adapter-hash": "node --no-warnings --experimental-specifier-resolution=node --experimental-json-modules dist/cli/generate-adapter-hash.js",
"aggregator-hash": "node --no-warnings --experimental-specifier-resolution=node --experimental-json-modules dist/cli/generate-aggregator-hash.js",
"flush": "node --no-warnings --experimental-specifier-resolution=node --experimental-json-modules dist/tools/flush-queues.js",
"keygen": "node --no-warnings --import=specifier-resolution-node/register --experimental-json-modules dist/cli/vrf-keygen.js",
"adapter-hash": "node --no-warnings --import=specifier-resolution-node/register --experimental-json-modules dist/cli/generate-adapter-hash.js",
"aggregator-hash": "node --no-warnings --import=specifier-resolution-node/register --experimental-json-modules dist/cli/generate-aggregator-hash.js",
"flush": "node --no-warnings --import=specifier-resolution-node/register --experimental-json-modules dist/tools/flush-queues.js",
"test": "node --no-warnings --experimental-vm-modules node_modules/jest/bin/jest.js",
"lint": "DEBUG=eslint:cli-engine eslint 'src/**/*.ts' 'src/*.ts' 'test/*.ts'",
"bull-dashboard": "docker-compose -f docker-compose.bull-monitor.yaml up"
Expand All @@ -86,6 +86,7 @@
"pino": "^8.8.0",
"pino-pretty": "^9.1.1",
"redis": "^4.6.4",
"specifier-resolution-node": "^1.1.1",
"sqlite": "^4.1.2",
"sqlite3": "^5.1.4"
},
Expand Down
5 changes: 3 additions & 2 deletions fetcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"flush": "node --no-warnings --experimental-specifier-resolution=node --experimental-json-modules dist/tools/flush-queues.js"
"flush": "node --no-warnings --import=specifier-resolution-node/register --experimental-json-modules dist/tools/flush-queues.js"
},
"dependencies": {
"@nestjs/bullmq": "^1.1.0",
Expand All @@ -32,7 +32,8 @@
"bullmq": "^3.10.0",
"mathjs": "^11.6.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.2.0"
"rxjs": "^7.2.0",
"specifier-resolution-node": "^1.1.1"
},
"devDependencies": {
"@nestjs/cli": "^9.0.0",
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6995,6 +6995,11 @@ import-local@^3.0.2:
pkg-dir "^4.2.0"
resolve-cwd "^3.0.0"

import-meta-resolve@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/import-meta-resolve/-/import-meta-resolve-4.0.0.tgz#0b1195915689f60ab00f830af0f15cc841e8919e"
integrity sha512-okYUR7ZQPH+efeuMJGlq4f8ubUgO50kByRPyt/Cy1Io4PSRsPjxME+YlVaCOx+NIToW7hCsZNFJyTPFFKepRSA==

imul@^1.0.0:
version "1.0.1"
resolved "https://registry.npmjs.org/imul/-/imul-1.0.1.tgz#9d5867161e8b3de96c2c38d5dc7cb102f35e2ac9"
Expand Down Expand Up @@ -11197,6 +11202,13 @@ source-map@~0.2.0:
dependencies:
amdefine ">=0.0.4"

specifier-resolution-node@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/specifier-resolution-node/-/specifier-resolution-node-1.1.1.tgz#450ebe0da8a2309be968a7dcee70dcb15cf47765"
integrity sha512-LcJnmIPda9WqEDvRIh/UPnKO7O5Cd9x8hbDDIMIDd6MzP55s8XQ9lHzuSgOXDPxTeIDhx2vqpF2FMDB5nsfRzA==
dependencies:
import-meta-resolve "^4.0.0"

split2@^4.0.0, split2@^4.1.0:
version "4.2.0"
resolved "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz#c9c5920904d148bab0b9f67145f245a86aadbfa4"
Expand Down

0 comments on commit f4fcb6f

Please sign in to comment.