rlsbl v0.40.1 /rlsbl.targets.deno
On this page

Deno release target that manages version tracking in deno.json and scaffolds CI workflows for tag-based publishing to deno.land/x.

#rlsbl.targets.deno

#rlsbl.targets.deno

Deno release target that manages version tracking in deno.json and scaffolds CI workflows for tag-based publishing to deno.land/x.

#DenoTarget

Release target for Deno projects (deno.json / deno.jsonc).

#name

python
def name(self)

#detect

python
def detect(self, dir_path)

#read_name

python
def read_name(self, dir_path)

Read the package name from deno.json.

#read_metadata

python
def read_metadata(self, dir_path)

deno.json has no standard license/description fields.

#_config_path

python
def _config_path(self, dir_path)

Return the path to deno.json or deno.jsonc, preferring deno.json.

#_strip_comments

python
def _strip_comments(self, text)

Strip single-line and block comments from JSONC text.

#read_version

python
def read_version(self, dir_path)

Read the version from deno.json or deno.jsonc.

#write_version

python
def write_version(self, dir_path, version)

Write a new version to deno.json or deno.jsonc.

For deno.json, uses standard JSON rewrite preserving indent. For deno.jsonc, uses regex replacement to preserve comments.

Returns a list of relative file paths that were modified.

#version_file

python
def version_file(self)

#tag_format

python
def tag_format(self, version)

#template_dir

python
def template_dir(self)

#template_vars

python
def template_vars(self, dir_path)

Extract template variables from deno.json.

#template_mappings

python
def template_mappings(self)

#publish

python
def publish(self, dir_path, version)

Publish to JSR based on per-target config and token availability.

Without config, accepts DENO_TOKEN or JSR_TOKEN. With config that sets token_var, only the named variable is consulted.

#check_project_exists

python
def check_project_exists(self, dir_path)

#get_project_init_hint

python
def get_project_init_hint(self)

#dev_install_command

python
def dev_install_command(self, project_dir)