mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
refactor(scripts): remove carbon-components-10.47
This commit is contained in:
parent
c84bf427ce
commit
26e5ce5572
4 changed files with 16 additions and 720 deletions
|
@ -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
|
||||
//
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue