runtime/reference/cli/publish.md
Your package must have a name and version and an exports field in its
deno.json or jsr.json file.
name field must be unique and follow the @<scope_name>/<package_name>
convention.version field must be a valid semver version.exports field must point to the main entry point of the package. The
exports field can either be specified as a single string, or as an object
mapping entrypoint names to paths in your package.Example:
{
"name": "@scope_name/package_name",
"version": "1.0.0",
"exports": "./main.ts"
}
Before you publish your package, you must create it in the registry by visiting JSR - Publish a package.
Publish your current workspace
deno publish
Publish your current workspace with a specific token, bypassing interactive authentication
deno publish --token c00921b1-0d4f-4d18-b8c8-ac98227f9275
Publish and check for errors in remote modules
deno publish --check=all
Perform a dry run to simulate publishing.
deno publish --dry-run
Publish using settings from a specific configuration file
deno publish --config custom-config.json