A custom Heroku-compatible buildpack that installs Deno runtime.
scalingo env-set BUILDPACK_URL=https://github.com/YOUR_ORG/deno-buildpackCreate a .buildpacks file in your project root:
https://github.com/Scalingo/nodejs-buildpack
https://github.com/YOUR_ORG/deno-buildpack
https://github.com/Scalingo/go-buildpack
Order matters! Node.js first (for npx), then Deno, then Go.
Option 1: Environment variable
scalingo env-set DENO_VERSION=2.1.4Option 2: .deno-version file in project root
2.1.4
Default version: 2.1.4
The buildpack activates when it finds any of:
deno.jsondeno.jsoncdeno.lock.deno-version- Any
.tsfile in root
At build time:
- Deno binary downloaded to cache
- Binary copied to
/app/.deno/bin/ - Dependencies cached (if
deno.lockexists)
At runtime:
denocommand available in PATHDENO_DIRset to/app/.deno/cache
With the multi-buildpack setup above, at runtime you'll have:
| Command | Provided By |
|---|---|
node, npm, npx |
nodejs-buildpack |
deno |
deno-buildpack (this) |
| Your Go binary | go-buildpack |
All three are in PATH because each buildpack adds a .profile.d/*.sh script.
After deployment, verify Deno is available:
scalingo run deno --version
# deno 2.1.4# Simulate buildpack execution
mkdir -p /tmp/{build,cache,env}
cp -r your-app/* /tmp/build/
./bin/detect /tmp/build && ./bin/compile /tmp/build /tmp/cache /tmp/envMIT