Put CEM where api-viewer can find it

This commit is contained in:
nathan 2023-09-22 15:29:44 -06:00
parent 250e31ed53
commit 20c93a0c7a

View File

@ -24,9 +24,12 @@ const npmdir = 'dist';
const allComponents = getAllComponents();
let hasBuiltSearchIndex = false;
// Write component data to file, 11ty will pick it up and create pages
// Write component data to file, 11ty will pick it up and create pages - the name & location are important
fs.writeFileSync("_data/components.json", JSON.stringify(allComponents));
// Put it here too, since addPassthroughCopy() ignores it
fs.copyFileSync("../dist/custom-elements.json", "assets/custom-elements.json");
module.exports = function (eleventyConfig)
{
//