clean_tags
clean_tags(pkg)
¶
Remove tags from a package that point to empty versions.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pkg |
str
|
The name of the npm package. |
required |
Returns:
Type | Description |
---|---|
OneOf[Issue, List[str]]
|
A |
Source code in m/npm/clean_tags.py
find_empty_tags(tag_map)
¶
Create a set containing the npm tags that are empty.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tag_map |
Dict[str, str]
|
A dictionary mapping npm tags to versions. |
required |
Returns:
Type | Description |
---|---|
Set[str]
|
A set of npm tags that map to empty strings. |
Source code in m/npm/clean_tags.py
remove_tags(pkg, tags)
¶
Call npm dist-tag
to remove npm tags.
See https://docs.npmjs.com/cli/v8/commands/npm-dist-tag
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pkg |
str
|
The npm package. |
required |
tags |
Set[str]
|
A set containing the tags to remove. |
required |
Returns:
Type | Description |
---|---|
OneOf[Issue, List[str]]
|
A |
OneOf[Issue, List[str]]
|
issue with a summary. |