2023-04-06 12:04:53 +09:00
|
|
|
import * as esbuild from 'esbuild'
|
|
|
|
|
|
|
|
await esbuild.build({
|
|
|
|
entryPoints: ['./dist/index.js'],
|
|
|
|
outfile: './dist/index.cjs',
|
|
|
|
bundle: true,
|
|
|
|
platform: 'node',
|
2023-12-05 18:27:23 +09:00
|
|
|
external: ['@napi-rs/lzma', '@napi-rs/tar'],
|
2023-04-06 12:04:53 +09:00
|
|
|
define: {
|
|
|
|
'import.meta.url': '__filename',
|
|
|
|
},
|
|
|
|
})
|