mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-10-31 10:11:49 +08:00
Move the previously untracked TypeScript CLI into iot-dc3 as an independently managed module next to dc3-web: - pnpm workspace (pnpm@11.24.0) with esbuild build approval, package renamed to iot-dc3-cli, npm lockfile dropped - add eslint flat config; lint now runs green after removing unused imports/vars and adding switch-case breaks in config.ts - document CLI conventions and commands in AGENTS.md
14 lines
228 B
TypeScript
14 lines
228 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
format: ['esm'],
|
|
dts: true,
|
|
sourcemap: true,
|
|
clean: true,
|
|
shims: true,
|
|
banner: {
|
|
js: '#!/usr/bin/env node',
|
|
},
|
|
});
|