mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2026-09-03 05:10:26 +03:00
NPM refuses to acknowledge their limitations when working with monorepos Signed-off-by: Fernando Fernández <ferferga@hotmail.com>
28 lines
1.1 KiB
Makefile
Executable File
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
|