Skip to content

Commit

Permalink
fix: keep singular for less than 2 documents
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Apr 18, 2021
1 parent b558ada commit 4fa8cd3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/webpack-compile/src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ module.exports = ${JSON.stringify({
}
const { store } = require('@component-controls/loader/store');
if (store) {
log(`compiled ${store.stores.length} documents`, bundleName);
log(
`compiled ${store.stores.length} document${
store.stores.length > 1 ? 's' : ''
}`,
bundleName,
);
} else {
error('error creating bundle', bundleName);
}
Expand Down

0 comments on commit 4fa8cd3

Please sign in to comment.