From 57c5a9298159e739212ca1dd893d49d37b96b5f8 Mon Sep 17 00:00:00 2001 From: Philip Walton Date: Mon, 16 Nov 2020 20:11:31 -0800 Subject: [PATCH] Fix missing type declaration files --- base.d.ts | 1 + base.js | 2 +- package.json | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 base.d.ts diff --git a/base.d.ts b/base.d.ts new file mode 100644 index 00000000..aecd53be --- /dev/null +++ b/base.d.ts @@ -0,0 +1 @@ +export * from './dist/modules/index.js'; diff --git a/base.js b/base.js index 286df27c..0b7aacbb 100644 --- a/base.js +++ b/base.js @@ -1,3 +1,3 @@ // Creates the `web-vitals/base` import in node-based bundlers. -// This will not be needed when export maps are widely suppoprted. +// This will not be needed when export maps are widely supported. export * from './dist/web-vitals.base.js'; diff --git a/package.json b/package.json index 2fb07a05..09a68b8b 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,10 @@ "description": "Easily measure performance metrics in JavaScript", "main": "dist/web-vitals.umd.js", "module": "dist/web-vitals.js", - "typings": "dist/index.d.ts", + "typings": "dist/modules/index.d.ts", "files": [ + "base.js", + "base.d.ts", "dist", "src" ],