CI, build and documentation fixes (#14)

This commit is contained in:
bashonly
2025-10-22 18:01:24 -05:00
committed by GitHub
parent 6a73fa37ba
commit 5d7bf090bb
3 changed files with 8 additions and 8 deletions

View File

@@ -161,7 +161,7 @@ jobs:
bun install
- name: Bundle with Bun
run: |
bun run bundle
bun --bun run bundle
- name: Download bundle hashes
uses: actions/download-artifact@v5
with:

View File

@@ -7,10 +7,10 @@ External JavaScript for yt-dlp supporting many runtimes
## Manual Installation
In the yt-dlp repository, install the python package, either directly or from URL:
Install ejs into the same environment as yt-dlp:
```console
pip install git+https://github.com/yt-dlp/ejs@main
pip install -U yt-dlp-ejs
```
## Development
@@ -35,7 +35,7 @@ deno task bundle
# Bun:
bun install
bun run bundle
bun --bun run bundle
# Node:
npm install
@@ -53,11 +53,11 @@ deno run src/yt/solver/test/download.ts
# Bun:
bun install
bun run src/yt/solver/test/download.ts
bun --bun run src/yt/solver/test/download.ts
# Node:
# Node 22.6+:
npm install
npm run src/yt/solver/test/download.ts
node --experimental-strip-types src/yt/solver/test/download.ts
```
Then the tests can be run:

View File

@@ -17,7 +17,7 @@ class CustomBuildHook(BuildHookInterface):
elif shutil.which("bun"):
print("Building with bun...", flush=True)
subprocess.run(["bun", "install"], check=True)
subprocess.run(["bun", "run", "bundle"], check=True)
subprocess.run(["bun", "--bun", "run", "bundle"], check=True)
elif shutil.which("npm"):
print("Building with npm...", flush=True)