Skip to content

Commit

Permalink
sdk: npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
yurushao committed Jan 20, 2025
1 parent 1e14d11 commit 25ef142
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 7 deletions.
12 changes: 12 additions & 0 deletions anchor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# GLAM SDK

## Installation

```bash
npm i @glamsystems/glam-sdk
```

## Getting Started

- [GLAM docs](https://docs.glam.systems)
- [TypeScript API docs](#)
39 changes: 34 additions & 5 deletions anchor/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,37 @@
{
"name": "@glam/anchor",
"version": "0.0.1",
"dependencies": {},
"type": "commonjs",
"name": "@glamsystems/glam-sdk",
"version": "0.1.1",
"description": "TypeScript SDK for GLAM Protocol",
"main": "./index.cjs",
"module": "./index.js"
"module": "./index.esm.js",
"homepage": "https://www.glam.systems",
"repository": {
"type": "git",
"url": "[email protected]:glamsystems/glam.git"
},
"keywords": [
"glam-protocol",
"solana"
],
"license": "Apache-2.0",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@coral-xyz/anchor": "^0.30.1",
"@drift-labs/sdk": "2.96.0-beta.14",
"@marinade.finance/marinade-ts-sdk": "^5.0.13",
"@pythnetwork/client": "^2.21.1",
"@solana/spl-stake-pool": "^1.1.5",
"@solana/spl-token": "^0.3.9",
"@solana/spl-token-metadata": "^0.1.4",
"qrcode": "^1.5.4",
"bs58": "^5.0.0",
"buffer": "^6.0.3",
"@solana/web3.js": "^1.94.0",
"@scure/base": "^1.1.7"
},
"engines": {
"node": ">=20.18.0"
}
}
11 changes: 9 additions & 2 deletions anchor/project.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "anchor",
"$schema": "../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "anchor/src",
"sourceRoot": "anchor/",
"projectType": "library",
"targets": {
"build": {
Expand All @@ -11,7 +11,7 @@
"outputPath": "dist/anchor",
"main": "anchor/src/index.ts",
"tsConfig": "anchor/tsconfig.lib.json",
"assets": [],
"assets": ["anchor/README.md"],
"project": "anchor/package.json",
"compiler": "swc",
"format": ["cjs", "esm"]
Expand Down Expand Up @@ -51,6 +51,13 @@
"options": {
"jestConfig": "anchor/jest.config.ts"
}
},
"publish-sdk": {
"executor": "nx:run-commands",
"options": {
"command": "npm publish --access public",
"cwd": "{workspaceRoot}/dist/anchor"
}
}
},
"tags": []
Expand Down

0 comments on commit 25ef142

Please sign in to comment.