打包typescript开发的nodejs应用
npm i -g nger-build
nger-build 构建
nger-build -c path/options.json 指定配置文件
nger-build -w/--watch 监听文件变化
export interface RunOptions {
/**
* 源文件
**/
src: string;
/**
* ts config 配置文件
*/
tsconfig: string;
/**
* 目标目录
**/
output?: string;
/**
* declare 文件目录
**/
types?: string;
/**
* 监听开关
**/
watch?: boolean;
}