Skip to content

Commit

Permalink
feat: add support for typesVersions field (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens authored Nov 19, 2020
1 parent 1e28942 commit 04c1f73
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ const fields = [
{ key: 'jsnext:main' },
{ key: 'browser' },
{ key: 'types' },
{ key: 'typesVersions' },
{ key: 'typings' },
{ key: 'style' },
{ key: 'example' },
Expand Down
1 change: 1 addition & 0 deletions tests/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ for (const field of [
'jsnext:main',
'browser',
'types',
'typesVersions',
'typings',
'style',
'example',
Expand Down
Binary file modified tests/snapshots/cli.js.snap
Binary file not shown.
2 changes: 2 additions & 0 deletions tests/snapshots/main.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Generated by [AVA](https://avajs.dev).
"tap": "tap",␊
"type": "type",␊
"types": "types",␊
"typesVersions": "typesVersions",␊
"typings": "typings",␊
"umd:main": "umd:main",␊
"unpkg": "unpkg",␊
Expand Down Expand Up @@ -133,6 +134,7 @@ Generated by [AVA](https://avajs.dev).
"jsnext:main": "jsnext:main",␊
"browser": "browser",␊
"types": "types",␊
"typesVersions": "typesVersions",␊
"typings": "typings",␊
"style": "style",␊
"example": "example",␊
Expand Down
Binary file modified tests/snapshots/main.js.snap
Binary file not shown.

0 comments on commit 04c1f73

Please sign in to comment.