Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
6e90bdda36 | |||
82cce58d69 | |||
a316cc6725 | |||
05738a5c94 |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@git.zone/tsbuild",
|
||||
"version": "2.1.73",
|
||||
"version": "2.1.75",
|
||||
"private": false,
|
||||
"description": "TypeScript nightly to easily make use of latest features",
|
||||
"main": "dist_ts/index.js",
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@git.zone/tsbuild',
|
||||
version: '2.1.73',
|
||||
version: '2.1.75',
|
||||
description: 'TypeScript nightly to easily make use of latest features'
|
||||
}
|
||||
|
@ -44,5 +44,17 @@ export const runCli = async () => {
|
||||
await tsbuild.compileGlobStringObject(compilationCommandObject, {}, process.cwd(), argvArg);
|
||||
});
|
||||
|
||||
/**
|
||||
* the custom command compiles any customDir to dist_customDir
|
||||
*/
|
||||
tsbuildCli.addCommand('interfaces').subscribe(async (argvArg) => {
|
||||
const tsFolders = ['ts_interfaces']
|
||||
const compilationCommandObject: { [key: string]: string } = {};
|
||||
for (const tsFolder of tsFolders) {
|
||||
compilationCommandObject[`./${tsFolder}/**/*.ts`] = `./dist_${tsFolder}`;
|
||||
}
|
||||
await tsbuild.compileGlobStringObject(compilationCommandObject, {}, process.cwd(), argvArg);
|
||||
});
|
||||
|
||||
tsbuildCli.startParse();
|
||||
};
|
||||
|
Reference in New Issue
Block a user