File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,22 @@ import path from 'path';
33import child_process from 'child_process' ;
44import fs from 'fs-extra' ;
55import del from 'del' ;
6+ import { platform } from 'os' ;
67import { Input } from '../types' ;
78
89export default async function build ( { root, output, report } : Input ) {
9- report . info ( `Cleaning up previous build at ${ chalk . blue ( path . relative ( root , output ) ) } ` ) ;
10+ report . info (
11+ `Cleaning up previous build at ${ chalk . blue ( path . relative ( root , output ) ) } `
12+ ) ;
1013
1114 await del ( [ output ] ) ;
1215
1316 report . info ( `Generating type definitions with ${ chalk . blue ( 'tsc' ) } ` ) ;
1417
15- const tsc = path . join ( root , 'node_modules' , '.bin' , 'tsc' ) ;
18+ const tsc =
19+ path . join ( root , 'node_modules' , '.bin' , 'tsc' ) +
20+ ( platform ( ) === 'win32' ? '.cmd' : '' ) ;
21+
1622 const tsconfig = path . join ( root , 'tsconfig.json' ) ;
1723
1824 try {
You can’t perform that action at this time.
0 commit comments