Skip to content

Commit 72bf667

Browse files
authored
fix(lazer): include .d.ts files in solana sdk js package (#2910)
1 parent 1ae2139 commit 72bf667

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

lazer/sdk/js-solana/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/pyth-lazer-solana-sdk",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pyth Lazer Solana SDK",
55
"publishConfig": {
66
"access": "public"
@@ -9,21 +9,22 @@
99
"dist/**/*"
1010
],
1111
"main": "./dist/cjs/index.js",
12-
"types": "./dist/cjs/index.d.ts",
12+
"types": "./dist/types/index.d.ts",
1313
"exports": {
1414
"import": {
15-
"types": "./dist/esm/index.d.ts",
15+
"types": "./dist/types/index.d.ts",
1616
"default": "./dist/esm/index.js"
1717
},
1818
"require": {
19-
"types": "./dist/cjs/index.d.ts",
19+
"types": "./dist/types/index.d.ts",
2020
"default": "./dist/cjs/index.js"
2121
}
2222
},
2323
"scripts": {
2424
"update-idl": "cd ../../contracts/solana && RUSTUP_TOOLCHAIN=nightly-2025-04-15 anchor build && cp target/types/pyth_lazer_solana_contract.ts ../../sdk/js-solana/src/idl/pyth-lazer-solana-contract.ts && cp target/idl/pyth_lazer_solana_contract.json ../../sdk/js-solana/src/idl/pyth-lazer-solana-contract.json",
2525
"build:cjs": "swc src -d dist/cjs --strip-leading-paths --copy-files -C module.type=commonjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
2626
"build:esm": "swc src -d dist/esm --strip-leading-paths --copy-files -C jsc.experimental.keepImportAttributes=true && echo '{\"type\":\"module\"}' > dist/esm/package.json",
27+
"build:types": "tsc --project tsconfig.build.json",
2728
"fix:lint": "eslint --fix . --max-warnings 0",
2829
"test:lint": "eslint . --max-warnings 0",
2930
"test:types": "tsc",
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": false,
5+
"emitDeclarationOnly": true,
6+
"incremental": false,
7+
"declaration": true,
8+
"outDir": "./dist/types"
9+
},
10+
"exclude": ["node_modules", "dist"]
11+
}

0 commit comments

Comments
 (0)