Migrate from yarn to pnpm.

This commit is contained in:
Dessalines 2024-01-28 12:45:52 -05:00
parent cb4f97f610
commit 185068fbd0
5 changed files with 2158 additions and 2194 deletions

View file

@ -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

View file

@ -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

View file

@ -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

File diff suppressed because it is too large Load diff

2177
yarn.lock

File diff suppressed because it is too large Load diff