Skip to content

Commit

Permalink
Merge pull request #90 from GoogleChrome/fix-typings
Browse files Browse the repository at this point in the history
Fix missing typings declaration
  • Loading branch information
philipwalton authored Nov 17, 2020
2 parents 7deb4aa + 57c5a92 commit 09857e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions base.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './dist/modules/index.js';
2 changes: 1 addition & 1 deletion base.js
Original file line number Diff line number Diff line change
@@ -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';
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down

0 comments on commit 09857e0

Please sign in to comment.