Skip to content

Commit ae783da

Browse files
feat: add ts publish example (#41)
* feat: add ts publish example * use hex * add solana ix example * prettier * fix build
1 parent bfca423 commit ae783da

File tree

5 files changed

+977
-131
lines changed

5 files changed

+977
-131
lines changed

lazer/js/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"type": "module",
77
"scripts": {
88
"start": "node --loader ts-node/esm src/index.js",
9+
"start:publish": "node --loader ts-node/esm src/publish.js",
910
"test": "pnpm run test:format && pnpm run build:cjs && pnpm run build:esm",
1011
"build:cjs": "tsc --project tsconfig.json --verbatimModuleSyntax false --module commonjs --outDir ./dist/cjs && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
1112
"build:esm": "tsc --project tsconfig.json --outDir ./dist/esm && echo '{\"type\":\"module\"}' > dist/esm/package.json",
@@ -15,7 +16,8 @@
1516
"author": "",
1617
"license": "Apache-2.0",
1718
"dependencies": {
18-
"@pythnetwork/pyth-lazer-sdk": "^0.1.1"
19+
"@pythnetwork/pyth-lazer-sdk": "^0.3.1",
20+
"@solana/web3.js": "^1.98.0"
1921
},
2022
"devDependencies": {
2123
"@cprussin/tsconfig": "^3.0.1",

0 commit comments

Comments
 (0)