mirror of
https://github.com/napi-rs/napi-rs.git
synced 2025-12-08 19:56:07 +00:00
* feat(napi): impl ReadableStream and AsyncGenerator * clippy fix * Into<Vec<u8>> trait * Skip node18 stream test due to Node.js bug * Cleanup * Also skip wasi test * Merge test * Skip wasi * Useless expect-error
17 lines
407 B
JavaScript
17 lines
407 B
JavaScript
import { build} from 'esbuild'
|
|
import { pull } from 'lodash-es'
|
|
|
|
import packageJson from './package.json' with { type: 'json' }
|
|
|
|
await build({
|
|
entryPoints: ['./dist/index.js'],
|
|
outfile: './dist/index.cjs',
|
|
bundle: true,
|
|
format: 'cjs',
|
|
platform: 'node',
|
|
external: pull(Object.keys(packageJson.dependencies), '@octokit/rest', 'lodash-es'),
|
|
define: {
|
|
'import.meta.url': '__filename',
|
|
},
|
|
})
|