Add build time lockfile for deno (#25)

This commit is contained in:
Simon Sawicki
2025-10-28 00:41:18 +01:00
committed by GitHub
parent 25b77b7310
commit 877164a326
5 changed files with 1267 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ jobs:
compression-level: 0
- name: Build JavaScript artifacts
run: |
deno install
deno install --frozen
deno task bundle
- name: Upload JavaScript artifacts
uses: actions/upload-artifact@v4

1
.gitignore vendored
View File

@@ -3,7 +3,6 @@
/yt_dlp_ejs/_version.py
/node_modules
/bun.lock
/deno.lock
/package-lock.json
/.idea
/.venv

View File

@@ -13,7 +13,7 @@ pip install -U yt-dlp-ejs
## Development
While this project does pin its dependencies,
it does not use lockfiles or enforce a particular package manager.
it only provides a lockfile for building with `deno`.
You may install dependencies using any compatible package manager.
If you notice differences between different runtimes' builds
please open an issue [here](<https://github.com/yt-dlp/ejs/issues/new>).
@@ -27,7 +27,7 @@ Alternatively, to only build the JavaScript files you can run the `bundle` scrip
```bash
# Deno:
deno install
deno install --frozen
deno task bundle
# Bun:
@@ -45,7 +45,7 @@ First, make sure the project's dependencies are installed and download the playe
```bash
# Deno:
deno install
deno install --frozen
deno run src/yt/solver/test/download.ts
# Bun:

1262
deno.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -10,7 +10,7 @@ class CustomBuildHook(BuildHookInterface):
if shutil.which("deno"):
print("Building with deno...", flush=True)
os.environ["DENO_NO_UPDATE_CHECK"] = "1"
subprocess.run(["deno", "install"], check=True)
subprocess.run(["deno", "install", "--frozen"], check=True)
subprocess.run(["deno", "task", "bundle"], check=True)
elif shutil.which("bun"):