Skip to content

Commit dd5587b

Browse files
committed
chore: minor updates
1 parent 22ad651 commit dd5587b

File tree

7 files changed

+108
-24
lines changed

7 files changed

+108
-24
lines changed

.vscode/dictionary.txt

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ softprops
4343
Solana
4444
sponsorware
4545
stacksjs
46+
thumbhash
4647
tlsx
4748
twoslash
4849
typecheck

build.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ await Bun.build({
99
target: 'node',
1010
minify: true,
1111
splitting: true,
12+
external: ['bun'],
1213
plugins: [dts()],
1314
})
1415

bun.lock

+94-20
Large diffs are not rendered by default.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"@stacksjs/tlsx": "^0.10.0",
6868
"@types/bun": "^1.2.2",
6969
"@vite-pwa/vitepress": "^0.5.3",
70-
"bumpp": "^10.0.2",
70+
"bumpp": "^10.0.3",
7171
"bun-plugin-dtsx": "^0.21.9",
7272
"bunfig": "^0.5.3",
7373
"cac": "^6.7.14",

pkgx.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
dependencies:
2-
bun.sh: ^1.2.0
2+
bun.sh: ^1.2.2

src/index.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
export * from './analyze'
12
export { config } from './config'
3+
export * from './favicon'
4+
export * from './og'
5+
export * from './plugins'
6+
export * from './processor'
7+
export * from './responsive'
8+
export * from './sprite-generator'
9+
export * from './thumbhash'
210
export * from './types'
311
export * from './utils'

src/sprite-generator.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export async function generateSprite(
3131
outputDir: string,
3232
config: SpriteConfig = {},
3333
): Promise<SpriteResult> {
34-
const {
34+
let {
3535
padding = 2,
3636
maxWidth = 2048,
3737
prefix = 'sprite',
@@ -60,7 +60,7 @@ export async function generateSprite(
6060
let currentX = 0
6161
let currentY = 0
6262
let rowHeight = 0
63-
let maxWidth = 0
63+
maxWidth = 0
6464
let maxHeight = 0
6565

6666
const positions = sprites.map((sprite) => {

0 commit comments

Comments
 (0)