Skip to content

Commit

Permalink
Revert logic that was changed for Typescript resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
ethriel3695 committed May 21, 2024
1 parent 8946aff commit d187764
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion node-src/tasks/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const publishBuild = async (ctx: Context) => {
id,
input: {
...(onlyStoryFiles && { onlyStoryFiles }),
...(onlyStoryNames && { onlyStoryNames: [onlyStoryNames] }),
...(onlyStoryNames && { onlyStoryNames: [].concat(onlyStoryNames) }),
...(replacementBuildIds && { replacementBuildIds }),
// GraphQL does not support union input types (yet), so we send an object
// @see https://github.com/graphql/graphql-spec/issues/488
Expand Down
10 changes: 5 additions & 5 deletions node-src/ui/tasks/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ export const runOnlyFiles = (ctx: Context) => ({
export const runOnlyNames = (ctx: Context) => ({
status: 'pending',
title: 'Starting partial build',
output: ctx.options.onlyStoryNames
? `Snapshots will be limited to stories matching ${ctx.options.onlyStoryNames
.map((v) => `'${v}'`)
.join(', ')}`
: `Snapshots will be limited to ${ctx.onlyStoryFiles?.length} story files affected by recent changes`,
output:
ctx.options.onlyStoryNames &&
`Snapshots will be limited to stories matching ${ctx.options.onlyStoryNames
.map((v) => `'${v}'`)
.join(', ')}`,
});

export const awaitingUpgrades = (ctx: Context, upgradeBuilds: { completedAt?: number }[]) => {
Expand Down

0 comments on commit d187764

Please sign in to comment.