Skip to content

Commit acdb6b9

Browse files
committed
build: use zstd and sea code cache
1 parent 7fe2069 commit acdb6b9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

tools/esbuild.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ await fs.writeFile(
4949
pkg: {
5050
outputPath: './dist/cli',
5151
scripts: ['pino-*.js', 'thread-stream-worker.js'],
52+
seaConfig: {
53+
useCodeCache: true,
54+
},
5255
targets: [
5356
`node${nodeVersion}-linux-x64`,
5457
`node${nodeVersion}-linux-arm64`,
@@ -77,7 +80,7 @@ await fs.writeFile(
7780
await exec([
7881
'--sea',
7982
'--compress',
80-
'gzip', // zstd needs pkg v6.17
83+
'zstd',
8184
// '--no-bytecode',
8285
// '--public',
8386
'--options',

0 commit comments

Comments
 (0)