Skip to content

Commit

Permalink
Replacing npm in some places
Browse files Browse the repository at this point in the history
  • Loading branch information
ekenigs committed Jul 25, 2024
1 parent 93d20e3 commit 679175a
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "tsup",
"dev": "pnpm run build -- --watch",
"link": "npm ln",
"link": "pnpm ln",
"lint": "eslint ./src --ext .js,.ts",
"lint:fix": "pnpm run lint -- --fix",
"typecheck": "tsc --noEmit",
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "tsup",
"dev": "pnpm run build -- --watch",
"link": "npm ln",
"link": "pnpm ln",
"lint": "eslint ./src --ext .js,.ts",
"lint:fix": "pnpm run lint -- --fix",
"typecheck": "tsc --noEmit",
Expand Down
2 changes: 1 addition & 1 deletion packages/mrl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "tsup",
"dev": "pnpm run build -- --watch",
"link": "npm ln",
"link": "pnpm ln",
"lint": "eslint ./src --ext .js,.ts",
"lint:fix": "pnpm run lint -- --fix",
"prepack": "prettier --write build/index.d.ts"
Expand Down
22 changes: 11 additions & 11 deletions packages/sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,28 @@ const hash = await dataViaGetTransferDataMethod.transfer('INSERT_TRANSFER_AMOUNT
```bash
git clone [email protected]:moonbeam-foundation/xcm-sdk.git
cd xcm-sdk
npm i
pnpm install
cd examples/sdk-simple

# edit index.ts by adding your accounts

npm start
pnpm run start
```

# Contributing

```bash
git clone [email protected]:moonbeam-foundation/xcm-sdk.git
npm i
npm run dev
pnpm install
pnpm run dev
```

# Tests

## Unit tests

```bash
npm run test
pnpm run test
```

## Acceptance tests
Expand All @@ -96,7 +96,7 @@ npm run test
cp .env.example .env
# add private key and suri to .env file

npm run test:acc
pnpm run test:acc
```

# Release
Expand All @@ -106,31 +106,31 @@ To create a dev version go to GitHub actions and run `publish dev versions` work
To create a release version run:

```bash
npm run changeset
pnpm run changeset
```

# Testing the change in the SDK locally

Build the project:

```bash
npm run build
pnpm run build
```

```bash
npm run link
pnpm run link
```

In your project where you would like to test the changes:

```bash
npm link @moonbeam-network/xcm-types @moonbeam-network/xcm-utils @moonbeam-network/xcm-builder @moonbeam-network/xcm-config @moonbeam-network/xcm-sdk
pnpm link @moonbeam-network/xcm-types @moonbeam-network/xcm-utils @moonbeam-network/xcm-builder @moonbeam-network/xcm-config @moonbeam-network/xcm-sdk
```

If you need you can link other packages too.

After testing is done, unlink the SDK:

```bash
npm unlink @moonbeam-network/xcm-types @moonbeam-network/xcm-utils @moonbeam-network/xcm-builder @moonbeam-network/xcm-config @moonbeam-network/xcm-sdk
pnpm unlink @moonbeam-network/xcm-types @moonbeam-network/xcm-utils @moonbeam-network/xcm-builder @moonbeam-network/xcm-config @moonbeam-network/xcm-sdk
```
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "tsup",
"dev": "pnpm run build -- --watch",
"link": "npm ln",
"link": "pnpm ln",
"lint": "eslint ./src --ext .js,.ts",
"lint:fix": "pnpm run lint -- --fix",
"typecheck": "tsc --noEmit",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "tsup",
"dev": "pnpm run build -- --watch",
"link": "npm ln",
"link": "pnpm ln",
"lint": "eslint ./src --ext .js,.ts",
"lint:fix": "pnpm run lint -- --fix",
"test": "vitest --run",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "tsup",
"dev": "pnpm run build -- --watch",
"link": "npm ln",
"link": "pnpm ln",
"lint": "eslint . --ext .js,.ts",
"lint:fix": "pnpm run lint -- --fix",
"typecheck": "tsc --noEmit",
Expand Down

0 comments on commit 679175a

Please sign in to comment.