Skip to content

Commit

Permalink
upgrade to rollup-plugin-typescript2@0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
freeman committed Feb 2, 2018
1 parent 0c8c452 commit 1bd22b7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -59,7 +59,7 @@
"rollup-plugin-preserve-shebang": "^0.1.6",
"rollup-plugin-sizes": "^0.4.2",
"rollup-plugin-strict-alias": "^1.0.0",
"rollup-plugin-typescript2": "^0.10.0",
"rollup-plugin-typescript2": "^0.11",
"rollup-plugin-uglify": "^3.0.0",
"sade": "^1.3.1",
"tslib": "^1.9.0",
Expand Down
5 changes: 4 additions & 1 deletion src/index.js
Expand Up @@ -212,7 +212,10 @@ function createConfig(options, entry, format, writeMeta) {
inject: false,
extract: !!writeMeta
}),
useTypescript && typescript({ typescript: require('typescript') }),
useTypescript && typescript({
typescript: require('typescript'),
tsconfigDefaults: { compilerOptions: { declaration: true } }
}),
!useTypescript && flow({ all: true, pretty: true }),
nodent({
exclude: 'node_modules/**',
Expand Down
1 change: 0 additions & 1 deletion test/__snapshots__/index.test.js.snap
Expand Up @@ -52,7 +52,6 @@ exports[`fixtures ts-demo 1`] = `
src
car.ts
index.ts
tsconfig.json
Build output to dist:
Expand Down
5 changes: 0 additions & 5 deletions test/fixtures/ts-demo/tsconfig.json

This file was deleted.

0 comments on commit 1bd22b7

Please sign in to comment.