Skip to content

Commit

Permalink
build: migrate to pnpm from yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallenbagel committed Jun 23, 2024
1 parent 0da85ca commit efab06b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
6 changes: 4 additions & 2 deletions Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FROM node:20-alpine
COPY . /app
WORKDIR /app

RUN yarn
Run npm install --global pnpm

CMD yarn dev
RUN pnpm install

CMD pnpm dev
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,20 @@ https://hub.docker.com/r/fallenbagel/jellyseerr
Pre-requisites:

- Nodejs [v20](https://nodejs.org/en/download)
- [Yarn](https://classic.yarnpkg.com/lang/en/docs/install)
- Pnpm [v9](https://pnpm.io/installation)
- Download/git clone the source code from the github (Either develop branch or main for stable)

```cmd
npm i -g win-node-env
set CYPRESS_INSTALL_BINARY=0
yarn install --frozen-lockfile --network-timeout 1000000
yarn run build
yarn start
pnpm install --frozen-lockfile
pnpm add [email protected]
pnpm run build
pnpm start
```

(You can use task scheduler to run a bat script with `@echo off` and `yarn start` to run jellyseerr in the background)
(You can use task scheduler to run a bat script with `@echo off` and `pnpm start` to run jellyseerr in the background)
(You can also use nssm to run jellyseerr as a service, see [nssm](https://nssm.cc/usage) for more information)

_To set env variables such as `JELLYFIN_TYPE=emby` create a file called `.env` in the root directory of jellyseerr_

Expand All @@ -74,7 +76,7 @@ _To set env variables such as `JELLYFIN_TYPE=emby` create a file called `.env` i
**Pre-requisites:**

- Nodejs [v20](https://nodejs.org/en/download)
- [Yarn](https://classic.yarnpkg.com/lang/en/docs/install) (on Debian based distros, the package manager provided `yarn` is different and is a package called cmdlet. You can remove that using `apt-remove cmdlet` then install yarn using `npm install -g yarn`)
- Pnpm [v9](https://pnpm.io/installation)
- Git

**Steps:**
Expand All @@ -95,11 +97,11 @@ git checkout main
3. Then install the dependencies and build the dist

```bash
CYPRESS_INSTALL_BINARY=0 yarn install --frozen-lockfile --network-timeout 1000000
yarn run build
CYPRESS_INSTALL_BINARY=0 pnpm install --frozen-lockfile
pnpm build
```

4. Now you can start jellyseerr using `yarn start` and opening http://localhost:5055 in your browser.
4. Now you can start jellyseerr using `pnpm start` and opening http://localhost:5055 in your browser.

5. If you want to run jellyseerr as a _Systemd-service:_

Expand Down Expand Up @@ -147,7 +149,7 @@ WantedBy=multi-user.target

Archlinux: [AUR](https://aur.archlinux.org/packages/jellyseerr)
Nixpkg: [Nixpkg](https://search.nixos.org/packages?channel=unstable&show=jellyseerr)
Snap: [Snap](https://snapcraft.io/jellyseerr)
~Snap: [Snap](https://snapcraft.io/jellyseerr)~(Deprecated)

## Preview

Expand Down

0 comments on commit efab06b

Please sign in to comment.