https://github.com/ryohidaka/action-dnt
GitHub Actions to convert Deno to npm package.
https://github.com/ryohidaka/action-dnt
deno dnt
Last synced: 3 months ago
JSON representation
GitHub Actions to convert Deno to npm package.
- Host: GitHub
- URL: https://github.com/ryohidaka/action-dnt
- Owner: ryohidaka
- Created: 2025-12-12T04:12:31.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-12-12T04:17:03.000Z (6 months ago)
- Last Synced: 2025-12-13T06:20:28.753Z (6 months ago)
- Topics: deno, dnt
- Language: TypeScript
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Deno to Node Transform (dnt) for GitHub Actions
[](https://github.com/ryohidaka/action-dnt/releases/)
[](https://github.com/ryohidaka/action-dnt/actions/workflows/test.yml)
GitHub Actions to convert Deno to npm package using
[@deno/dnt](https://github.com/denoland/dnt).
## Usage
```yml
on: [push]
jobs:
dnt:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: latest
- name: Run @deno/dnt
uses: ryohidaka/action-dnt@v0.2.0
with:
name: my-package
project-dir: .
out-dir: ./npm
copy-files: "README.md,LICENSE"
compiler-options: '{"target":"ES2023","lib":["ESNext"]}'
deno-version: stable
- name: Publish to npm
run: cd npm && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
```
## Inputs
| Input | Description | Required | Default |
| ------------------ | --------------------------------------------------------------------- | -------- | -------- |
| `name` | NPM package name | ✅ | |
| `project-dir` | Project directory (contains `deno.json` and `mod.ts`) | | `.` |
| `out-dir` | Directory to output | | `./npm` |
| `copy-files` | Additional files or directories to copy | | |
| `compiler-options` | TypeScript compiler options to pass to DNT (e.g. target, lib, strict) | | `{}` |
| `deno-version` | Deno version to use | | `stable` |