diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index a212df2..bebdbb7 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -72,14 +72,16 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: ./packages/v1 + working-directory: ./ timeout-minutes: 5 steps: - uses: actions/checkout@v4 - uses: ./.github/actions/install-dependencies - name: Compile - run: yarn run compile:sdk + run: | + yarn workspace @jpyc/sdk-core run compile + yarn workspace @jpyc/sdk-v1 run compile:sdk - name: Lint - run: yarn run lint:dry-run + run: yarn workspace @jpyc/sdk-v1 run lint:dry-run - name: Format - run: yarn run format:dry-run + run: yarn workspace @jpyc/sdk-v1 run format:dry-run diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8f7be25..7847eff 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -95,11 +95,15 @@ jobs: runs-on: ubuntu-latest defaults: run: - working-directory: ./packages/v1 + working-directory: ./ timeout-minutes: 5 steps: - uses: actions/checkout@v4 - uses: ./.github/actions/install-dependencies + - name: Build package + run: | + yarn workspace @jpyc/sdk-core run compile + yarn workspace @jpyc/sdk-v1 run compile:sdk - uses: ./.github/actions/publish-package with: working-directory: ./packages/v1 diff --git a/.npmignore b/.npmignore index 80cfd54..b130b6c 100644 --- a/.npmignore +++ b/.npmignore @@ -128,3 +128,4 @@ out # Misc .DS_Store .vscode +tsconfig.tsbuildinfo diff --git a/package.json b/package.json index 56cd149..ae000f7 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ ], "repository": "https://github.com/jcam1/sdks.git", "license": "MIT", - "version": "1.5.0", + "version": "1.6.0", "engines": { "node": "^20.12.0", "yarn": "^1.22.22" diff --git a/packages/v1/README.md b/packages/v1/README.md index 4175998..1e4fbf0 100644 --- a/packages/v1/README.md +++ b/packages/v1/README.md @@ -1,7 +1,7 @@ # JPYC V1 SDK ![build](https://github.com/jcam1/sdks/actions/workflows/check.yml/badge.svg) -[![Node version](https://img.shields.io/node/v/@jpyc/sdk-v1.svg?style=flat)](https://nodejs.org/download/) +[![npm version](https://badge.fury.io/js/@jpyc%2Fsdk-v1.svg)](https://badge.fury.io/js/@jpyc%2Fsdk-v1) JPYC V1 SDK implements an interface to interact with [JPYCv2 contracts](https://github.com/jcam1/JPYCv2) on different chains. Supported chains are Ethereum, Polygon, Gnosis, Avalanche, and Astar. Please note that **Shiden Network is not yet supported**. diff --git a/packages/v1/index.ts b/packages/v1/index.ts deleted file mode 100644 index 9f7b4d8..0000000 --- a/packages/v1/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -import * as dotenv from 'dotenv'; - -dotenv.config(); - -export * from './src'; diff --git a/packages/v1/package.json b/packages/v1/package.json index b62daf3..0f7059e 100644 --- a/packages/v1/package.json +++ b/packages/v1/package.json @@ -3,7 +3,7 @@ "description": "SDK v1 for JPYC v2 protocol", "repository": "https://github.com/jcam1/sdks.git", "license": "MIT", - "version": "1.0.0", + "version": "1.1.0", "publishConfig": { "access": "public" }, @@ -11,6 +11,11 @@ "node": "^20.12.0", "yarn": "^1.22.22" }, + "main": "dist/src", + "types": "dist/types/src", + "files": [ + "dist" + ], "scripts": { "docs": "typedoc", "env": "cp .env.example .env", @@ -35,7 +40,8 @@ }, "dependencies": { "@ethersproject/abi": "5.7.0", - "@ethersproject/solidity": "5.7.0" + "@ethersproject/solidity": "5.7.0", + "@jpyc/sdk-core": "1.3.0" }, "devDependencies": { "@nomicfoundation/hardhat-ethers": "3.0.6", diff --git a/packages/v1/tsconfig.json b/packages/v1/tsconfig.json index c8795cc..c64b818 100644 --- a/packages/v1/tsconfig.json +++ b/packages/v1/tsconfig.json @@ -41,11 +41,7 @@ // misc "esModuleInterop": true, "experimentalDecorators": true, - "emitDecoratorMetadata": true, - "paths": { - "@jpyc/sdk-core/*": ["../core/"], - "@jpyc/sdk-v1/*": ["./src/"] - } + "emitDecoratorMetadata": true }, "ts-node": { "require": ["tsconfig-paths/register"]