Commit b0d68f7
committed
fix(staking-sdk): fix staking-sdk build
This commit makes the following related changes:
- Fix `@pythnetwork/staking-sdk` build -- the prior build process created an
unusable package due to producing invalid references in `package.json`.
- Clean up `@pythnetwork/staking-sdk` typescript configs, using nodenext for the
target and module resolution strategy
- Fix import statements in `@pythnetwork/staking-sdk` to properly work with
nodenext resolution
- Distribute `@pythnetwork/staking-sdk` as esm-only -- nowadays supporting cjs
is making less sense and in particular some of the underlying solana libs are
distributed as esm-only, so it really doesn't make sense for us to distribute
cjs
- Stop using nextjs's `transpilePackages` for apps that depend on monorepo
packages -- this makes less sense nowadays with [turbo
watch](https://turbo.build/docs/reference/watch) and it has some major
downsides, in particular it doesn't work if you have different tsconfig
settings between apps and the packages they depend on.1 parent a258bdb commit b0d68f7
File tree
30 files changed
+59
-115
lines changed- apps
- api-reference
- insights
- staking
- governance
- pyth_staking_sdk
- scripts
- src
- idl
- types
- utils
- xc_admin/packages/xc_admin_frontend
30 files changed
+59
-115
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | 32 | | |
35 | 33 | | |
36 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 17 | | |
25 | 18 | | |
26 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 17 | | |
26 | 18 | | |
27 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | | - | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | | - | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| |||
Lines changed: 0 additions & 21 deletions
This file was deleted.
0 commit comments