Skip to content

Commit ec3dade

Browse files
committed
Rename include-used-icons to update-icons
1 parent 292bef1 commit ec3dade

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"format:check": "yarn _format --list-different",
2323
"storybook": "start-storybook -p 6006",
2424
"build-storybook": "build-storybook",
25-
"prestorybook": "yarn build && node dist/bin/react-dsfr include-used-icons",
25+
"prestorybook": "yarn build && node dist/bin/react-dsfr update-icons",
2626
"prebuild-storybook": "yarn prestorybook"
2727
},
2828
"bin": {

src/bin/only-include-used-icons.ts

-2
Original file line numberDiff line numberDiff line change
@@ -517,8 +517,6 @@ export async function main(args: string[]) {
517517

518518
hasChanged = true;
519519

520-
log?.(`Patching ${pathRelative(process.cwd(), cssFilePath)}`);
521-
522520
await writeFile(cssFilePath, rawIconCssCodeBuffer);
523521
})
524522
);

src/bin/react-dsfr.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const [, , commandName, ...args] = process.argv;
44

55
(async () => {
66
switch (commandName) {
7-
case "include-used-icons":
7+
case "update-icons":
88
{
99
const { main } = await import("./only-include-used-icons");
1010

0 commit comments

Comments
 (0)