From 1bd22b7ab77ea4ec754004084a4f2291d7fda8d7 Mon Sep 17 00:00:00 2001 From: Michel Rasschaert Date: Fri, 2 Feb 2018 07:49:50 +0100 Subject: [PATCH] upgrade to rollup-plugin-typescript2@0.11 --- package.json | 2 +- src/index.js | 5 ++++- test/__snapshots__/index.test.js.snap | 1 - test/fixtures/ts-demo/tsconfig.json | 5 ----- 4 files changed, 5 insertions(+), 8 deletions(-) delete mode 100644 test/fixtures/ts-demo/tsconfig.json diff --git a/package.json b/package.json index b3c34024..f93718bd 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/index.js b/src/index.js index 6cb6bed3..89fcb456 100644 --- a/src/index.js +++ b/src/index.js @@ -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/**', diff --git a/test/__snapshots__/index.test.js.snap b/test/__snapshots__/index.test.js.snap index 0f407df2..81b61883 100644 --- a/test/__snapshots__/index.test.js.snap +++ b/test/__snapshots__/index.test.js.snap @@ -52,7 +52,6 @@ exports[`fixtures ts-demo 1`] = ` src car.ts index.ts - tsconfig.json Build output to dist: diff --git a/test/fixtures/ts-demo/tsconfig.json b/test/fixtures/ts-demo/tsconfig.json deleted file mode 100644 index 6c9058ec..00000000 --- a/test/fixtures/ts-demo/tsconfig.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "compilerOptions": { - "declaration": true - } -}