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

@ -1,3 +1,6 @@
// This file is inlined from `carbon-components@10.47` as
// Popover styles were removed since version 10.48.
//
// Copyright IBM Corp. 2016, 2018
//

View file

@ -27,7 +27,6 @@
"@tsconfig/svelte": "^3.0.0",
"autoprefixer": "^10.4.4",
"carbon-components": "10.56.0",
"carbon-components-10.47": "npm:carbon-components@10.47",
"carbon-icons-svelte": "^11.0.1",
"husky": "^4.3.8",
"lint-staged": "^10.5.3",

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))

724
yarn.lock

File diff suppressed because it is too large Load diff