Skip to content

Commit

Permalink
chore: switch from yarn to pnpm
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Ruck <git@manuelruck.de>
  • Loading branch information
Manuel Ruck committed Mar 16, 2024
1 parent 41d65dc commit 892e670
Show file tree
Hide file tree
Showing 5 changed files with 1,556 additions and 1,392 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:

- name: Install and Build 🔧
run: |
yarn install
yarn gen
pnpm install
pnpm gen
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.1.4
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ https://search.dip.bundestag.de/api/v1/swagger-ui/
## Install

```
yarn add @democracy-deutschland/bt-dip-sdk
pnpm add @democracy-deutschland/bt-dip-sdk
```

## Prerequirements
Expand Down Expand Up @@ -44,7 +44,7 @@ api
## Contribute

```sh
yarn
pnpm install
# Edit swagger.yml
yarn gen
pnpm gen
```
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@democracy-deutschland/bt-dip-sdk",
"version": "1.2.0",
"version": "1.3.0",
"description": "Bundestag DIP - TypeScript SDK",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand All @@ -9,16 +9,20 @@
"homepage": "https://www.democracy-deutschland.de",
"repository": "https://github.com/demokratie-live/bt-dip-sdk",
"scripts": {
"build": "yarn gen && tsc && node esbuild.js",
"gen": "yarn gen-sdk && yarn gen-docs",
"build": "pnpm gen && tsc && node esbuild.js",
"gen": "pnpm gen-sdk && pnpm gen-docs",
"gen-sdk": "openapi-generator-cli generate -o ./src/__generated -i https://search.dip.bundestag.de/api/v1/openapi.yaml -g typescript-axios --additional-properties=useSingleRequestParameter=true,supportsES6=true,modelPropertyNaming='original' --enable-post-process-file --reserved-words-mappings abstract=abstract",
"gen-docs": "typedoc --out docs src/index.ts",
"test": "ts-node-dev -r dotenv/config src/tests/usage.ts",
"prepublishOnly": "yarn build"
"prepublishOnly": "pnpm build"
},
"peerDependencies": {
"axios": "*"
},
"devDependencies": {
"@openapitools/openapi-generator-cli": "^2.7.0",
"@types/node": "^20.8.7",
"axios": "^1.6.8",
"dotenv": "^16.3.1",
"esbuild": "^0.20.2",
"esbuild-node-externals": "^1.9.0",
Expand Down
Loading

0 comments on commit 892e670

Please sign in to comment.