Skip to content

Commit

Permalink
test(lint): fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Aug 13, 2023
1 parent ec4fdd7 commit 34581fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/histoire/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ export async function build (ctx: Context) {

const duration = performance.now() - startTime
if (emptyStoryCount) {
console.warn(pc.yellow(`⚠️ ${emptyStoryCount} empty story file${emptyStoryCount === 1 ? '':'s'}`))
console.warn(pc.yellow(`⚠️ ${emptyStoryCount} empty story file${emptyStoryCount === 1 ? '' : 's'}`))
}
console.log(pc.green(`✅ Built ${storyCount} stor${storyCount === 1 ? 'y':'ies'} (${variantCount} variant${variantCount === 1 ? '':'s'}) in ${Math.round(duration / 1000 * 100) / 100}s`))
console.log(pc.green(`✅ Built ${storyCount} stor${storyCount === 1 ? 'y' : 'ies'} (${variantCount} variant${variantCount === 1 ? '' : 's'}) in ${Math.round(duration / 1000 * 100) / 100}s`))

// Render
if (previewStoryCallbacks.length) {
Expand Down
2 changes: 1 addition & 1 deletion packages/histoire/src/node/collect/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function useCollectStories (options: UseCollectStoriesOptions, ctx: Conte
const threadsCount = ctx.mode === 'dev'
? Math.max(Math.min(maxThreads, Math.floor(cpus().length / 2)), 1)
: Math.max(Math.min(maxThreads, cpus().length - 1), 1)
console.log(pc.blue(`Using ${threadsCount} thread${threadsCount === 1 ? '':'s'} for story collection`))
console.log(pc.blue(`Using ${threadsCount} thread${threadsCount === 1 ? '' : 's'} for story collection`))

const threadPool = new Tinypool({
filename: new URL('./worker.js', import.meta.url).href,
Expand Down

0 comments on commit 34581fd

Please sign in to comment.