Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions apps/hermes/client/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,17 @@
"name": "Pyth Data Association"
},
"homepage": "https://pyth.network",
"main": "lib/HermesClient.js",
"types": "lib/HermesClient.d.ts",
"type": "module",
"exports": {
".": {
"import": "./lib/HermesClient.js",
"require": "./lib/cjs/HermesClient.js",
"types": "./lib/HermesClient.d.ts"
}
},
"main": "./lib/cjs/HermesClient.js",
"module": "./lib/HermesClient.js",
"types": "./lib/HermesClient.d.ts",
"files": [
"lib/**/*"
],
Expand All @@ -20,13 +29,15 @@
"access": "public"
},
"scripts": {
"build:typescript": "tsc",
"build": "pnpm run build:esm && pnpm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir lib/cjs",
"build:schemas": "openapi-zod-client ./schema.json --output src/zodSchemas.ts",
"pull:schema": "curl -o schema.json -z schema.json https://hermes.pyth.network/docs/openapi.json",
"example": "node lib/examples/HermesClient.js",
"format": "prettier --write \"src/**/*.ts\"",
"test:lint": "eslint src/",
"prepublishOnly": "pnpm run build:typescript && pnpm run test:lint",
"prepublishOnly": "pnpm run build && pnpm run test:lint",
"preversion": "pnpm run test:lint",
"version": "pnpm run format && git add -A src"
},
Expand Down
7 changes: 7 additions & 0 deletions apps/hermes/client/js/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "./lib/cjs"
}
}
12 changes: 3 additions & 9 deletions apps/hermes/client/js/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
{
"extends": "../../../../tsconfig.base.json",
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"declaration": true,
"composite": true,
"declarationMap": true,
"incremental": true,
"outDir": "./lib",
"strict": true,
"rootDir": "src/",
"esModuleInterop": true
"outDir": "./lib",
"module": "node16",
"moduleResolution": "node16"
},
"include": ["src"],
"exclude": ["node_modules"]
Expand Down
19 changes: 15 additions & 4 deletions apps/price_pusher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
"version": "9.0.0",
"description": "Pyth Price Pusher",
"homepage": "https://pyth.network",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"type": "module",
"exports": {
".": {
"import": "./lib/index.js",
"require": "./lib/cjs/index.js",
"types": "./lib/index.d.ts"
}
},
"main": "./lib/cjs/index.js",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"files": [
"lib/**/*"
],
Expand All @@ -20,10 +29,12 @@
"access": "public"
},
"scripts": {
"build": "tsc",
"build": "pnpm run build:esm && pnpm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir lib/cjs",
"format": "prettier --write \"src/**/*.ts\"",
"test:lint": "eslint src/",
"start": "node lib/index.js",
"start": "node lib/cjs/index.js",
"dev": "ts-node src/index.ts",
"prepublishOnly": "pnpm run build && pnpm run test:lint",
"preversion": "pnpm run test:lint",
Expand Down
7 changes: 7 additions & 0 deletions apps/price_pusher/tsconfig.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "commonjs",
"outDir": "./lib/cjs"
}
}
8 changes: 2 additions & 6 deletions apps/price_pusher/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"declaration": true,
"rootDir": "src/",
"outDir": "./lib",
"strict": true,
"esModuleInterop": true,
"resolveJsonModule": true
"module": "node16",
"moduleResolution": "node16"
},
"include": ["src"],
"exclude": ["node_modules", "**/__tests__/*"]
Expand Down
1 change: 0 additions & 1 deletion price_service/client/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"yargs": "^17.4.1"
},
"dependencies": {
"@pythnetwork/price-service-sdk": "workspace:*",
"@types/ws": "^8.5.3",
"axios": "^1.5.1",
"axios-retry": "^4.0.0",
Expand Down
25 changes: 21 additions & 4 deletions price_service/sdk/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
"version": "1.8.0",
"description": "Pyth price service SDK",
"homepage": "https://pyth.network",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"type": "module",
"exports": {
".": {
"import": "./lib/index.js",
"require": "./lib/cjs/index.js",
"types": "./lib/index.d.ts"
}
},
"main": "./lib/cjs/index.js",
"module": "./lib/index.js",
"types": "./lib/index.d.ts",
"files": [
"lib/**/*"
],
Expand All @@ -17,7 +26,9 @@
"access": "public"
},
"scripts": {
"build": "tsc",
"build": "pnpm run build:esm && pnpm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --module commonjs --outDir lib/cjs",
"format": "prettier --write \"src/**/*.ts\"",
"gen-ts-schema": "quicktype --src-lang schema src/schemas/price_feed.json -o src/schemas/PriceFeed.ts --raw-type any --converters all-objects && prettier --write \"src/schemas/*.ts\"",
"test:unit": "jest",
Expand All @@ -44,6 +55,12 @@
"typescript": "^4.6.3"
},
"dependencies": {
"bn.js": "^5.2.1"
"bn.js": "^5.2.1",
"axios": "^1.5.1",
"axios-retry": "^4.0.0",
"isomorphic-ws": "^4.0.1",
"ts-log": "^2.2.4",
"ws": "^8.6.0",
"@types/ws": "^8.5.3"
}
}
Loading
Loading