@notadd/cli
Version:
notadd core none dependence
21 lines (20 loc) • 681 B
text/typescript
import { Command } from "@notadd/cli-core";
import { Controller, Args } from '@notadd/core';
import { run, RunOptions } from './run';
import { join } from 'path'
()
export class BuildCommand {
(`build`)
build(('root') root: string, ('o') output: string, ('d') del: boolean): any {
root = root || process.cwd();
const options: RunOptions = {
tsconfig: join(root, 'tsconfig.json'),
src: root,
output: join(root, output || 'dist'),
types: join(root, 'dist'),
watch: false,
delete: !!del
};
return run(options)
}
}