File tree Expand file tree Collapse file tree 5 files changed +11
-3
lines changed
Expand file tree Collapse file tree 5 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 5959 "rollup-plugin-preserve-shebang" : " ^0.1.6" ,
6060 "rollup-plugin-sizes" : " ^0.4.2" ,
6161 "rollup-plugin-strict-alias" : " ^1.0.0" ,
62- "rollup-plugin-typescript " : " ^0.8.1 " ,
62+ "rollup-plugin-typescript2 " : " ^0.10.0 " ,
6363 "rollup-plugin-uglify" : " ^3.0.0" ,
6464 "sade" : " ^1.3.1" ,
6565 "tslib" : " ^1.9.0" ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import alias from 'rollup-plugin-strict-alias';
1717import gzipSize from 'gzip-size' ;
1818import prettyBytes from 'pretty-bytes' ;
1919import shebangPlugin from 'rollup-plugin-preserve-shebang' ;
20- import typescript from 'rollup-plugin-typescript ' ;
20+ import typescript from 'rollup-plugin-typescript2 ' ;
2121import flow from './lib/flow-plugin' ;
2222import camelCase from 'camelcase' ;
2323
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ Build output to dist:
4141exports [` fixtures ts-demo 1` ] = `
4242"ts-demo
4343 dist
44+ car.d.ts
45+ index.d.ts
4446 ts-demo.js
4547 ts-demo.js.map
4648 ts-demo.m.js
@@ -50,6 +52,7 @@ exports[`fixtures ts-demo 1`] = `
5052 src
5153 car.ts
5254 index.ts
55+ tsconfig.json
5356
5457
5558Build output to dist:
Original file line number Diff line number Diff line change 1- interface Driveable {
1+ export interface Driveable {
22 drive ( distance : number ) : boolean ;
33}
44
Original file line number Diff line number Diff line change 1+ {
2+ "compilerOptions" : {
3+ "declaration" : true
4+ }
5+ }
You can’t perform that action at this time.
0 commit comments