Files
jellyfin-vue/packaging/deb/debian/rules
T
Fernando Fernández f00e60fcd3 chore: migrate to pnpm
NPM refuses to acknowledge their limitations when working with monorepos

Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
2026-04-07 18:58:12 +02:00

28 lines
1.1 KiB
Makefile
Executable File

#! /usr/bin/make -f
export DH_VERBOSE=1
%:
dh $@
# disable "make check"
override_dh_auto_test:
# disable stripping debugging symbols
override_dh_clistrip:
override_dh_auto_build:
cp -ra root/{package.json,pnpm-workspace.yaml,pnpm-lock.yaml,frontend,packages} $(CURDIR)/
corepack pnpm install --frozen-lockfile
cd frontend && corepack pnpm build
mv $(CURDIR)/frontend/dist $(CURDIR)/dist
rm -rf $(CURDIR)/frontend $(CURDIR)/packages $(CURDIR)/node_modules $(CURDIR)/package.json $(CURDIR)/pnpm-lock.yaml $(CURDIR)/pnpm-workspace.yaml
override_dh_auto_clean:
test -d $(CURDIR)/frontend && rm -rf '$(CURDIR)/frontend' || true
test -d $(CURDIR)/packages && rm -rf '$(CURDIR)/packages' || true
test -d $(CURDIR)/dist && rm -rf '$(CURDIR)/dist' || true
test -d $(CURDIR)/node_modules && rm -rf '$(CURDIR)/node_modules' || true
test -d $(CURDIR)/package.json && rm -rf '$(CURDIR)/package.json' || true
test -d $(CURDIR)/pnpm-lock.yaml && rm -rf '$(CURDIR)/pnpm-lock.yaml' || true
test -d $(CURDIR)/pnpm-workspace.yaml && rm -rf '$(CURDIR)/pnpm-workspace.yaml' || true