[Pages] Running script requires package

One of my scripts to run executes the following:
tsc --build && copyfiles -u 1 src/**/*.css dist

Cloudflare says that the command copyfiles is not found, which is kind of expected. Locally I installed copyfiles via npm install copyfiles -g.

How can I run copyfiles on Cloudflare?
Was this page helpful?