Skip to content

Commit

Permalink
chore(dev-utils): Added error message for combining styles
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaursen committed Nov 24, 2021
1 parent b50a04c commit aa5ecfd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/dev-utils/src/utils/styles/combineAllFiles.ts
Expand Up @@ -11,6 +11,7 @@ import {
src,
} from "../../constants";
import { format } from "../format";
import { list } from "../list";
import { getPackages } from "../packages";

const getFileOrder = (packageName: string): readonly string[] => {
Expand Down Expand Up @@ -91,6 +92,10 @@ function assertAllPackages(): void {
const packages = getPackages("scss");
const diff = difference(packages, PACKAGE_ORDER);
if (diff.length) {
log.error(
"Unkown scss packages were found but have not been included in the `PACKAGE_ORDER`"
);
log.error(list(diff));
process.exit(1);
}
}
Expand Down

0 comments on commit aa5ecfd

Please sign in to comment.