refactor(scripts): remove carbon-components-10.47

This commit is contained in:
Eric Liu 2022-04-10 08:47:21 -07:00
commit 26e5ce5572
4 changed files with 16 additions and 720 deletions

View file

@ -5,14 +5,6 @@ const postcss = require("postcss");
const path = require("path");
(async () => {
const popover = fs.readFileSync(
"node_modules/carbon-components-10.47/src/components/popover/_popover.scss",
"utf-8"
);
const popover_mod = popover.replace(/..\/..\//g, "carbon-components/scss/");
fs.writeFileSync("css/_popover.scss", popover_mod);
const scss = fs
.readdirSync("css")
.filter((file) => file.endsWith(".scss") && !/^\_popover/.test(file))