napi-rs/cli/tsdown.config.ts
Kevin Deng 8d732027b4
refactor: replace lodash-es with es-toolkit (#2861)
* refactor: replace `lodash-es` with `es-toolkit`

* @ts-expect-error loc

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2025-08-10 18:46:43 +08:00

24 lines
484 B
TypeScript

import { defineConfig } from 'tsdown'
export default defineConfig([
{
entry: './src/index.ts',
// remove in the future, release esm output only
format: ['esm', 'cjs'],
target: 'es2020',
sourcemap: 'inline',
inputOptions(options, format) {
if (format === 'cjs') {
options.external = ['@octokit/rest']
}
return options
},
},
{
entry: './src/cli.ts',
sourcemap: 'inline',
target: 'es2020',
dts: false,
},
])