mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 17:47:27 +00:00
* update
* update
* 🔧 chore: update CLI build command in electron-builder and ensure proper newline in package.json
* Changed the CLI build command from 'npm run build' to 'npm run build:cli' in electron-builder.mjs.
* Added a newline at the end of package.json for consistency.
Signed-off-by: Innei <tukon479@gmail.com>
---------
Signed-off-by: Innei <tukon479@gmail.com>
Co-authored-by: Innei <tukon479@gmail.com>
18 lines
376 B
TypeScript
18 lines
376 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'],
|
|
minify: !!process.env.MINIFY,
|
|
outputOptions: {
|
|
codeSplitting: false,
|
|
},
|
|
platform: 'node',
|
|
target: 'node18',
|
|
});
|