diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ca518a..2f15b01 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/README.md b/README.md index fc3e1ed..4697f0e 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/hatch_build.py b/hatch_build.py index fe59234..77d9f25 100644 --- a/hatch_build.py +++ b/hatch_build.py @@ -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)