mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
* 👷 build(cli): migrate bundler from tsup to tsdown Made-with: Cursor * 🔧 chore(cli): update package.json and tsdown.config.ts dependencies - Moved several dependencies from "dependencies" to "devDependencies" in package.json. - Updated the bundling configuration in tsdown.config.ts to simplify the bundling process. Signed-off-by: Innei <tukon479@gmail.com> * 🔧 chore(cli): reorganize package.json and tsdown.config.ts - Moved "fast-glob" from "dependencies" to "devDependencies" in package.json for better clarity. - Removed the "onlyBundle" option from tsdown.config.ts to streamline the configuration. Signed-off-by: Innei <tukon479@gmail.com> * ✨ feat(cli): add shell completion support --------- Signed-off-by: Innei <tukon479@gmail.com>
14 lines
294 B
TypeScript
14 lines
294 B
TypeScript
import { defineConfig } from 'tsdown';
|
|
|
|
export default defineConfig({
|
|
banner: { js: '#!/usr/bin/env node' },
|
|
clean: true,
|
|
deps: {
|
|
neverBundle: ['@napi-rs/canvas'],
|
|
},
|
|
entry: ['src/index.ts'],
|
|
fixedExtension: false,
|
|
format: ['esm'],
|
|
platform: 'node',
|
|
target: 'node18',
|
|
});
|