Skip to content

Commit

Permalink
chore: change icon
Browse files Browse the repository at this point in the history
  • Loading branch information
lxxorz committed Dec 17, 2024
1 parent 02e7803 commit 1c180f4
Show file tree
Hide file tree
Showing 4 changed files with 261 additions and 3 deletions.
Binary file added media/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"Other"
],
"main": "./dist/index.js",
"icon": "media/icon.svg",
"icon": "media/icon.png",
"files": [
"LICENSE.md",
"dist/*",
Expand Down Expand Up @@ -114,6 +114,7 @@
"eslint": "^9.16.0",
"esno": "^4.8.0",
"pnpm": "^9.15.0",
"sharp": "^0.33.5",
"tsup": "^8.3.5",
"typescript": "^5.7.2",
"vite": "^5.4.11",
Expand Down
253 changes: 251 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions scripts/svg-to-png.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { readFileSync, writeFileSync } from 'node:fs'

Check failure on line 1 in scripts/svg-to-png.ts

View workflow job for this annotation

GitHub Actions / lint

'writeFileSync' is defined but never used
import sharp from 'sharp'

const svg = readFileSync('media/icon.svg')
sharp(svg)
.png()
.resize(128, 128)
.toFile('media/icon.png')

0 comments on commit 1c180f4

Please sign in to comment.