mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
breaking: remove legacy optimizeCarbonImports preprocessor (#1217)
This commit is contained in:
parent
ade0557448
commit
6986aac1be
8 changed files with 1 additions and 910 deletions
|
@ -1,20 +0,0 @@
|
|||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const glob = require("glob");
|
||||
const pkg = require("../package.json");
|
||||
|
||||
function buildApi() {
|
||||
const components = {};
|
||||
|
||||
glob.sync("src/**/*.svelte").forEach((file) => {
|
||||
const { name } = path.parse(file);
|
||||
components[name] = { path: path.join(pkg.name, file) };
|
||||
});
|
||||
|
||||
fs.writeFileSync(
|
||||
"preprocess/api.json",
|
||||
JSON.stringify({ version: pkg.version, components }, null, 2)
|
||||
);
|
||||
}
|
||||
|
||||
buildApi();
|
Loading…
Add table
Add a link
Reference in a new issue