Prepare Frost 1.0.0 release candidate
This commit is contained in:
@@ -71,6 +71,11 @@ for (const exportPath of ["./core", "./utility-layer", "./component-layer"]) {
|
||||
for (const exportPath of ["./forced-colors", "./forced-colors.css"]) {
|
||||
if (!packageJson.exports[exportPath]) errors.push(`package.json: missing forced-colors export ${exportPath}`);
|
||||
}
|
||||
if (packageJson.style !== "./dist/frost.css") errors.push("package.json: style must point to the built dist/frost.css bundle");
|
||||
if (packageJson.exports["."] !== "./dist/frost.css") errors.push("package.json: default export must point to the built dist/frost.css bundle");
|
||||
for (const exportPath of ["./bundle", "./bundle.css", "./bundle.min", "./bundle.min.css", "./dist/frost.css", "./dist/frost.min.css", "./dist/utility-layer.css", "./dist/utility-layer.min.css", "./dist/component-layer.css", "./dist/component-layer.min.css"]) {
|
||||
if (!packageJson.exports[exportPath]) errors.push(`package.json: missing bundled export ${exportPath}`);
|
||||
}
|
||||
|
||||
if (errors.length) {
|
||||
console.error(errors.join("\n"));
|
||||
|
||||
Reference in New Issue
Block a user