mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-22 20:31: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
|
## Installation
|
||||||
|
|
||||||
`yarn add lemmy-js-client`
|
`pnpm install lemmy-js-client`
|
||||||
|
|
||||||
## Usage
|
## 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:
|
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
|
# Go to lemmy-js-client dir
|
||||||
yalc publish --push
|
yalc publish --push
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
new_tag="$1"
|
new_tag="$1"
|
||||||
|
|
||||||
yarn version --new-version $new_tag
|
pnpm version $new_tag
|
||||||
git push
|
git push
|
||||||
git tag $new_tag
|
git tag $new_tag
|
||||||
git push origin $new_tag
|
git push origin $new_tag
|
||||||
|
|
28
package.json
28
package.json
|
@ -1,12 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "lemmy-js-client",
|
"name": "lemmy-js-client",
|
||||||
"version": "0.19.2-alpha.3",
|
|
||||||
"description": "A javascript / typescript client for Lemmy",
|
"description": "A javascript / typescript client for Lemmy",
|
||||||
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|
"version": "0.19.2-alpha.3",
|
||||||
"license": "AGPL-3.0",
|
|
||||||
"author": "Dessalines <tyhou13@gmx.com>",
|
"author": "Dessalines <tyhou13@gmx.com>",
|
||||||
|
"license": "AGPL-3.0",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
|
||||||
"files": [
|
"files": [
|
||||||
"/dist"
|
"/dist"
|
||||||
],
|
],
|
||||||
|
@ -14,17 +12,9 @@
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"docs": "typedoc src/index.ts",
|
"docs": "typedoc src/index.ts",
|
||||||
"lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src && prettier --check src",
|
"lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src && prettier --check src",
|
||||||
"prepare": "yarn run build && husky install"
|
"prepare": "pnpm run build && husky install"
|
||||||
},
|
|
||||||
"lint-staged": {
|
|
||||||
"*.{ts,tsx,js}": [
|
|
||||||
"prettier --write",
|
|
||||||
"eslint --fix"
|
|
||||||
],
|
|
||||||
"package.json": [
|
|
||||||
"sortpack"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
|
"repository": "https://github.com/LemmyNet/lemmy-js-client",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cross-fetch": "^3.1.5",
|
"cross-fetch": "^3.1.5",
|
||||||
"form-data": "^4.0.0"
|
"form-data": "^4.0.0"
|
||||||
|
@ -45,6 +35,16 @@
|
||||||
"typedoc": "^0.24.7",
|
"typedoc": "^0.24.7",
|
||||||
"typescript": "^5.3.2"
|
"typescript": "^5.3.2"
|
||||||
},
|
},
|
||||||
|
"types": "./dist/index.d.ts",
|
||||||
|
"lint-staged": {
|
||||||
|
"*.{ts,tsx,js}": [
|
||||||
|
"prettier --write",
|
||||||
|
"eslint --fix"
|
||||||
|
],
|
||||||
|
"package.json": [
|
||||||
|
"sortpack"
|
||||||
|
]
|
||||||
|
},
|
||||||
"importSort": {
|
"importSort": {
|
||||||
".js, .jsx, .ts, .tsx": {
|
".js, .jsx, .ts, .tsx": {
|
||||||
"style": "module",
|
"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