Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 0.13.4

- fix(publish): Fix error when special target 'all' is used (#142)

## 0.13.3

- fix(publish): Only allow valid target ids for -t (#137)
Expand Down
4 changes: 2 additions & 2 deletions src/commands/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,14 +470,14 @@ export async function publishMain(argv: PublishOptions): Promise<any> {

let targetConfigList = config.targets || [];

if (targetList.has(SpecialTarget.All)) {
if (!targetList.has(SpecialTarget.All)) {
targetConfigList = targetConfigList.filter(targetConf =>
targetList.has(getTargetId(targetConf))
);
}

if (!targetList.has(SpecialTarget.None)) {
if (!targetConfigList.length) {
if (targetConfigList.length === 0) {
logger.warn('No valid targets detected! Exiting.');
return undefined;
}
Expand Down