fix(core): update
This commit is contained in:
parent
6e90bdda36
commit
0064f63ddb
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@git.zone/tsbuild',
|
name: '@git.zone/tsbuild',
|
||||||
version: '2.1.75',
|
version: '2.1.76',
|
||||||
description: 'TypeScript nightly to easily make use of latest features'
|
description: 'TypeScript nightly to easily make use of latest features'
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,14 @@ export const runCli = async () => {
|
|||||||
* the custom command compiles any customDir to dist_customDir
|
* the custom command compiles any customDir to dist_customDir
|
||||||
*/
|
*/
|
||||||
tsbuildCli.addCommand('tsfolders').subscribe(async (argvArg) => {
|
tsbuildCli.addCommand('tsfolders').subscribe(async (argvArg) => {
|
||||||
const tsFolders = await plugins.smartfile.fs.listFolders(paths.cwd, /^ts/)
|
const tsFolders = await plugins.smartfile.fs.listFolders(paths.cwd, /^ts/);
|
||||||
|
|
||||||
|
// lets make sure interfaces are always transpiled first
|
||||||
|
const index = tsFolders.indexOf('ts_interfaces');
|
||||||
|
if (index > -1) {
|
||||||
|
tsFolders.splice(index, 1);
|
||||||
|
tsFolders.unshift('ts_interfaces');
|
||||||
|
}
|
||||||
const compilationCommandObject: { [key: string]: string } = {};
|
const compilationCommandObject: { [key: string]: string } = {};
|
||||||
for (const tsFolder of tsFolders) {
|
for (const tsFolder of tsFolders) {
|
||||||
compilationCommandObject[`./${tsFolder}/**/*.ts`] = `./dist_${tsFolder}`;
|
compilationCommandObject[`./${tsFolder}/**/*.ts`] = `./dist_${tsFolder}`;
|
||||||
@ -48,7 +55,7 @@ export const runCli = async () => {
|
|||||||
* the custom command compiles any customDir to dist_customDir
|
* the custom command compiles any customDir to dist_customDir
|
||||||
*/
|
*/
|
||||||
tsbuildCli.addCommand('interfaces').subscribe(async (argvArg) => {
|
tsbuildCli.addCommand('interfaces').subscribe(async (argvArg) => {
|
||||||
const tsFolders = ['ts_interfaces']
|
const tsFolders = ['ts_interfaces'];
|
||||||
const compilationCommandObject: { [key: string]: string } = {};
|
const compilationCommandObject: { [key: string]: string } = {};
|
||||||
for (const tsFolder of tsFolders) {
|
for (const tsFolder of tsFolders) {
|
||||||
compilationCommandObject[`./${tsFolder}/**/*.ts`] = `./dist_${tsFolder}`;
|
compilationCommandObject[`./${tsFolder}/**/*.ts`] = `./dist_${tsFolder}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user