Skip to content

Commit aa5ecfd

Browse files
committed
chore(dev-utils): Added error message for combining styles
1 parent b50a04c commit aa5ecfd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/dev-utils/src/utils/styles/combineAllFiles.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
src,
1212
} from "../../constants";
1313
import { format } from "../format";
14+
import { list } from "../list";
1415
import { getPackages } from "../packages";
1516

1617
const getFileOrder = (packageName: string): readonly string[] => {
@@ -91,6 +92,10 @@ function assertAllPackages(): void {
9192
const packages = getPackages("scss");
9293
const diff = difference(packages, PACKAGE_ORDER);
9394
if (diff.length) {
95+
log.error(
96+
"Unkown scss packages were found but have not been included in the `PACKAGE_ORDER`"
97+
);
98+
log.error(list(diff));
9499
process.exit(1);
95100
}
96101
}

0 commit comments

Comments
 (0)