Skip to content

Commit

Permalink
Merge pull request #249 from Telegram-Mini-Apps/feature/bindings-sdk-…
Browse files Browse the repository at this point in the history
…peer

Mark @tma.js/sdk as peer
  • Loading branch information
heyqbnk authored Mar 8, 2024
2 parents 1ca4822 + 2917d0e commit eab3ab7
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 17 deletions.
5 changes: 5 additions & 0 deletions .changeset/beige-impalas-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tma.js/create-mini-app": patch
---

Actualize documentation.
6 changes: 6 additions & 0 deletions .changeset/mighty-bananas-give.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@tma.js/sdk-react": minor
"@tma.js/sdk-solid": minor
---

Make @tma.js/sdk dependency as peer
10 changes: 5 additions & 5 deletions apps/docs/packages/tma-js-sdk-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ for comfortable usage of React JS on the Telegram Mini Apps platform.

## Installation

Before anything else, it is assumed that you have already installed the `react` package, as it is a
peer dependency of this package.
Before anything else, it is assumed that you have already installed the `react` and `@tma.js/sdk`
packages, as they are peer dependencies of this package.

::: code-group

```bash [pnpm]
pnpm i @tma.js/sdk-react
pnpm i @tma.js/sdk @tma.js/sdk-react
```

```bash [npm]
npm i @tma.js/sdk-react
npm i @tma.js/sdk @tma.js/sdk-react
```

```bash [yarn]
yarn add @tma.js/sdk-react
yarn add @tma.js/sdk @tma.js/sdk-react
```

:::
Expand Down
10 changes: 5 additions & 5 deletions apps/docs/packages/tma-js-sdk-solid.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ for comfortable usage of Solid JS on the Telegram Mini Apps platform.

## Installation

Before anything else, it is assumed that you have already installed the `solid-js` package, as it is
a peer dependency of this package.
Before anything else, it is assumed that you have already installed the `solid-js` and `@tma.js/sdk`
packages, as they are peer dependencies of this package.

::: code-group

```bash [pnpm]
pnpm i @tma.js/sdk-solid
pnpm i @tma.js/sdk @tma.js/sdk-solid
```

```bash [npm]
npm i @tma.js/sdk-solid
npm i @tma.js/sdk @tma.js/sdk-solid
```

```bash [yarn]
yarn add @tma.js/sdk-solid
yarn add @tma.js/sdk @tma.js/sdk-solid
```

:::
Expand Down
6 changes: 2 additions & 4 deletions packages/sdk-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,14 @@
},
"peerDependencies": {
"@types/react": "^17.0.0 || ^18.0.0",
"react": "^17.0.0 || ^18.0.0"
"react": "^17.0.0 || ^18.0.0",
"@tma.js/sdk": "workspace:*"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"dependencies": {
"@tma.js/sdk": "workspace:*"
},
"devDependencies": {
"build-utils": "workspace:*",
"eslint-config-custom": "workspace:*",
Expand Down
4 changes: 1 addition & 3 deletions packages/sdk-solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@
"typecheck": "tsc --noEmit",
"build": "vite build"
},
"dependencies": {
"@tma.js/sdk": "workspace:*"
},
"peerDependencies": {
"@tma.js/sdk": "workspace:*",
"solid-js": "^1.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit eab3ab7

Please sign in to comment.