From 75b3e15ca93b09f4e712c8485f19292859b23e45 Mon Sep 17 00:00:00 2001 From: harttle Date: Mon, 25 Feb 2019 00:12:31 +0800 Subject: [PATCH] chore: fix rollup.config.ts types --- libs.d.ts | 6 ++++++ tsconfig.json | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 libs.d.ts diff --git a/libs.d.ts b/libs.d.ts new file mode 100644 index 000000000..757876a51 --- /dev/null +++ b/libs.d.ts @@ -0,0 +1,6 @@ +declare module 'rollup-plugin-uglify' { + export function uglify (): any +} +declare module 'rollup-plugin-shim' { + export default function shim(options: any): any +} diff --git a/tsconfig.json b/tsconfig.json index 88d8fd5a7..37b3e3eda 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,6 +6,7 @@ "sourceMap": true, "declaration": true, "allowSyntheticDefaultImports": true, + "resolveJsonModule": true, "strict": true, "suppressImplicitAnyIndexErrors": true, "baseUrl": ".", @@ -16,6 +17,6 @@ "test/*": ["test/*"] } }, - "include": [ "*.ts", "src", "test", "benchmark" ], + "all": true, "exclude": [ "node_modules", "dist" ] }