Skip to content

Commit 1bd22b7

Browse files
committed
1 parent 0c8c452 commit 1bd22b7

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
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-typescript2": "^0.10.0",
62+
"rollup-plugin-typescript2": "^0.11",
6363
"rollup-plugin-uglify": "^3.0.0",
6464
"sade": "^1.3.1",
6565
"tslib": "^1.9.0",

src/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,10 @@ function createConfig(options, entry, format, writeMeta) {
212212
inject: false,
213213
extract: !!writeMeta
214214
}),
215-
useTypescript && typescript({ typescript: require('typescript') }),
215+
useTypescript && typescript({
216+
typescript: require('typescript'),
217+
tsconfigDefaults: { compilerOptions: { declaration: true } }
218+
}),
216219
!useTypescript && flow({ all: true, pretty: true }),
217220
nodent({
218221
exclude: 'node_modules/**',

test/__snapshots__/index.test.js.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ exports[`fixtures ts-demo 1`] = `
5252
src
5353
car.ts
5454
index.ts
55-
tsconfig.json
5655
5756
5857
Build output to dist:

test/fixtures/ts-demo/tsconfig.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)