Skip to content

Commit c9e6665

Browse files
authored
Merge pull request #2567 from pyth-network/cprussin/fix-staking-sdk-build
fix(staking-sdk): fix staking-sdk build
2 parents 62039cf + b0d68f7 commit c9e6665

30 files changed

+59
-115
lines changed

apps/api-reference/next.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ export default {
2929
return config;
3030
},
3131

32-
transpilePackages: ["@pythnetwork/*"],
33-
3432
headers: () => [
3533
{
3634
source: "/:path*",

apps/insights/next.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ const config = {
2222
return config;
2323
},
2424

25-
transpilePackages: ["@pythnetwork/*"],
26-
2725
headers: async () => [
2826
{
2927
source: "/:path*",

apps/insights/turbo.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@
1414
"DISABLE_ACCESSIBILITY_REPORTING"
1515
]
1616
},
17-
"start:dev": {
18-
"dependsOn": [
19-
"//#install:modules",
20-
"pull:env",
21-
"@pythnetwork/solana-utils#build"
22-
]
23-
},
2417
"fix:lint": {
2518
"dependsOn": [
2619
"//#install:modules",

apps/staking/next.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ export default {
2222
return config;
2323
},
2424

25-
transpilePackages: ["@pythnetwork/*"],
26-
2725
headers: () => [
2826
{
2927
source: "/:path*",

apps/staking/turbo.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,6 @@
1414
"AMPLITUDE_API_KEY",
1515
"GOOGLE_ANALYTICS_ID"
1616
]
17-
},
18-
"start:dev": {
19-
"dependsOn": [
20-
"//#install:modules",
21-
"pull:env",
22-
"@pythnetwork/hermes-client#build",
23-
"@pythnetwork/solana-utils#build"
24-
]
2517
}
2618
}
2719
}

governance/pyth_staking_sdk/package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"name": "@pythnetwork/staking-sdk",
3-
"version": "0.1.1",
3+
"version": "0.2.0",
44
"description": "Pyth staking SDK",
5-
"main": "src/index.ts",
6-
"types": "src/index.d.ts",
75
"type": "module",
6+
"exports": {
7+
"import": {
8+
"types": "./dist/index.d.ts",
9+
"default": "./dist/index.js"
10+
}
11+
},
812
"files": [
913
"dist/**/*"
1014
],
@@ -15,10 +19,9 @@
1519
"access": "public"
1620
},
1721
"scripts": {
18-
"build": "tsc",
22+
"build": "tsc --noEmit false --incremental false --declaration true --outDir ./dist",
1923
"fix:format": "prettier --write .",
2024
"fix:lint": "eslint --fix . --max-warnings 0",
21-
"prepublishOnly": "node scripts/update-package-json.mjs",
2225
"test:format": "prettier --check .",
2326
"test:lint": "eslint . --max-warnings 0",
2427
"test:types": "tsc"

governance/pyth_staking_sdk/scripts/update-package-json.mjs

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)