Skip to content

Commit

Permalink
chore: minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Feb 12, 2025
1 parent 22ad651 commit dd5587b
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 24 deletions.
1 change: 1 addition & 0 deletions .vscode/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ softprops
Solana
sponsorware
stacksjs
thumbhash
tlsx
twoslash
typecheck
Expand Down
1 change: 1 addition & 0 deletions build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ await Bun.build({
target: 'node',
minify: true,
splitting: true,
external: ['bun'],
plugins: [dts()],
})

Expand Down
114 changes: 94 additions & 20 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"@stacksjs/tlsx": "^0.10.0",
"@types/bun": "^1.2.2",
"@vite-pwa/vitepress": "^0.5.3",
"bumpp": "^10.0.2",
"bumpp": "^10.0.3",
"bun-plugin-dtsx": "^0.21.9",
"bunfig": "^0.5.3",
"cac": "^6.7.14",
Expand Down
2 changes: 1 addition & 1 deletion pkgx.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dependencies:
bun.sh: ^1.2.0
bun.sh: ^1.2.2
8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
export * from './analyze'
export { config } from './config'
export * from './favicon'
export * from './og'
export * from './plugins'
export * from './processor'
export * from './responsive'
export * from './sprite-generator'
export * from './thumbhash'
export * from './types'
export * from './utils'
4 changes: 2 additions & 2 deletions src/sprite-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export async function generateSprite(
outputDir: string,
config: SpriteConfig = {},
): Promise<SpriteResult> {
const {
let {
padding = 2,
maxWidth = 2048,
prefix = 'sprite',
Expand Down Expand Up @@ -60,7 +60,7 @@ export async function generateSprite(
let currentX = 0
let currentY = 0
let rowHeight = 0
let maxWidth = 0
maxWidth = 0
let maxHeight = 0

const positions = sprites.map((sprite) => {
Expand Down

0 comments on commit dd5587b

Please sign in to comment.