- Implemented a lightweight notification library with support for multiple channels. - Added FeishuNotifier class to send messages via Feishu webhook. - Created README documentation for usage and configuration of Feishu notifier. - Added TypeScript configuration for the project. - Included a test script for verifying Feishu message notifications.
17 lines
419 B
TypeScript
17 lines
419 B
TypeScript
// @ts-check
|
|
import { resolvePath } from '@kevisual/use-config';
|
|
import { execSync } from 'node:child_process';
|
|
|
|
const entry = 'src/index.ts';
|
|
const naming = 'app';
|
|
const external = ['pm2'];
|
|
await Bun.build({
|
|
target: 'node',
|
|
format: 'esm',
|
|
entrypoints: [resolvePath(entry, { meta: import.meta })],
|
|
outdir: resolvePath('./dist', { meta: import.meta }),
|
|
naming: {
|
|
entry: `${naming}.js`,
|
|
},
|
|
external,
|
|
}); |