This commit is contained in:
+5
-1
@@ -11,6 +11,7 @@ const cssFiles = [
|
||||
"tokens.css",
|
||||
"base.css",
|
||||
"accessibility.css",
|
||||
"forced-colors.css",
|
||||
"layout.css",
|
||||
"controls.css",
|
||||
"components.css",
|
||||
@@ -35,7 +36,7 @@ for (const match of entry.matchAll(/@import\s+url\("([^"]+)"\)/g)) {
|
||||
}
|
||||
|
||||
const layerSources = {
|
||||
"core.css": ["tokens.css", "base.css", "accessibility.css"],
|
||||
"core.css": ["tokens.css", "base.css", "accessibility.css", "forced-colors.css"],
|
||||
"utility-layer.css": ["core.css", "layout.css", "utilities.css"],
|
||||
"component-layer.css": ["core.css", "layout.css", "controls.css", "components.css"],
|
||||
};
|
||||
@@ -67,6 +68,9 @@ for (const exportPath of ["./utilities", "./components", "./tokens"]) {
|
||||
for (const exportPath of ["./core", "./utility-layer", "./component-layer"]) {
|
||||
if (!packageJson.exports[exportPath]) errors.push(`package.json: missing layer export ${exportPath}`);
|
||||
}
|
||||
for (const exportPath of ["./forced-colors", "./forced-colors.css"]) {
|
||||
if (!packageJson.exports[exportPath]) errors.push(`package.json: missing forced-colors export ${exportPath}`);
|
||||
}
|
||||
|
||||
if (errors.length) {
|
||||
console.error(errors.join("\n"));
|
||||
|
||||
Reference in New Issue
Block a user