#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@

override_dh_auto_build:
	# Builds cheerio-select component in cheerio-select/lib via pkg-js-tools
	dh_auto_build --buildsystem=nodejs
	# Make the freshly-built cheerio-select component visible to tshy
	mkdir -p node_modules
	ln -sfn ../cheerio-select node_modules/cheerio-select
	# Build cheerio's hybrid (CJS + ESM + browser ESM) bundle via tshy.
	tshy

