Skip to content

Commit 85bb555

Browse files
committed
chore: Update icon path in tsconfig and refine README for icon management
1 parent 0496410 commit 85bb555

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

other/sly/sly.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
{
55
"name": "@radix-ui/icons",
66
"directory": "./other/svg-icons",
7-
"postinstall": ["npm", "run", "build:icons"],
87
"transformers": ["transform-icon.ts"]
98
}
109
]

other/svg-icons/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ These icons were downloaded from https://icons.radix-ui.com/ which is licensed
44
under MIT: https://github.com/radix-ui/icons/blob/master/LICENSE
55

66
It's important that you only add icons to this directory that the application
7-
actually needs as there's no "tree-shaking" for sprites. If you wish to manually
8-
split up your SVG sprite into multiple files, you'll need to update the
9-
`build-icons.ts` script to do that.
10-
11-
Run `npm run build:icons` to update the sprite.
7+
actually needs as the `vite-plugin-icons-spritesheet` plugin is configured to
8+
generate a spritesheet with icons from this directory. The plugin re-runs on
9+
every edit/delete/add to this directory.

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"paths": {
99
"#app/*": ["./app/*"],
1010
"#tests/*": ["./tests/*"],
11-
"@/icon-name": ["./app/components/ui/icons/types.ts", "./types/types.ts"]
11+
"@/icon-name": ["./app/components/ui/icons/types.ts", "./types/icon-name.d.ts"]
1212
}
1313
}
1414
}

0 commit comments

Comments
 (0)