mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-22 12:21:12 +00:00
Migrate from yarn to pnpm.
This commit is contained in:
parent
cb4f97f610
commit
185068fbd0
5 changed files with 2158 additions and 2194 deletions
|
@ -13,7 +13,7 @@ A javascript / typescript http client and type system for [Lemmy](https://github
|
|||
|
||||
## Installation
|
||||
|
||||
`yarn add lemmy-js-client`
|
||||
`pnpm install lemmy-js-client`
|
||||
|
||||
## Usage
|
||||
|
||||
|
@ -38,7 +38,7 @@ let jwt = await client.login(loginForm).jwt;
|
|||
You can use [yalc](https://github.com/wclr/yalc) to develop and test changes locally:
|
||||
|
||||
```
|
||||
yarn global add yalc
|
||||
pnpm i --global add yalc
|
||||
|
||||
# Go to lemmy-js-client dir
|
||||
yalc publish --push
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
new_tag="$1"
|
||||
|
||||
yarn version --new-version $new_tag
|
||||
pnpm version $new_tag
|
||||
git push
|
||||
git tag $new_tag
|
||||
git push origin $new_tag
|
||||
|
|
28
package.json
28
package.json
|
@ -1,12 +1,10 @@
|
|||
{
|
||||
"name": "lemmy-js-client",
|
||||
"version": "0.19.2-alpha.3",
|
||||
"description": "A javascript / typescript client for Lemmy",
|
||||
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|
||||
"license": "AGPL-3.0",
|
||||
"version": "0.19.2-alpha.3",
|
||||
"author": "Dessalines <tyhou13@gmx.com>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"/dist"
|
||||
],
|
||||
|
@ -14,17 +12,9 @@
|
|||
"build": "tsc",
|
||||
"docs": "typedoc src/index.ts",
|
||||
"lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src && prettier --check src",
|
||||
"prepare": "yarn run build && husky install"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{ts,tsx,js}": [
|
||||
"prettier --write",
|
||||
"eslint --fix"
|
||||
],
|
||||
"package.json": [
|
||||
"sortpack"
|
||||
]
|
||||
"prepare": "pnpm run build && husky install"
|
||||
},
|
||||
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|
||||
"dependencies": {
|
||||
"cross-fetch": "^3.1.5",
|
||||
"form-data": "^4.0.0"
|
||||
|
@ -45,6 +35,16 @@
|
|||
"typedoc": "^0.24.7",
|
||||
"typescript": "^5.3.2"
|
||||
},
|
||||
"types": "./dist/index.d.ts",
|
||||
"lint-staged": {
|
||||
"*.{ts,tsx,js}": [
|
||||
"prettier --write",
|
||||
"eslint --fix"
|
||||
],
|
||||
"package.json": [
|
||||
"sortpack"
|
||||
]
|
||||
},
|
||||
"importSort": {
|
||||
".js, .jsx, .ts, .tsx": {
|
||||
"style": "module",
|
||||
|
|
2141
pnpm-lock.yaml
Normal file
2141
pnpm-lock.yaml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue